Fix the issues reported by phpcs

Created on 7 January 2020, about 5 years ago
Updated 1 May 2023, almost 2 years ago

Hi ,

Please fix Coding Standards issues.

GOTO https://pareview.sh : Enter 8.x-1.x branch url i.e. https://git.drupal.org/project/pathauto 8.x-1.x

DrupalPractice has found some issues with your code, but could be false positives.

FILE: .../vendor/drupal/pareviewsh/pareview_temp/src/Form/PatternEditForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
142 | WARNING | Unused variable $condition_id.
259 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
--------------------------------------------------------------------------

FILE: ...iewsh/pareview_temp/tests/src/Functional/PathautoTaxonomyWebTest.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
62 | WARNING | Unused variable $vocabulary.
--------------------------------------------------------------------------

FILE: ...viewsh/pareview_temp/tests/src/Functional/PathautoMassDeleteTest.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
184 | WARNING | Unused variable $id.
--------------------------------------------------------------------------

FILE: ...upal/pareviewsh/pareview_temp/tests/src/Kernel/PathautoTokenTest.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
91 | WARNING | Variable $values is undefined.
--------------------------------------------------------------------------

FILE: ...pal/pareviewsh/pareview_temp/tests/src/Kernel/PathautoKernelTest.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
407 | WARNING | Unused variable $vocab.
--------------------------------------------------------------------------

Time: 11 secs; Memory: 10Mb

This automated report was generated with PAReview.sh, your friendly project application review script.

FILE: ...000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
26 | WARNING | Line exceeds 80 characters; contains 96 characters
--------------------------------------------------------------------------

FILE: ...site1101/web/vendor/drupal/pareviewsh/pareview_temp/pathauto.install
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
176 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...site1101/web/vendor/drupal/pareviewsh/pareview_temp/pathauto.api.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
10 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------

FILE: ...or/drupal/pareviewsh/pareview_temp/src/Commands/PathautoCommands.php
--------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 12 LINES
--------------------------------------------------------------------------
65 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
69 | ERROR | [ ] Parameter tags must be defined first in a doc comment
100 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its own
| | line
107 | ERROR | [ ] Parameter $options is not described in comment
108 | ERROR | [x] Doc comment short description must end with a full
| | stop
112 | ERROR | [ ] Parameter tags must be defined first in a doc comment
170 | ERROR | [ ] Missing short description in doc comment
183 | ERROR | [ ] Missing short description in doc comment
197 | ERROR | [ ] Missing short description in doc comment
201 | ERROR | [ ] @throws tag comment must end with a full stop
216 | ERROR | [ ] Missing short description in doc comment
220 | ERROR | [ ] @throws tag comment must end with a full stop
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...rupal/pareviewsh/pareview_temp/src/AliasTypeBatchUpdateInterface.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
22 | ERROR | Type hint "array" missing for $context
30 | ERROR | Type hint "array" missing for $context
--------------------------------------------------------------------------

FILE: ...dor/drupal/pareviewsh/pareview_temp/src/AliasUniquifierInterface.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
13 | WARNING | Line exceeds 80 characters; contains 81 characters
--------------------------------------------------------------------------

FILE: ...101/web/vendor/drupal/pareviewsh/pareview_temp/src/PathautoState.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
30 | ERROR | Missing short description in doc comment
92 | ERROR | Description for the @return value is missing
--------------------------------------------------------------------------

FILE: ...vendor/drupal/pareviewsh/pareview_temp/src/AliasCleanerInterface.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------
5 | ERROR | Missing short description in doc comment
16 | WARNING | Line exceeds 80 characters; contains 81 characters
55 | WARNING | Line exceeds 80 characters; contains 81 characters
96 | ERROR | Type hint "array" missing for $replacements
96 | ERROR | Type hint "array" missing for $data
96 | ERROR | Type hint "array" missing for $options
--------------------------------------------------------------------------

FILE: ...endor/drupal/pareviewsh/pareview_temp/src/Entity/PathautoPattern.php
--------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------
93 | ERROR | Missing short description in doc comment
119 | ERROR | Missing short description in doc comment
124 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------

FILE: .../drupal/pareviewsh/pareview_temp/src/AliasStorageHelperInterface.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
105 | ERROR | Missing parameter type
130 | ERROR | Type hint "array" missing for $pids
--------------------------------------------------------------------------

