Skip to content

Fixing PAReview errors and typo in fusion_connector.module

Diana Precup requested to merge fix-pareview-errors into 8.x-1.x

Fixing PAReview errors and typo in fusion_connector.module

PAReview errors:

FILE: ...areview_temp/hsuxfhul/src/Form/FusionConnectorEntitiesAccessForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------
84 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
115 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
133 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
186 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
189 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
191 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
194 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
197 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
200 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------

FILE: ...areview_temp/hsuxfhul/src/Form/FusionConnectorLanguageAccessForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
113 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
121 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------

FILE: .../pareview_temp/hsuxfhul/src/Form/FusionConnectorFieldsAccessForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
132 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
138 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
--------------------------------------------------------------------------

FILE: ...iew_temp/hsuxfhul/src/Form/FusionConnectorLanguageTypeAccessForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------
120 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
135 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
142 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
--------------------------------------------------------------------------

FILE: .../hsuxfhul/src/ResourceType/FusionConnectorResourceTypeRepository.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------
54 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
55 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
62 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
103 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
129 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------

FILE: ...iewd/pareview_temp/hsuxfhul/src/EventSubscriber/ConfigSubscriber.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
53 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------

FILE: /var/www/pareviewd/pareview_temp/hsuxfhul/fusion_connector.info.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
9 | WARNING | All dependencies must be prefixed with the project name,
| | for example "drupal:"
--------------------------------------------------------------------------
Edited by Diana Precup

Merge request reports

Loading