- 🇺🇸United States minnur San Francisco
No need for this at the moment. Thanks. We will come to this later.
Getting following error/warnings.
FILE: /var/www/html/modules/contrib/hubspot_forms/src/Form/HubspotSettingsForm.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
100 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/hubspot_forms/src/Form/HubspotDialog.php
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------
42 | WARNING | Unused variable $input.
----------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/hubspot_forms/src/Plugin/Block/HubspotBlock.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
57 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------
Time: 4.96 secs; Memory: 6MB
Run following command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/hubspot_forms/
Above error/warnings need to be fixed.
Closed: won't fix
1.0
Code
It involves compliance with, or the content of coding standards. Requires broad community agreement.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No need for this at the moment. Thanks. We will come to this later.