FILE: ...r/drupal/pareviewsh/pareview_temp/src/PathautoGeneratorInterface.php
--------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------
13 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
13 | ERROR | [x] Doc comment short description must end with a full stop
18 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
18 | ERROR | [x] Doc comment short description must end with a full stop
23 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
23 | ERROR | [x] Doc comment short description must end with a full stop
53 | ERROR | [ ] Description for the @return value is missing
76 | ERROR | [x] Data types in @param tags need to be fully namespaced
81 | ERROR | [ ] Parameter comment must start with a capital letter
82 | ERROR | [x] Parameter comment must end with a full stop
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...dor/drupal/pareviewsh/pareview_temp/src/PathautoPatternInterface.php
--------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
--------------------------------------------------------------------------
15 | ERROR | Description for the @return value is missing
22 | ERROR | Missing parameter comment
31 | ERROR | Description for the @return value is missing
35 | ERROR | Missing short description in doc comment
36 | ERROR | Description for the @return value is missing
43 | ERROR | Description for the @return value is missing
60 | ERROR | Description for the @return value is missing
128 | ERROR | Description for the @return value is missing
149 | ERROR | Description for the @return value is missing
174 | ERROR | Missing parameter type
177 | ERROR | Description for the @return value is missing
--------------------------------------------------------------------------

FILE: ...reviewsh/pareview_temp/src/Plugin/Deriver/EntityAliasTypeDeriver.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------
23 | ERROR | [ ] Missing short description in doc comment
35 | ERROR | [ ] Missing short description in doc comment
89 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...01/web/vendor/drupal/pareviewsh/pareview_temp/src/PathautoWidget.php
--------------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 12 LINES
--------------------------------------------------------------------------
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
35 | WARNING | [ ] Line exceeds 80 characters; contains 146 characters
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...iewsh/pareview_temp/src/EventSubscriber/PathautoSettingsCacheTag.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
16 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------

FILE: ...1/web/vendor/drupal/pareviewsh/pareview_temp/src/AliasUniquifier.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
105 | WARNING | Line exceeds 80 characters; contains 81 characters
--------------------------------------------------------------------------

FILE: ...vendor/drupal/pareviewsh/pareview_temp/src/PathautoFieldItemList.php
--------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
9 | ERROR | [ ] Missing short description in doc comment
29 | ERROR | [ ] Missing short description in doc comment
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...or/drupal/pareviewsh/pareview_temp/src/Form/PathautoSettingsForm.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
226 | ERROR | [x] Array closing indentation error, expected 6 spaces but
| | found 4
284 | ERROR | [x] Array closing indentation error, expected 8 spaces but
| | found 6
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: .../drupal/pareviewsh/pareview_temp/src/Form/PathautoBulkUpdateForm.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
136 | ERROR | If the line declaring an array spans longer than 80
| | characters, each element should be broken into its own
| | line
--------------------------------------------------------------------------

