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
| Comment | File | Size | Author |
|---|---|---|---|
| #41 | 3104764-pathauto-complete.patch | 359.72 KB | jasonac91 |
| #38 | patch-not-applied.png | 96.73 KB | anoopsingh92 |
| #35 | interdiff_33-35.txt | 22.25 KB | victoria-marina |
| #35 | 3104764-35.patch | 102.95 KB | victoria-marina |
| #33 | interdiff_30-33.txt | 581 bytes | tmaiochi |
Issue fork pathauto-3104764
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ankush_03Comment #3
ankush_03Comment #4
andreyjan commentedAttaching a patch which fixes most of these issues (not all).
Also applied TokenTestTrait assertTokens method instead of the one identical in PathautoTokenTest.php.
Comment #5
andreyjan commentedComment #6
andreyjan commentedComment #7
andreyjan commentedFixing failing test.
Comment #8
andreyjan commentedComment #9
andreyjan commentedAnother attempt. Sorry for the noise.
Comment #10
njim commentedQuestion: Is it appropriate to alter arguments in existing class Interfaces in a minor release? For example, in
AliasStorageHelperInterface, this patch updates the method fromdeleteMultiple($pids)todeleteMultiple(array $pids). While this is the proper Drupal standard, it could throw and error for anyone implementing the interface in other custom/contrib modules. Everything in the patch looks great, but I'm afraid to change the status to RTBC until someone can sign-off on this interface question.Code review:
Excellent job updating coding standards. Beyond the issues found in linting, this patch also includes work to complete and tidy up comments as well as fixing whitespace, capitalization, and punctuation issues.
Unit testing:
Testing was conducted with Drupal 8.8.1 and Pathauto 8.x-1.x-dev. This patch includes changes to the tests themselves. Most notable, removing a method assertTokens as this functionality is already available in TokenTestTrait. All PHPUnit tests successfully passed.
Functional testing:
While these are all non-functional changes, I performed some sanity tests to reviews functions that were touched in this patch.
- cleanTokenValues: Tested this method by creating a pattern for content that used
pathin one of the alias segments. Verified that this default safe-value was not sanitized as expected.- deleteMultiple and batchDelete: Confirmed that the delete multiple operations though the delete_bulk form works as expected.
- batchUpdate: Created a series of nodes using an alias. Altered the pattern and then regenerated the aliases using the action plugin on the content overview page.
- Pattern Edit Form: Verified that entity bundles appear on this form.
Comment #11
berdir> Question: Is it appropriate to alter arguments in existing class Interfaces in a minor release? For example, in AliasStorageHelperInterface, this patch updates the method from deleteMultiple($pids)to deleteMultiple(array $pids).
No, it is not. That's an API change, and I don't like coding standard (changes) that have a functional impact on code. That shouldn't be a coding standard and it's not in enforced in core.
Lets ignore that change and I'm sure this needs a reroll, commit a few more focused changes. I'm a but unsure how to best address this. Large patches like this are hard to review, those are too small generate a lot of work for me. One issue per type of problem seems like a useful compromise, for those that have several problems at least.
Comment #12
ngkoutsaik commentedComment #13
ngkoutsaik commentedHere is a rerolled patch.
I have not made any changes to it as it already is a large patch and someone should verify the reroll is OK before extending it.
I had a couple of conflicts also. They were on the tests.
Comment #14
rajandro commentedComment #15
rajandro commentedAfter applying the patch the module is still showing the following error. Where many of them are
Line indented incorrectlyMoving this to Needs Work.
Thanks
Rajandro
Comment #16
mrinalini9 commentedComment #17
mrinalini9 commentedFixed all coding standards issues as mentioned in #15, please review.
Comment #18
rajandro commentedThank you @mrinalini9, I have applied and checked the patch rerolled_patch-3104764-17.patch, Now the patch is looking clean and fixed all the coding standard issues. I think we can move this forward.
Thanks
Rajandro
Comment #19
rajandro commentedComment #20
raunak.singh commentedHi @rajandro,
I have rerolled this patch #17 for replacing t() with $this->t() please take a look.
Comment #21
raunak.singh commentedComment #22
raunak.singh commentedComment #24
raunak.singh commentedPlease ignore my patch #20 as $this-t() failing in testcase.
Comment #25
raunak.singh commentedComment #26
raunak.singh commentedComment #27
Guilherme Rabelo commentedHi, i will review this last patch.
Comment #28
Guilherme Rabelo commentedI cound't apply the last patch. So i dowloand the module and run phpcs to fix the codings standars.
I have found and fixed some issues but the following problems i dont know how to fixe.
So i need someone to review that.
Comment #30
Guilherme Rabelo commentedHi, my last patch have failed in tests. I use the last patch (26) and this didnt work. So i rerolled the module and apply the 17 patch, because it is the last patch working. After applying, i found this issues :
I fixed this issues.
Waiting for review.
Comment #31
tmaiochi commentedI'll review this
Comment #33
tmaiochi commentedThe patch in #30 fixed almost all messages in PHPCS, but there are some t() calls message that there aren't possible to change because tests will fail with the changes. There are also a messages about some returns, but as it was said in #28 I don't know how to fix them.
I just changed one line in #30 patch to the test pass.
Kindly review it.
Comment #34
victoria-marina commentedI'll review this.
Comment #35
victoria-marina commentedAfter the #33, I still found some warnings in phpcs. So I made a patch to correct them. But there are still 2 errors remaining:
Comment #36
berdirTo be honest, working on 100kb coding standard patches is really not a good use of your time. Reviewing this will take a ton of time and it's extremely unlikely to get a patch like this committed without planning this with the maintainer and scheduling it between other things.
Until there are better tools in place to manage this, like an easy way to opt-in to specific coding standards so it can be done gradually like core (and failing patches that don't match), I have no intention of committing a patch of this size that will break a lot of other patches that people are using.
Comment #37
anoopsingh92Comment #38
anoopsingh92Patch #35 is not applying to me.

Comment #39
anoopsingh92Comment #40
avpadernoThe 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.
Comment #41
jasonac91 commentedThe coding standards verification was performed; however, some functions or calls cannot be corrected as they would affect the module's functionality.
Comment #42
mably commentedComment #44
mably commented