Search Api Sunonym Phpcs issues

Created on 30 January 2024, 10 months ago

Steps to reproduce

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/search_api_synonym.module
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 5 WARNINGS AFFECTING 17 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | WARNING | [ ] All constants defined by a module must be prefixed with the module's name, expected "SEARCH_API_SYNONYM_SYNONYM_NOT_ACTIVE" but found "SYNONYM_NOT_ACTIVE"
13 | WARNING | [ ] Global constants should not be used, move it to a class or interface
18 | WARNING | [ ] All constants defined by a module must be prefixed with the module's name, expected "SEARCH_API_SYNONYM_SYNONYM_ACTIVE" but found "SYNONYM_ACTIVE"
18 | WARNING | [ ] Global constants should not be used, move it to a class or interface
45 | ERROR | [x] Use null coalesce operator instead of ternary operator.
50 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
53 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
56 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
63 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
68 | WARNING | [x] A comma should follow the last multiline array item. Found: 0
71 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
77 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
79 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
83 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
104 | ERROR | [x] Parameter comment must end with a full stop
106 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
107 | ERROR | [x] Parameter comment must end with a full stop
110 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
113 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/search_api_synonym.links.action.yml
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/search_api_synonym.install
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/search_api_synonym.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/search_api_synonym.drush.inc
-----------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------------------------
38 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
41 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
49 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
55 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
61 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
67 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
73 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
87 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
90 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
102 | ERROR | [x] Expected "bool" but found "boolean" for function return type
116 | ERROR | [x] Expected "bool" but found "boolean" for function return type
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/console/translations/en/searchapi.synonym.export.yml
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Form/SynonymImportForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 7 WARNINGS AFFECTING 8 LINES
-------------------------------------------------------------------------------------------------------------------------------------
11 | WARNING | [x] Unused use statement
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\search_api_synonym\Import\Import.
21 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
80 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
87 | WARNING | [x] A comma should follow the last multiline array item. Found: )
96 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
101 | WARNING | [x] A comma should follow the last multiline array item. Found: )
133 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
228 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Form/SynonymForm.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
20 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
35 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Form/SynonymSettingsForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 6 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
17 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
73 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
84 | ERROR | [ ] The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
84 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
85 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
91 | ERROR | [x] Use null coalesce operator instead of ternary operator.
100 | ERROR | [x] Short array syntax must be used to define arrays
101 | ERROR | [x] Short array syntax must be used to define arrays
102 | ERROR | [x] Short array syntax must be used to define arrays
123 | WARNING | [x] A comma should follow the last multiline array item. Found: )
135 | WARNING | [x] A comma should follow the last multiline array item. Found: )
164 | WARNING | [ ] Possible useless method overriding detected
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Entity/Synonym.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityBase.
226 | ERROR | [x] Short array syntax must be used to define arrays
226 | ERROR | [ ] The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Plugin/search_api_synonym/export/Solr.php
---------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------
45 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
48 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
61 | ERROR | [x] Case breaking statements must be followed by a single blank line
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Plugin/search_api_synonym/import/JSON.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Serialization\Json.
8 | ERROR | [x] PHP keywords must be lowercase; expected "as" but found "AS"
37 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
54 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
54 | WARNING | [x] A comma should follow the last multiline array item. Found: )
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Plugin/search_api_synonym/import/CSV.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 10 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
31 | ERROR | [x] Whitespace found at end of line
43 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
61 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
61 | WARNING | [x] A comma should follow the last multiline array item. Found: )
65 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
66 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
74 | WARNING | [x] A comma should follow the last multiline array item. Found: TRUE
78 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
79 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
85 | WARNING | [x] A comma should follow the last multiline array item. Found: '"'
100 | WARNING | [ ] Unused variable $values.
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Plugin/search_api_synonym/import/Solr.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 4 WARNINGS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Link.
36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
48 | WARNING | [x] A comma should follow the last multiline array item. Found: 'spelling_error'
56 | WARNING | [x] A comma should follow the last multiline array item. Found: 'synonym'
73 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
73 | WARNING | [x] A comma should follow the last multiline array item. Found: )
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/SynonymViewsData.php
-----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------
14 | ERROR | [x] Expected 1 blank line before function; 0 found
16 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
156 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/SynonymListBuilder.php
--------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
92 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
113 | ERROR | [x] Parameter comment must end with a full stop
115 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Command/ExportDrupalCommand.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 1 WARNING AFFECTING 20 LINES
---------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Symfony\Component\Console\Command\Command.
11 | WARNING | [x] Unused use statement
36 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
48 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
55 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
62 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
68 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
78 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
81 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
89 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
92 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
98 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
104 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
110 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
116 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
130 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
146 | ERROR | [x] Expected "bool" but found "boolean" for function return type
160 | ERROR | [x] Expected "bool" but found "boolean" for function return type
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 20 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Export/ExportPluginInterface.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Plugin\ConfigurableInterface.
18 | ERROR | [x] Expected 1 space after asterisk; 0 found
18 | ERROR | [ ] Doc comment short description must end with a full stop
18 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
19 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Export/ExportPluginBase.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
74 | WARNING | [ ] Unused variable $values.
80 | WARNING | [ ] Possible useless method overriding detected
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Export/ExportPluginManager.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 12 LINES
-----------------------------------------------------------------------------------------------------------------------------
18 | ERROR | [x] Doc comment short description must end with a full stop
72 | ERROR | [x] Parameter comment must end with a full stop
92 | ERROR | [x] Parameter comment must end with a full stop
98 | ERROR | [x] Use null coalesce operator instead of ternary operator.
125 | ERROR | [x] Expected "bool" but found "boolean" for function return type
144 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
152 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
189 | ERROR | [x] Case breaking statements must be followed by a single blank line
230 | ERROR | [x] Concat operator must be surrounded by a single space
243 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
249 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
254 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Import/Importer.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 13 WARNINGS AFFECTING 14 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityRepositoryInterface.
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
135 | WARNING | [x] A comma should follow the last multiline array item. Found: )
144 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
150 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
156 | ERROR | [x] Use null coalesce operator instead of ternary operator.
221 | WARNING | [x] A comma should follow the last multiline array item. Found: $synonyms
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Import/ImportException.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Import/ImportPluginManager.php
----------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------
17 | ERROR | [x] Doc comment short description must end with a full stop
40 | ERROR | [x] Doc comment short description must end with a full stop
50 | ERROR | [x] Doc comment short description must end with a full stop
83 | ERROR | [x] Expected "bool" but found "boolean" for function return type
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Import/ImportPluginInterface.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/Import/ImportPluginBase.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
89 | WARNING | [ ] Unused variable $values.
95 | WARNING | [ ] Possible useless method overriding detected
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/unicefplatform/docroot/modules/custom/search_api_synonym/src/SynonymInterface.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
16 | WARNING | [ ] There must be no blank line following an inline comment
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇳India chandravilas Pune

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @chandravilas
  • First commit to issue fork.
  • Assigned to sourabhjain
  • Merge request !6#3417963: PHPCS errors and warnings → (Open) created by sourabhjain
  • Issue was unassigned.
  • Status changed to Needs work 10 months ago
  • 🇮🇳India sourabhjain

    I have fixed most of the errors. Now only three are pending.

    FILE: /var/www/html/drupal10/web/modules/contrib/search_api_synonym/src/Import/ImportPluginBase.php
    ---------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------
     95 | WARNING | Possible useless method overriding detected
    ---------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal10/web/modules/contrib/search_api_synonym/src/Export/ExportPluginBase.php
    ---------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------
     80 | WARNING | Possible useless method overriding detected
    ---------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal10/web/modules/contrib/search_api_synonym/src/Form/SynonymSettingsForm.php
    ----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------
     167 | WARNING | Possible useless method overriding detected
    ----------------------------------------------------------------------------------------------------
    
    Time: 244ms; Memory: 10MB
Production build 0.71.5 2024