FILE: .../vendor/drupal/pareviewsh/pareview_temp/src/Form/PatternEditForm.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------
25 | ERROR | [ ] Missing short description in doc comment
75 | ERROR | [x] Visibility must be declared on method "__construct"
113 | ERROR | [x] Inline comments must start with a capital letter
226 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
241 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
256 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: .../pareview_temp/tests/src/FunctionalJavascript/PathautoLocaleTest.php
--------------------------------------------------------------------------
FOUND 6 ERRORS AND 20 WARNINGS AFFECTING 26 LINES
--------------------------------------------------------------------------
45 | ERROR | [ ] Doc comment short description must be on a single
| | line, further text should be a separate paragraph
47 | ERROR | [x] Visibility must be declared on method
| | "testLanguageAliases"
60 | ERROR | [x] Closing parenthesis of array declaration must be on
| | a new line
61 | ERROR | [x] Array closing indentation error, expected 4 spaces
| | but found 5
95 | ERROR | [x] Visibility must be declared on method
| | "testLanguagePatterns"
106 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: 'administer content translation'
158 | WARNING | [ ] Code after RETURN statement cannot be executed
160 | WARNING | [ ] Code after RETURN statement cannot be executed
161 | WARNING | [ ] Code after RETURN statement cannot be executed
162 | WARNING | [ ] Code after RETURN statement cannot be executed
163 | WARNING | [ ] Code after RETURN statement cannot be executed
164 | WARNING | [ ] Code after RETURN statement cannot be executed
165 | WARNING | [ ] Code after RETURN statement cannot be executed
166 | WARNING | [ ] Code after RETURN statement cannot be executed
167 | WARNING | [ ] Code after RETURN statement cannot be executed
168 | WARNING | [ ] Code after RETURN statement cannot be executed
169 | WARNING | [ ] Code after RETURN statement cannot be executed
172 | WARNING | [ ] Code after RETURN statement cannot be executed
174 | WARNING | [ ] Code after RETURN statement cannot be executed
175 | WARNING | [ ] Code after RETURN statement cannot be executed
176 | WARNING | [ ] Code after RETURN statement cannot be executed
177 | WARNING | [ ] Code after RETURN statement cannot be executed
178 | WARNING | [ ] Code after RETURN statement cannot be executed
179 | WARNING | [ ] Code after RETURN statement cannot be executed
180 | WARNING | [ ] Code after RETURN statement cannot be executed
195 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...ewsh/pareview_temp/tests/src/FunctionalJavascript/PathautoUiTest.php
--------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------
41 | ERROR | [x] Visibility must be declared on method "setUp"
60 | ERROR | [x] Visibility must be declared on method
| | "testSettingsValidation"
60 | ERROR | [x] Missing function doc comment
70 | ERROR | [x] Visibility must be declared on method
| | "testPatternsWorkflow"
70 | ERROR | [x] Missing function doc comment
105 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
105 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
155 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...review_temp/tests/src/Functional/PathautoEnablingEntityTypesTest.php
--------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------
41 | ERROR | [x] Visibility must be declared on method "setUp"
61 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
63 | ERROR | [x] Visibility must be declared on method
| | "testEnablingEntityTypes"
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...h/pareview_temp/tests/src/Functional/PathautoSettingsFormWebTest.php
--------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------
95 | ERROR | [x] Visibility must be declared on method "setUp"
115 | ERROR | [x] Visibility must be declared on method
| | "testDefaultFormValues"
131 | ERROR | [x] Visibility must be declared on method
| | "testVerboseOption"
152 | ERROR | [x] Visibility must be declared on method
| | "testSettingsForm"
178 | ERROR | [x] Visibility must be declared on method
| | "testPunctuationSettings"
220 | ERROR | [ ] Type hint "array" missing for $settings
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...areviewsh/pareview_temp/tests/src/Functional/PathautoNodeWebTest.php
--------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 11 LINES
--------------------------------------------------------------------------
29 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
41 | ERROR | [x] Visibility must be declared on method "setUp"
64 | ERROR | [x] Visibility must be declared on method
| | "testNodeEditing"
139 | ERROR | [x] No space found before comment text; expected "//
| | $this->drupalPostForm(NULL, $edit, t('Save'));" but
| | found "//$this->drupalPostForm(NULL, $edit,
| | t('Save'));"
139 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
152 | ERROR | [x] Visibility must be declared on method
| | "testNodeOperations"
180 | ERROR | [ ] Missing short description in doc comment
192 | ERROR | [x] Array closing indentation error, expected 6 spaces
| | but found 4
206 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
223 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
261 | ERROR | [x] Expected 1 blank line after function; 2 found
289 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...iewsh/pareview_temp/tests/src/Functional/PathautoTestHelperTrait.php
--------------------------------------------------------------------------
FOUND 19 ERRORS AND 1 WARNING AFFECTING 19 LINES
--------------------------------------------------------------------------
67 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
72 | ERROR | [x] Missing function doc comment
76 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
79 | ERROR | [x] Missing function doc comment
84 | ERROR | [x] Missing function doc comment
92 | ERROR | [x] Missing function doc comment
100 | ERROR | [x] Missing function doc comment
104 | ERROR | [x] Missing function doc comment
112 | ERROR | [x] Missing function doc comment
120 | ERROR | [x] Missing function doc comment
130 | ERROR | [x] Missing function doc comment
136 | ERROR | [x] Missing function doc comment
141 | ERROR | [x] Missing function doc comment
146 | ERROR | [ ] Missing short description in doc comment
147 | ERROR | [ ] Missing parameter comment
149 | ERROR | [ ] Description for the @return value is missing
163 | ERROR | [x] Missing function doc comment
174 | ERROR | [x] Missing function doc comment
174 | ERROR | [ ] Arguments with default values must be at the end of
| | the argument list
186 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...viewsh/pareview_temp/tests/src/Functional/PathautoBulkUpdateTest.php
--------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
19 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
20 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
54 | ERROR | [x] Visibility must be declared on method "setUp"
73 | ERROR | [x] Visibility must be declared on method "testBulkUpdate"
73 | ERROR | [x] Missing function doc comment
142 | ERROR | [x] Visibility must be declared on method
| | "testBulkUpdateExistingContent"
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...iewsh/pareview_temp/tests/src/Functional/PathautoTaxonomyWebTest.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
38 | ERROR | [x] Visibility must be declared on method "setUp"
57 | ERROR | [x] Visibility must be declared on method "testTermEditing"
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...areviewsh/pareview_temp/tests/src/Functional/PathautoUserWebTest.php
--------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
23 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
24 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
25 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
26 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
39 | ERROR | [x] Visibility must be declared on method "setUp"
58 | ERROR | [x] Visibility must be declared on method "testUserEditing"
67 | ERROR | [x] Visibility must be declared on method
| | "testUserOperations"
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...viewsh/pareview_temp/tests/src/Functional/PathautoMassDeleteTest.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------
60 | ERROR | [x] Visibility must be declared on method "setUp"
79 | ERROR | [x] Visibility must be declared on method "testDeleteAll"
98 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its own
| | line
146 | ERROR | [x] Visibility must be declared on method
| | "generateAliases"
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...upal/pareviewsh/pareview_temp/tests/src/Kernel/PathautoTokenTest.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------
22 | ERROR | [x] Missing function doc comment
37 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
97 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
100 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
107 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...pal/pareviewsh/pareview_temp/tests/src/Kernel/PathautoKernelTest.php
--------------------------------------------------------------------------
FOUND 19 ERRORS AND 3 WARNINGS AFFECTING 19 LINES
--------------------------------------------------------------------------
30 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
34 | ERROR | [ ] Missing short description in doc comment
39 | ERROR | [ ] Missing short description in doc comment
44 | ERROR | [x] Missing function doc comment
46 | ERROR | [x] Functions must not contain multiple empty lines in a
| | row; found 2 empty lines
100 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
269 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
329 | ERROR | [ ] Doc comment short description must be on a single
| | line, further text should be a separate paragraph
346 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
367 | ERROR | [x] Visibility must be declared on method
| | "testParentChildPathTokens"
375 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
389 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
393 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
415 | ERROR | [x] Visibility must be declared on method
| | "testNoExistingPathAliases"
415 | ERROR | [x] Missing function doc comment
448 | ERROR | [x] Visibility must be declared on method
| | "testProgrammaticEntityCreation"
478 | ERROR | [x] Visibility must be declared on method
| | "testPathAliasUniquifyWordsafe"
488 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
496 | ERROR | [x] Visibility must be declared on method
| | "testPatternStatus"
584 | ERROR | [x] There should be no white space before a closing ")"
584 | ERROR | [x] Expected 1 space before opening brace; found 0
584 | ERROR | [x] Expected 0 spaces between argument "$settings" and
| | closing bracket; 1 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...sh/pareview_temp/tests/src/Kernel/PathautoEntityWithStringIdTest.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 5 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------
80 | ERROR | [ ] Parameter tags must be defined first in a doc
| | comment
81 | ERROR | [x] Parameter comment must end with a full stop
116 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
119 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
122 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
125 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
128 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: '123'
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: .../site1101/web/vendor/drupal/pareviewsh/pareview_temp/pathauto.module
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------
16 | WARNING | Line exceeds 80 characters; contains 88 characters
148 | ERROR | Doc comment short description must be on a single line,
| | further text should be a separate paragraph
164 | ERROR | If the line declaring an array spans longer than 80
| | characters, each element should be broken into its own
| | line
168 | WARNING | Avoid backslash escaping in translatable strings when
| | possible, use "" quotes instead
--------------------------------------------------------------------------

Time: 13.2 secs; Memory: 14Mb

📌 Task
Status

Postponed

Version

1.0

Component

Code

Created by

🇮🇳India Ankush_03 Gurgaon, India 🇮🇳

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command has been used, which arguments have been used, and which report that command shown.

  • 🇨🇴Colombia jasonac91

    The coding standards verification was performed; however, some functions or calls cannot be corrected as they would affect the module's functionality.

Production build 0.71.5 2024