- Issue created by @sunil jolapara
- 🇺🇸United States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
- 🇮🇹Italy apaderno Brescia, 🇮🇹
avpaderno → made their first commit to this issue’s fork.
- Merge request !8Created a new merge request to get the list of all the PHP_CodeSniffer errors/warnings to fix → (Open) created by apaderno
- 🇮🇹Italy apaderno Brescia, 🇮🇹
Furthermore, there are PHP_CodeSniffer errors the MR did not fix.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
avpaderno → changed the visibility of the branch 3477552-gitlab-ci-reports to hidden.
- 🇺🇸United States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
- 🇮🇹Italy apaderno Brescia, 🇮🇹
- 🇮🇳India divyansh.gupta Jaipur
Made Some changes and fixed some more php_cs errors.
- 🇳🇱Netherlands batigolix Utrecht
The pipeline has cspell and phpstan issues
- 🇮🇳India ankitv18
There's lot of phpstan fixes done in the MR which is irrelevant for this issue ~~ please revert those changes and work on the phpcs pipeline fixes only or update the issue summary.
- 🇮🇳India divyansh.gupta Jaipur
@ankitv18,
i have reverted those changes which i made to resolve phpstan and cspell errors. - Issue was unassigned.
- Status changed to Needs review
24 days ago 10:09pm 13 December 2024 - 🇨🇴Colombia ismaelromero Somewhere in the exotic Colombia
Hi,
I ran the following command to check for coding standards violations:
vendor/bin/phpcs -s web/modules/contrib/matomo_reporting_api --report-junit=junit.xml --report-full --report-summary --report-source
Then, I applied automatic fixes with:
vendor/bin/phpcbf -s web/modules/contrib/matomo_reporting_api
PHPCBF Result Summary:
---------------------------------------------------------------------- FILE FIXED REMAINING ---------------------------------------------------------------------- ...eporting_api/matomo_reporting_api.post_update.php 16 11 .../EventSubscriber/MatomoReportingApiSubscriber.php 29 12 ...ib/matomo_reporting_api/src/Form/SettingsForm.php 216 37 ...ontrib/matomo_reporting_api/src/ConfigHandler.php 51 17 ...b/matomo_reporting_api/src/MatomoQueryFactory.php 61 17 ...src/Exception/MissingMatomoServerUrlException.php 8 10 ...tomo_reporting_api/src/ConfigHandlerInterface.php 7 6 ...reporting_api/src/MatomoQueryFactoryInterface.php 5 7 ...porting_api/tests/src/Kernel/AccessDeniedTest.php 21 9 ...eporting_api/tests/src/Unit/ConfigHandlerTest.php 304 46 ...xample/src/Plugin/Block/MatomoStatisticsBlock.php 107 29 ---------------------------------------------------------------------- A TOTAL OF 825 ERRORS WERE FIXED IN 11 FILES ----------------------------------------------------------------------
After running phpcs again, I still found some issues:
FILE: ...ontrib/matomo_reporting_api/matomo_reporting_api.post_update.php ---------------------------------------------------------------------- FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 5 LINES ---------------------------------------------------------------------- 3 | ERROR | Missing short description in doc comment | | (Generic.Commenting.DocComment.MissingShort) 6 | WARNING | PHP version not specified | | (PEAR.Commenting.FileComment.MissingVersion) 6 | ERROR | Missing @category tag in file comment | | (PEAR.Commenting.FileComment.MissingCategoryTag) 6 | ERROR | Missing @package tag in file comment | | (PEAR.Commenting.FileComment.MissingPackageTag) 6 | ERROR | Missing @author tag in file comment | | (PEAR.Commenting.FileComment.MissingAuthorTag) 6 | ERROR | Missing @license tag in file comment | | (PEAR.Commenting.FileComment.MissingLicenseTag) 6 | ERROR | Missing @link tag in file comment | | (PEAR.Commenting.FileComment.MissingLinkTag) 12 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 13 | ERROR | Function name | | "matomo_reporting_api_post_update_copy_matomo_config" | | is prefixed with a package name but does not begin | | with a capital letter | | (PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital) 13 | ERROR | Function name | | "matomo_reporting_api_post_update_copy_matomo_config" | | is invalid; consider | | "Matomo_Reporting_Api_Post_Update_Copy_Matomo_config" | | instead | | (PEAR.NamingConventions.ValidFunctionName.FunctionNameInvalid) 22 | WARNING | Line exceeds 85 characters; contains 101 characters | | (Generic.Files.LineLength.TooLong) ---------------------------------------------------------------------- FILE: ...porting_api/src/EventSubscriber/MatomoReportingApiSubscriber.php ---------------------------------------------------------------------- FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 8 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 14 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 14 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 14 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 14 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 14 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 28 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 44 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 46 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 51 | WARNING | Line exceeds 85 characters; contains 110 characters | | (Generic.Files.LineLength.TooLong) 54 | WARNING | Line exceeds 85 characters; contains 87 characters | | (Generic.Files.LineLength.TooLong) 63 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) ---------------------------------------------------------------------- FILE: ...b/modules/contrib/matomo_reporting_api/src/Form/SettingsForm.php ---------------------------------------------------------------------- FOUND 22 ERRORS AND 15 WARNINGS AFFECTING 30 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 19 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 19 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 19 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 19 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 19 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 40 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 42 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 44 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 47 | WARNING | Line exceeds 85 characters; contains 141 characters | | (Generic.Files.LineLength.TooLong) 54 | ERROR | Doc comment for parameter "$container" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 56 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 68 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 76 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 82 | ERROR | Doc comment for parameter "$form" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 82 | ERROR | Doc comment for parameter "$form_state" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 84 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 91 | WARNING | Line exceeds 85 characters; contains 149 characters | | (Generic.Files.LineLength.TooLong) 104 | WARNING | Line exceeds 85 characters; contains 102 characters | | (Generic.Files.LineLength.TooLong) 128 | WARNING | Line exceeds 85 characters; contains 268 characters | | (Generic.Files.LineLength.TooLong) 138 | WARNING | Line exceeds 85 characters; contains 86 characters | | (Generic.Files.LineLength.TooLong) 141 | WARNING | Line exceeds 85 characters; contains 99 characters | | (Generic.Files.LineLength.TooLong) 158 | WARNING | Line exceeds 85 characters; contains 186 characters | | (Generic.Files.LineLength.TooLong) 169 | ERROR | Doc comment for parameter "$form" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 169 | ERROR | Doc comment for parameter "$form_state" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 171 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 179 | WARNING | Line exceeds 85 characters; contains 107 characters | | (Generic.Files.LineLength.TooLong) 184 | WARNING | Line exceeds 85 characters; contains 86 characters | | (Generic.Files.LineLength.TooLong) 187 | WARNING | Line exceeds 85 characters; contains 99 characters | | (Generic.Files.LineLength.TooLong) 208 | WARNING | Line exceeds 85 characters; contains 107 characters | | (Generic.Files.LineLength.TooLong) 220 | WARNING | Line exceeds 85 characters; contains 110 characters | | (Generic.Files.LineLength.TooLong) 232 | WARNING | Line exceeds 85 characters; contains 100 characters | | (Generic.Files.LineLength.TooLong) 233 | WARNING | Line exceeds 85 characters; contains 94 characters | | (Generic.Files.LineLength.TooLong) 237 | ERROR | Doc comment for parameter "$form" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 237 | ERROR | Doc comment for parameter "$form_state" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 239 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 249 | WARNING | Line exceeds 85 characters; contains 102 characters | | (Generic.Files.LineLength.TooLong) ---------------------------------------------------------------------- FILE: ...p/web/modules/contrib/matomo_reporting_api/src/ConfigHandler.php ---------------------------------------------------------------------- FOUND 13 ERRORS AND 4 WARNINGS AFFECTING 13 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 16 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 16 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 16 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 16 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 16 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 44 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 46 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 49 | WARNING | Line exceeds 85 characters; contains 111 characters | | (Generic.Files.LineLength.TooLong) 57 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 60 | WARNING | Line exceeds 85 characters; contains 98 characters | | (Generic.Files.LineLength.TooLong) 66 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 74 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 88 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 96 | WARNING | Line exceeds 85 characters; contains 103 characters | | (Generic.Files.LineLength.TooLong) 111 | WARNING | Line exceeds 85 characters; contains 138 characters | | (Generic.Files.LineLength.TooLong) 113 | ERROR | Expected "} else {\n"; found "}\n else | | {\n" (PEAR.ControlStructures.ControlSignature.Found) ---------------------------------------------------------------------- FILE: .../modules/contrib/matomo_reporting_api/src/MatomoQueryFactory.php ---------------------------------------------------------------------- FOUND 14 ERRORS AND 3 WARNINGS AFFECTING 13 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 19 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 19 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 19 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 19 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 19 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 54 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 56 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 58 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 61 | WARNING | Line exceeds 85 characters; contains 136 characters | | (Generic.Files.LineLength.TooLong) 68 | ERROR | Doc comment for parameter "$method" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 70 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 81 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 94 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 96 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 125 | WARNING | Line exceeds 85 characters; contains 146 characters | | (Generic.Files.LineLength.TooLong) 131 | WARNING | Line exceeds 85 characters; contains 272 characters | | (Generic.Files.LineLength.TooLong) ---------------------------------------------------------------------- FILE: ..._reporting_api/src/Exception/MissingMatomoServerUrlException.php ---------------------------------------------------------------------- FOUND 9 ERRORS AND 1 WARNING AFFECTING 4 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 9 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 9 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 9 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 9 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 9 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 13 | ERROR | Doc comment for parameter "$message" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 13 | ERROR | Doc comment for parameter "$code" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 13 | ERROR | Doc comment for parameter "$previous" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 16 | WARNING | Line exceeds 85 characters; contains 87 characters | | (Generic.Files.LineLength.TooLong) ---------------------------------------------------------------------- FILE: ...ules/contrib/matomo_reporting_api/src/ConfigHandlerInterface.php ---------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 13 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 13 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 13 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 13 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 13 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) ---------------------------------------------------------------------- FILE: ...contrib/matomo_reporting_api/src/MatomoQueryFactoryInterface.php ---------------------------------------------------------------------- FOUND 7 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 9 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 9 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 9 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 9 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 9 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 16 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) ---------------------------------------------------------------------- FILE: ...ntrib/matomo_reporting_api/tests/src/Kernel/AccessDeniedTest.php ---------------------------------------------------------------------- FOUND 8 ERRORS AND 1 WARNING AFFECTING 5 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 14 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 14 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 14 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 14 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 14 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 29 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 38 | WARNING | Line exceeds 85 characters; contains 100 characters | | (Generic.Files.LineLength.TooLong) 45 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) ---------------------------------------------------------------------- FILE: ...ontrib/matomo_reporting_api/tests/src/Unit/ConfigHandlerTest.php ---------------------------------------------------------------------- FOUND 29 ERRORS AND 17 WARNINGS AFFECTING 34 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 18 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 18 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 18 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 18 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 18 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 38 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 47 | ERROR | Missing short description in doc comment | | (Generic.Commenting.DocComment.MissingShort) 49 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 54 | WARNING | Line exceeds 85 characters; contains 108 characters | | (Generic.Files.LineLength.TooLong) 57 | WARNING | Line exceeds 85 characters; contains 88 characters | | (Generic.Files.LineLength.TooLong) 60 | ERROR | Missing short description in doc comment | | (Generic.Commenting.DocComment.MissingShort) 60 | ERROR | Doc comment for parameter "$matomo_exists" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 60 | ERROR | Doc comment for parameter "$inherit_matomo_settings" | | missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 60 | ERROR | Doc comment for parameter "$expected_site_id" | | missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 63 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 64 | WARNING | Line exceeds 85 characters; contains 117 characters | | (Generic.Files.LineLength.TooLong) 68 | WARNING | Line exceeds 85 characters; contains 97 characters | | (Generic.Files.LineLength.TooLong) 74 | WARNING | Line exceeds 85 characters; contains 97 characters | | (Generic.Files.LineLength.TooLong) 85 | WARNING | Line exceeds 85 characters; contains 124 characters | | (Generic.Files.LineLength.TooLong) 92 | ERROR | Expected "} else {\n"; found "}\n else {\n" | | (PEAR.ControlStructures.ControlSignature.Found) 95 | WARNING | Line exceeds 85 characters; contains 111 characters | | (Generic.Files.LineLength.TooLong) 152 | ERROR | Missing short description in doc comment | | (Generic.Commenting.DocComment.MissingShort) 152 | ERROR | Doc comment for parameter "$matomo_exists" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 152 | ERROR | Doc comment for parameter "$inherit_matomo_settings" | | missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 152 | ERROR | Doc comment for parameter "$https_url" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 152 | ERROR | Doc comment for parameter "$http_url" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 152 | ERROR | Doc comment for parameter "$expected_url" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 155 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 156 | WARNING | Line exceeds 85 characters; contains 148 characters | | (Generic.Files.LineLength.TooLong) 158 | WARNING | Line exceeds 85 characters; contains 97 characters | | (Generic.Files.LineLength.TooLong) 165 | WARNING | Line exceeds 85 characters; contains 93 characters | | (Generic.Files.LineLength.TooLong) 176 | WARNING | Line exceeds 85 characters; contains 120 characters | | (Generic.Files.LineLength.TooLong) 186 | WARNING | Line exceeds 85 characters; contains 97 characters | | (Generic.Files.LineLength.TooLong) 197 | WARNING | Line exceeds 85 characters; contains 124 characters | | (Generic.Files.LineLength.TooLong) 359 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 361 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 363 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 365 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 366 | WARNING | Line exceeds 85 characters; contains 92 characters | | (Generic.Files.LineLength.TooLong) 368 | WARNING | Line exceeds 85 characters; contains 94 characters | | (Generic.Files.LineLength.TooLong) 386 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 388 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 391 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 392 | WARNING | Line exceeds 85 characters; contains 114 characters | | (Generic.Files.LineLength.TooLong) 404 | WARNING | Line exceeds 85 characters; contains 98 characters | | (Generic.Files.LineLength.TooLong) ---------------------------------------------------------------------- FILE: ...reporting_api_example/src/Plugin/Block/MatomoStatisticsBlock.php ---------------------------------------------------------------------- FOUND 24 ERRORS AND 5 WARNINGS AFFECTING 18 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment | | (PEAR.Commenting.FileComment.Missing) 21 | ERROR | Missing @category tag in class comment | | (PEAR.Commenting.ClassComment.MissingCategoryTag) 21 | ERROR | Missing @package tag in class comment | | (PEAR.Commenting.ClassComment.MissingPackageTag) 21 | ERROR | Missing @author tag in class comment | | (PEAR.Commenting.ClassComment.MissingAuthorTag) 21 | ERROR | Missing @license tag in class comment | | (PEAR.Commenting.ClassComment.MissingLicenseTag) 21 | ERROR | Missing @link tag in class comment | | (PEAR.Commenting.ClassComment.MissingLinkTag) 22 | WARNING | Line exceeds 85 characters; contains 88 characters | | (Generic.Files.LineLength.TooLong) 35 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 37 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 39 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 39 | WARNING | Line exceeds 85 characters; contains 89 characters | | (Generic.Files.LineLength.TooLong) 41 | ERROR | Missing parameter comment | | (PEAR.Commenting.FunctionComment.MissingParamComment) 41 | WARNING | Line exceeds 85 characters; contains 92 characters | | (Generic.Files.LineLength.TooLong) 44 | WARNING | Line exceeds 85 characters; contains 136 characters | | (Generic.Files.LineLength.TooLong) 50 | ERROR | Doc comment for parameter "$container" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 50 | ERROR | Doc comment for parameter "$configuration" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 50 | ERROR | Doc comment for parameter "$plugin_id" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 50 | ERROR | Doc comment for parameter "$plugin_definition" | | missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 52 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 53 | WARNING | Line exceeds 85 characters; contains 118 characters | | (Generic.Files.LineLength.TooLong) 65 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 74 | ERROR | Doc comment for parameter "$form" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 74 | ERROR | Doc comment for parameter "$form_state" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 76 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 101 | ERROR | Doc comment for parameter "$form" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 101 | ERROR | Doc comment for parameter "$form_state" missing | | (PEAR.Commenting.FunctionComment.MissingParamTag) 103 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 112 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) 154 | ERROR | Missing @return tag in function comment | | (PEAR.Commenting.FunctionComment.MissingReturn) ---------------------------------------------------------------------- Time: 81ms; Memory: 8MB PHP CODE SNIFFER REPORT SUMMARY ---------------------------------------------------------------------- FILE ERRORS WARNINGS ---------------------------------------------------------------------- ...eporting_api/matomo_reporting_api.post_update.php 9 2 ...xample/src/Plugin/Block/MatomoStatisticsBlock.php 24 5 ...ontrib/matomo_reporting_api/src/ConfigHandler.php 13 4 ...tomo_reporting_api/src/ConfigHandlerInterface.php 6 0 ...b/matomo_reporting_api/src/MatomoQueryFactory.php 14 3 ...reporting_api/src/MatomoQueryFactoryInterface.php 7 0 .../EventSubscriber/MatomoReportingApiSubscriber.php 10 2 ...src/Exception/MissingMatomoServerUrlException.php 9 1 ...ib/matomo_reporting_api/src/Form/SettingsForm.php 22 15 ...porting_api/tests/src/Kernel/AccessDeniedTest.php 8 1 ...eporting_api/tests/src/Unit/ConfigHandlerTest.php 29 17 ---------------------------------------------------------------------- A TOTAL OF 151 ERRORS AND 50 WARNINGS WERE FOUND IN 11 FILES ---------------------------------------------------------------------- PHP CODE SNIFFER VIOLATION SOURCE SUMMARY ---------------------------------------------------------------------- SOURCE COUNT ---------------------------------------------------------------------- Generic.Files.LineLength.TooLong 49 PEAR.Commenting.FunctionComment.MissingReturn 29 PEAR.Commenting.FunctionComment.MissingParamTag 27 PEAR.Commenting.FunctionComment.MissingParamComment 22 PEAR.Commenting.ClassComment.MissingAuthorTag 10 PEAR.Commenting.ClassComment.MissingCategoryTag 10 PEAR.Commenting.ClassComment.MissingLicenseTag 10 PEAR.Commenting.ClassComment.MissingLinkTag 10 PEAR.Commenting.ClassComment.MissingPackageTag 10 PEAR.Commenting.FileComment.Missing 10 Generic.Commenting.DocComment.MissingShort 4 PEAR.ControlStructures.ControlSignature.Found 2 PEAR.Commenting.FileComment.MissingAuthorTag 1 PEAR.Commenting.FileComment.MissingCategoryTag 1 PEAR.Commenting.FileComment.MissingLicenseTag 1 PEAR.Commenting.FileComment.MissingLinkTag 1 PEAR.Commenting.FileComment.MissingPackageTag 1 PEAR.Commenting.FileComment.MissingVersion 1 PEAR.NamingConventions.ValidFunctionName.FunctionNameInvalid 1 PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital 1 ---------------------------------------------------------------------- A TOTAL OF 201 SNIFF VIOLATIONS WERE FOUND IN 20 SOURCES ----------------------------------------------------------------------
I’m not sure if I’m working on the correct branch or if these issues have already been addressed elsewhere. Could you clarify if these need to be fixed or if they are resolved in another branch? I want to avoid duplicating effort.
Thank you, and I look forward to your guidance!
- 🇨🇴Colombia ismaelromero Somewhere in the exotic Colombia
Hi everyone,
I've just committed the automatic fixes applied by phpcbf to the matomo_reporting_api module. I'll now continue working on the remaining issues reported by phpcs.
If there's anything specific you'd like me to focus on or any guidance regarding these fixes, please let me know. I want to ensure I'm aligned with the current work and avoid duplicating efforts.
Thanks, and I'll keep you posted on my progress!
- 🇮🇳India kalash-j jaipur
I have applied Both the MRs 7 and 8 have found issues in both
ghostman-zibbi@Zibbi:~/Desktop/test site/web/modules/custom/matomo_reporting_api-3477552 (3477552-gitlab-ci-reports)$ lando phpcs . FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/Exception/MissingMatomoServerUrlException.php ------------------------------------------------------------------------------------------------------------ FOUND 2 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------ 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. 15 | ERROR | [x] Parameter $previous has null default value, but is not marked as nullable. ------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------ FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/MatomoQueryFactoryInterface.php ---------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------- 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. ---------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/ConfigHandlerInterface.php ----------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. 35 | ERROR | [ ] Public method name "ConfigHandlerInterface::getSiteID" is not in lowerCamel format ----------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/ConfigHandler.php -------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------------------- 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. 64 | ERROR | [ ] Public method name "ConfigHandler::getSiteID" is not in lowerCamel format -------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/Form/SettingsForm.php ------------------------------------------------------------------------------------ FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ------------------------------------------------------------------------------------ 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. 98 | WARNING | [x] A comma should follow the last multiline array item. Found: ) ------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------ FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/EventSubscriber/MatomoReportingApiSubscriber.php --------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. --------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/MatomoQueryFactory.php ------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------- 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. ------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/readme.md ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 81 | WARNING | Line exceeds 80 characters; contains 92 characters ---------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/matomo_reporting_api.install --------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------- 8 | ERROR | [x] Expected strict_types=1, found strict_types = 1. --------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/matomo_reporting_api.module -------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------- 8 | ERROR | [x] Expected strict_types=1, found strict_types = 1. -------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/matomo_reporting_api.post_update.php ----------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------- 8 | ERROR | [x] Expected strict_types=1, found strict_types = 1. ----------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/matomo_reporting_api_example/src/Plugin/Block/MatomoStatisticsBlock.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. ---------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/matomo_reporting_api_example/readme.md ------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------- 3 | WARNING | Line exceeds 80 characters; contains 81 characters ------------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/tests/src/Unit/ConfigHandlerTest.php ----------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------- 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. 355 | ERROR | [ ] Missing parameter type ----------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/tests/src/Kernel/AccessDeniedTest.php ------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------ 3 | ERROR | [x] Expected strict_types=1, found strict_types = 1. ------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------ Time: 167ms; Memory: 12MB
ghostman-zibbi@Zibbi:~/Desktop/test site/web/modules/custom/matomo_reporting_api-3477552 (3477552-fix-the-issues)$ lando phpcs . FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/Exception/MissingMatomoServerUrlException.php ------------------------------------------------------------------------------------------------------------ FOUND 8 ERRORS AFFECTING 7 LINES ------------------------------------------------------------------------------------------------------------ 11 | ERROR | [x] Opening brace should be on the same line as the declaration 13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 16 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 17 | ERROR | [x] Opening brace should be on the same line as the declaration 18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------ FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/MatomoQueryFactoryInterface.php ---------------------------------------------------------------------------------------------- FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES ---------------------------------------------------------------------------------------------- 11 | ERROR | [x] Opening brace should be on the same line as the declaration 13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 17 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ---------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/ConfigHandlerInterface.php ----------------------------------------------------------------------------------------- FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 9 LINES ----------------------------------------------------------------------------------------- 15 | ERROR | [x] Opening brace should be on the same line as the declaration 17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 21 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 29 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ----------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/ConfigHandler.php ---------------------------------------------------------------------------------------------- FOUND 51 ERRORS AFFECTING 50 LINES ---------------------------------------------------------------------------------------------- 18 | ERROR | [x] Opening brace should be on the same line as the declaration 20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 44 | ERROR | [x] Expected 1 spaces after parameter type; 4 found 49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 50 | ERROR | [x] Opening brace should be on the same line as the declaration 51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 59 | ERROR | [x] Opening brace should be on the same line as the declaration 60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 68 | ERROR | [x] Opening brace should be on the same line as the declaration 69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 76 | ERROR | [x] Opening brace should be on the same line as the declaration 77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 95 | ERROR | [x] Opening brace should be on the same line as the declaration 96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 108 | ERROR | [x] Opening brace should be on the same line as the declaration 109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 110 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 111 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 112 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 113 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 114 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 114 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 115 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 118 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ---------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 51 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/Form/SettingsForm.php ---------------------------------------------------------------------------------------------- FOUND 155 ERRORS AND 3 WARNINGS AFFECTING 153 LINES ---------------------------------------------------------------------------------------------- 21 | ERROR | [x] Opening brace should be on the same line as the declaration 23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 40 | ERROR | [x] Expected 1 spaces after parameter type; 4 found 44 | ERROR | [x] Expected 1 spaces after parameter type; 19 found 47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 48 | ERROR | [x] Opening brace should be on the same line as the declaration 49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 58 | ERROR | [x] Opening brace should be on the same line as the declaration 59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 70 | ERROR | [x] Opening brace should be on the same line as the declaration 71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 78 | ERROR | [x] Opening brace should be on the same line as the declaration 79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 86 | ERROR | [x] Opening brace should be on the same line as the declaration 87 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 89 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 90 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 91 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 92 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 93 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 94 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 97 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters 97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 98 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters 98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 102 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 103 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 105 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 107 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 108 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 109 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 113 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 114 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 115 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 115 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 116 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 117 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 118 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 120 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 121 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 126 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 127 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 128 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 129 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 130 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 130 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 131 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 132 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 133 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 134 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 135 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 138 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 139 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 147 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 148 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 149 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 150 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 151 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 152 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 153 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 154 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 156 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 157 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 158 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 159 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 160 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 161 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 162 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 163 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 167 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 169 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 172 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 173 | ERROR | [x] Opening brace should be on the same line as the declaration 174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 177 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 178 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 179 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 183 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 184 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 185 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 191 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 193 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 194 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 195 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 196 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 197 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 198 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 199 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 200 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 201 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 203 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 204 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 205 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 206 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24 209 | ERROR | [x] Array indentation error, expected 34 spaces but found 32 210 | ERROR | [x] Array indentation error, expected 34 spaces but found 32 211 | ERROR | [x] Array indentation error, expected 34 spaces but found 32 215 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 216 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 217 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 218 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 221 | ERROR | [x] Array indentation error, expected 30 spaces but found 28 222 | ERROR | [x] Array indentation error, expected 30 spaces but found 28 223 | ERROR | [x] Array indentation error, expected 30 spaces but found 28 227 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 228 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 229 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 231 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 232 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 233 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 234 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 235 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 237 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 240 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 241 | ERROR | [x] Opening brace should be on the same line as the declaration 242 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 244 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 246 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters 246 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 247 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 248 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 249 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 250 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 252 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 253 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 254 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 256 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 257 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ---------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 155 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/EventSubscriber/MatomoReportingApiSubscriber.php --------------------------------------------------------------------------------------------------------------- FOUND 28 ERRORS AFFECTING 28 LINES --------------------------------------------------------------------------------------------------------------- 16 | ERROR | [x] Opening brace should be on the same line as the declaration 18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 32 | ERROR | [x] Opening brace should be on the same line as the declaration 33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 48 | ERROR | [x] Opening brace should be on the same line as the declaration 49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 51 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 52 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 53 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 54 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 55 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 56 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 58 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 65 | ERROR | [x] Opening brace should be on the same line as the declaration 66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 67 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 --------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 28 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/src/MatomoQueryFactory.php ------------------------------------------------------------------------------------- FOUND 61 ERRORS AND 2 WARNINGS AFFECTING 62 LINES ------------------------------------------------------------------------------------- 21 | ERROR | [x] Opening brace should be on the same line as the declaration 23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 54 | ERROR | [x] Expected 1 spaces after parameter type; 34 found 58 | ERROR | [x] Expected 1 spaces after parameter type; 3 found 61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 62 | ERROR | [x] Opening brace should be on the same line as the declaration 63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 72 | ERROR | [x] Opening brace should be on the same line as the declaration 73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 83 | ERROR | [x] Opening brace should be on the same line as the declaration 84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 85 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 89 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 97 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 98 | ERROR | [x] Opening brace should be on the same line as the declaration 99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 101 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 106 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 108 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 111 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 119 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 120 | ERROR | [x] Opening brace should be on the same line as the declaration 121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 125 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 126 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 127 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 129 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 129 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 131 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 132 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 135 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 61 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/matomo_reporting_api.post_update.php ----------------------------------------------------------------------------------------------- FOUND 16 ERRORS AND 1 WARNING AFFECTING 15 LINES ----------------------------------------------------------------------------------------------- 14 | ERROR | [x] Opening brace should be on the same line as the declaration 15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 16 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 20 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 23 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 25 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 26 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ----------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/matomo_reporting_api_example/src/Plugin/Block/MatomoStatisticsBlock.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 84 ERRORS AFFECTING 84 LINES ---------------------------------------------------------------------------------------------------------------------------------- 23 | ERROR | [x] Opening brace should be on the same line as the declaration 25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 35 | ERROR | [x] Expected 1 spaces after parameter type; 52 found 37 | ERROR | [x] Expected 1 spaces after parameter type; 51 found 39 | ERROR | [x] Expected 1 spaces after parameter type; 51 found 44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 45 | ERROR | [x] Opening brace should be on the same line as the declaration 46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 54 | ERROR | [x] Opening brace should be on the same line as the declaration 55 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 67 | ERROR | [x] Opening brace should be on the same line as the declaration 68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 69 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 70 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 78 | ERROR | [x] Opening brace should be on the same line as the declaration 79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 80 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 81 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 82 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 83 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 87 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 88 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 89 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 90 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 91 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 92 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 93 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 95 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 105 | ERROR | [x] Opening brace should be on the same line as the declaration 106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 108 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 113 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 114 | ERROR | [x] Opening brace should be on the same line as the declaration 115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 118 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 120 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 122 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 123 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 124 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 125 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 126 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 129 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 131 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 132 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 133 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 134 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 135 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 137 | ERROR | [x] Array indentation error, expected 18 spaces but found 16 138 | ERROR | [x] Array indentation error, expected 18 spaces but found 16 140 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 141 | ERROR | [x] Array indentation error, expected 14 spaces but found 12 143 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 146 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 147 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 148 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 150 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 152 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 155 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 156 | ERROR | [x] Opening brace should be on the same line as the declaration 157 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 159 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ---------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 84 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------- FILE: /app/web/modules/custom/matomo_reporting_api-3477552/tests/src/Unit/ConfigHandlerTest.php ------------------------------------------------------------------------------------------------ FOUND 262 ERRORS AND 10 WARNINGS AFFECTING 218 LINES ------------------------------------------------------------------------------------------------ 16 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 14 20 | ERROR | [x] Opening brace should be on the same line as the declaration 22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 40 | ERROR | [x] Opening brace should be on the same line as the declaration 41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 43 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 51 | ERROR | [x] Opening brace should be on the same line as the declaration 52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 54 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 57 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 65 | ERROR | [x] Opening brace should be on the same line as the declaration 66 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 71 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters 71 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 72 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 73 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 74 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 75 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 77 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 78 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 83 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 83 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 84 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 85 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 86 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 87 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 93 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters 93 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 94 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 95 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 102 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 112 | ERROR | [x] Opening brace should be on the same line as the declaration 113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 116 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 116 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 118 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 118 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 121 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 125 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 125 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 127 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 127 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 130 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 134 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 134 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 136 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 136 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 139 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 143 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 143 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 145 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 145 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 147 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 150 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 152 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 157 | ERROR | [x] Opening brace should be on the same line as the declaration 158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 160 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters 160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 161 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 161 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 164 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 165 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 166 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12 168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 169 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12 174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 177 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 178 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12 183 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters 183 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 184 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 185 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 186 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 187 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 189 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 190 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 195 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 195 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 196 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 197 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 198 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 199 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 203 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 205 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 206 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 207 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 209 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 220 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 221 | ERROR | [x] Opening brace should be on the same line as the declaration 222 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 225 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 225 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 227 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 227 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 229 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 231 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 233 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 233 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 236 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 236 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 237 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 237 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 238 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 239 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 240 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 240 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 243 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 243 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 244 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 244 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 245 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 246 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 247 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 247 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 250 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 250 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 251 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 251 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 252 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 253 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 254 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 254 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 257 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 257 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 258 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 258 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 259 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 260 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 261 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 264 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 264 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 265 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 265 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 266 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 267 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 268 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 271 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 271 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 272 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 272 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 273 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 274 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 275 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 278 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 278 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 279 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 279 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 280 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 281 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 282 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 285 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 285 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 286 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 286 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 287 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 288 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 289 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 292 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 292 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 293 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 293 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 294 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 295 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 296 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 299 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 299 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 300 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 300 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 301 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 302 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 303 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 306 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 306 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 307 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 307 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 308 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 309 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 310 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 313 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 313 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 314 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 314 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 315 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 316 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 317 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 320 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 320 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 321 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 321 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 322 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 323 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 324 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 327 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 327 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 328 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 328 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 329 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 330 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 331 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 334 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 334 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 335 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 335 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 336 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 337 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 338 | ERROR | [x] Array indentation error, expected 10 spaces but found 8 341 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 343 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 351 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 352 | ERROR | [x] Opening brace should be on the same line as the declaration 353 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 354 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 356 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 363 | ERROR | [x] Expected 1 spaces after parameter type; 2 found 366 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 367 | ERROR | [x] Opening brace should be on the same line as the declaration 368 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 369 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12 371 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 372 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12 376 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 377 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12 381 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 383 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 392 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 393 | ERROR | [x] Opening brace should be on the same line as the declaration 394 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 394 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 395 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 396 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 397 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12 401 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 402 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters 402 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 403 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 404 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 405 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 407 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 408 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 412 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 413 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16 417 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 418 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 262 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------ FILE: /app/web/modules/custom/matomo_reporting_api-3477552/tests/src/Kernel/AccessDeniedTest.php ------------------------------------------------------------------------------------------------ FOUND 23 ERRORS AFFECTING 23 LINES ------------------------------------------------------------------------------------------------ 16 | ERROR | [x] Opening brace should be on the same line as the declaration 18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 22 | ERROR | [x] Array indentation error, expected 6 spaces but found 4 23 | ERROR | [x] Array indentation error, expected 6 spaces but found 4 24 | ERROR | [x] Array indentation error, expected 6 spaces but found 4 27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 31 | ERROR | [x] Opening brace should be on the same line as the declaration 32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 47 | ERROR | [x] Opening brace should be on the same line as the declaration 48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 ------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------ Time: 175ms; Memory: 14MB