phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml sphoenixai/ FILE: sphoenixai/sphoenix_ai.module ------------------------------------------------------------------------------------------------------------------------------- FOUND 35 ERRORS AND 1 WARNING AFFECTING 36 LINES ------------------------------------------------------------------------------------------------------------------------------- 16 | ERROR | [x] Opening brace should be on the same line as the declaration 42 | ERROR | [x] Opening brace should be on the same line as the declaration 46 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 50 | WARNING | [x] A comma should follow the last multiline array item. Found: 'sphoenix_ai.my_stats' 54 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 69 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 82 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 85 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 86 | ERROR | [x] Expected newline after closing brace 88 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 116 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements 118 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements 119 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements 129 | ERROR | [x] Opening brace should be on the same line as the declaration 180 | ERROR | [x] Opening brace should be on the same line as the declaration 207 | ERROR | [x] Opening brace should be on the same line as the declaration 212 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements 228 | ERROR | [x] Opening brace should be on the same line as the declaration 236 | ERROR | [x] Opening brace should be on the same line as the declaration 317 | ERROR | [x] Expected 1 blank line after function; 2 found 329 | ERROR | [x] Opening brace should be on the same line as the declaration 330 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 337 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 356 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 368 | ERROR | [x] Expected newline after closing brace 375 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 378 | ERROR | [x] Expected 1 blank line after function; 2 found 388 | ERROR | [x] Opening brace should be on the same line as the declaration 399 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 402 | ERROR | [x] Expected newline after closing brace 414 | ERROR | [x] Opening brace should be on the same line as the declaration 421 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 431 | ERROR | [x] Expected 1 blank line after function; 2 found 440 | ERROR | [x] Opening brace should be on the same line as the declaration 442 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 448 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 36 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/README.md --------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 112 ERRORS AND 7 WARNINGS AFFECTING 45 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3 | WARNING | [ ] Line exceeds 80 characters; contains 145 characters 22 | WARNING | [ ] Line exceeds 80 characters; contains 244 characters 26 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters 345 | ERROR | [x] You must use "/**" style comments for a file comment 345 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 346 | ERROR | [x] You must use "/**" style comments for a function comment 349 | ERROR | [x] Whitespace found at end of line 353 | ERROR | [x] Whitespace found at end of line 357 | WARNING | [x] A comma should follow the last multiline array item. Found: 'article' 359 | ERROR | [x] Whitespace found at end of line 370 | ERROR | [x] Concat operator must be surrounded by a single space 371 | ERROR | [x] Concat operator must be surrounded by a single space 372 | ERROR | [x] Concat operator must be surrounded by a single space 373 | ERROR | [x] Concat operator must be surrounded by a single space 374 | ERROR | [x] Concat operator must be surrounded by a single space 375 | ERROR | [x] Concat operator must be surrounded by a single space 380 | ERROR | [x] Expected 1 space after "<"; 0 found 380 | ERROR | [x] Expected 1 space before "?"; 0 found 380 | ERROR | [x] Expected 1 space after "?"; 0 found 382 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 383 | ERROR | [x] You must use "/**" style comments for a class comment 383 | WARNING | [ ] Class name must be prefixed with the project name "SphoenixAi" 384 | ERROR | [x] Whitespace found at end of line 385 | ERROR | [ ] Missing member variable doc comment 386 | ERROR | [ ] Missing member variable doc comment 387 | ERROR | [x] Whitespace found at end of line 390 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 395 | ERROR | [x] Whitespace found at end of line 396 | ERROR | [x] Missing function doc comment 397 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 398 | WARNING | [ ] Unused variable $mapping. 400 | ERROR | [x] Whitespace found at end of line 402 | ERROR | [x] Expected 1 blank line after function; 0 found 403 | ERROR | [x] The closing brace for the class must have an empty line before it 411 | ERROR | [x] Expected 1 space before "/"; 0 found 411 | ERROR | [x] Expected 1 space after "/"; 0 found 411 | ERROR | [x] Expected 1 space before "/"; 0 found 411 | ERROR | [x] Expected 1 space after "/"; 0 found 411 | ERROR | [x] Expected 1 space before "/"; 0 found 411 | ERROR | [x] Expected 1 space after "/"; 0 found 411 | ERROR | [x] Expected 1 space before "/"; 0 found 411 | ERROR | [x] Expected 1 space after "/"; 0 found 411 | ERROR | [x] Expected 1 space before "-"; 0 found 411 | ERROR | [x] Expected 1 space after "-"; 0 found 411 | ERROR | [x] Expected 1 space before "/"; 0 found 411 | ERROR | [x] Expected 1 space after "/"; 0 found 411 | ERROR | [x] Expected 1 space before "-"; 0 found 411 | ERROR | [x] Expected 1 space after "-"; 0 found 418 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead 421 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead 424 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead 429 | ERROR | [x] Expected 1 space before "/"; 0 found 429 | ERROR | [x] Expected 1 space after "/"; 0 found 429 | ERROR | [x] Expected 1 space before "/"; 0 found 429 | ERROR | [x] Expected 1 space after "/"; 0 found 429 | ERROR | [x] Expected 1 space before "/"; 0 found 429 | ERROR | [x] Expected 1 space after "/"; 0 found 429 | ERROR | [x] Expected 1 space before "/"; 0 found 429 | ERROR | [x] Expected 1 space after "/"; 0 found 429 | ERROR | [x] Expected 1 space before "-"; 0 found 429 | ERROR | [x] Expected 1 space after "-"; 0 found 429 | ERROR | [x] Expected 1 space before "/"; 0 found 429 | ERROR | [x] Expected 1 space after "/"; 0 found 429 | ERROR | [x] Expected 1 space before "-"; 0 found 429 | ERROR | [x] Expected 1 space after "-"; 0 found 435 | ERROR | [x] Concat operator must be surrounded by a single space 435 | ERROR | [x] Concat operator must be surrounded by a single space 454 | ERROR | [x] Expected 1 space before "/"; 0 found 454 | ERROR | [x] Expected 1 space after "/"; 0 found 454 | ERROR | [x] Expected 1 space before "/"; 0 found 454 | ERROR | [x] Expected 1 space after "/"; 0 found 454 | ERROR | [x] Expected 1 space before "/"; 0 found 454 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] The var keyword must not be used to declare a property 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] Concat operator must be surrounded by a single space 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] The var keyword must not be used to declare a property 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] Expected 1 space before "/"; 0 found 456 | ERROR | [x] Expected 1 space after "/"; 0 found 456 | ERROR | [x] Concat operator must be surrounded by a single space 471 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead 472 | WARNING | [ ] There must be no blank line following an inline comment 472 | ERROR | [x] Comments may not appear after statements 472 | ERROR | [x] No space found before comment text; expected "// github.com/yourusername/sphoenix_ai.git" but found "//github.com/yourusername/sphoenix_ai.git" 472 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 474 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead 477 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead 478 | ERROR | [x] Concat operator must be surrounded by a single space 478 | ERROR | [x] Expected 1 space before "/"; 0 found 478 | ERROR | [x] Expected 1 space after "/"; 0 found 478 | ERROR | [x] Expected 1 space before "/"; 0 found 478 | ERROR | [x] Expected 1 space after "/"; 0 found 478 | ERROR | [x] Expected 1 space before "/"; 0 found 478 | ERROR | [x] Expected 1 space after "/"; 0 found 480 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead 481 | ERROR | [x] Concat operator must be surrounded by a single space 481 | ERROR | [x] Expected 1 space before "/"; 0 found 481 | ERROR | [x] Expected 1 space after "/"; 0 found 481 | ERROR | [x] Expected 1 space before "/"; 0 found 481 | ERROR | [x] Expected 1 space after "/"; 0 found 481 | ERROR | [x] Expected 1 space before "/"; 0 found 481 | ERROR | [x] Expected 1 space after "/"; 0 found 481 | ERROR | [x] There must not be a single space before a unary operator statement 481 | ERROR | [x] Expected 1 space before "="; 0 found 481 | ERROR | [x] Expected 1 space after "="; 0 found 481 | ERROR | [x] Expected one space after the comma, 0 found --------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 111 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/sphoenix_ai.install ----------------------------------------------------------------------------------------------------------------------------- FOUND 15 ERRORS AFFECTING 13 LINES ----------------------------------------------------------------------------------------------------------------------------- 12 | ERROR | [x] Opening brace should be on the same line as the declaration 78 | ERROR | [x] Opening brace should be on the same line as the declaration 123 | ERROR | [x] Opening brace should be on the same line as the declaration 142 | ERROR | [x] Opening brace should be on the same line as the declaration 182 | ERROR | [x] Opening brace should be on the same line as the declaration 200 | ERROR | [x] Opening brace should be on the same line as the declaration 227 | ERROR | [x] Opening brace should be on the same line as the declaration 246 | ERROR | [x] Opening brace should be on the same line as the declaration 251 | ERROR | [x] Comments may not appear after statements 251 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 252 | ERROR | [x] Comments may not appear after statements 252 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 268 | ERROR | [x] Opening brace should be on the same line as the declaration 286 | ERROR | [x] Opening brace should be on the same line as the declaration 330 | ERROR | [x] Expected newline after closing brace ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/sphoenix_ai.routing.yml ------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------- 102 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction ------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Form/SettingsForm.php ----------------------------------------------------------------------------------------------------------------------------- FOUND 25 ERRORS AFFECTING 25 LINES ----------------------------------------------------------------------------------------------------------------------------- 15 | ERROR | [x] Opening brace should be on the same line as the declaration 17 | ERROR | [ ] Parameter $apiClient is not described in comment 22 | ERROR | [ ] Doc comment for parameter $typed_config_manager does not match actual variable name $apiClient 24 | ERROR | [ ] Doc comment for parameter $api_client does not match actual variable name $apiClient 38 | ERROR | [x] Opening brace should be on the same line as the declaration 49 | ERROR | [x] Opening brace should be on the same line as the declaration 57 | ERROR | [x] Opening brace should be on the same line as the declaration 65 | ERROR | [x] Opening brace should be on the same line as the declaration 68 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 136 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 157 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 180 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 211 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 257 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 296 | ERROR | [x] Expected 1 blank line after function; 2 found 303 | ERROR | [x] Opening brace should be on the same line as the declaration 306 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 317 | ERROR | [x] Opening brace should be on the same line as the declaration 319 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 329 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 338 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 342 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 348 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 355 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 361 | ERROR | [x] Expected 1 blank line after function; 0 found ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 22 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Form/ContentTypesForm.php ------------------------------------------------------------------------------- FOUND 8 ERRORS AFFECTING 8 LINES ------------------------------------------------------------------------------- 15 | ERROR | [x] Opening brace should be on the same line as the declaration 31 | ERROR | [x] Opening brace should be on the same line as the declaration 42 | ERROR | [x] Opening brace should be on the same line as the declaration 50 | ERROR | [x] Opening brace should be on the same line as the declaration 58 | ERROR | [x] Opening brace should be on the same line as the declaration 186 | ERROR | [x] Opening brace should be on the same line as the declaration 195 | ERROR | [x] Expected newline after closing brace 200 | ERROR | [x] Expected 1 blank line after function; 0 found ------------------------------------------------------------------------------- PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------- FILE: sphoenixai/src/Form/FieldMappingForm.php ---------------------------------------------------------------------------------------------------------------------------------------------- FOUND 11 ERRORS AND 1 WARNING AFFECTING 12 LINES ---------------------------------------------------------------------------------------------------------------------------------------------- 16 | ERROR | [x] Opening brace should be on the same line as the declaration 33 | ERROR | [x] Opening brace should be on the same line as the declaration 45 | ERROR | [x] Opening brace should be on the same line as the declaration 53 | ERROR | [x] Opening brace should be on the same line as the declaration 61 | ERROR | [x] Opening brace should be on the same line as the declaration 144 | ERROR | [x] Opening brace should be on the same line as the declaration 265 | ERROR | [x] Opening brace should be on the same line as the declaration 301 | ERROR | [ ] The array declaration extends to column 127 (the limit is 120). The array content should be split up over multiple lines 313 | ERROR | [x] Expected newline after closing brace 325 | ERROR | [x] Opening brace should be on the same line as the declaration 379 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters 384 | ERROR | [x] Expected 1 blank line after function; 0 found ---------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Controller/AuthController.php ----------------------------------------------------------------------------------------------------------------------------- FOUND 19 ERRORS AFFECTING 19 LINES ----------------------------------------------------------------------------------------------------------------------------- 17 | ERROR | [x] Opening brace should be on the same line as the declaration 19 | ERROR | [ ] Parameter $authService is not described in comment 22 | ERROR | [ ] Doc comment for parameter $auth_service does not match actual variable name $authService 33 | ERROR | [x] Opening brace should be on the same line as the declaration 49 | ERROR | [x] Opening brace should be on the same line as the declaration 51 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 60 | ERROR | [x] Expected newline after closing brace 75 | ERROR | [x] Opening brace should be on the same line as the declaration 83 | ERROR | [x] Expected newline after closing brace 103 | ERROR | [x] Opening brace should be on the same line as the declaration 116 | ERROR | [x] Expected newline after closing brace 131 | ERROR | [x] Opening brace should be on the same line as the declaration 133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 143 | ERROR | [x] Expected newline after closing brace 150 | ERROR | [x] Expected newline after closing brace 162 | ERROR | [x] Expected 1 blank line after function; 3 found 165 | ERROR | [ ] More than 2 empty lines are not allowed 176 | ERROR | [x] Opening brace should be on the same line as the declaration 178 | ERROR | [x] Expected 1 blank line after function; 0 found ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Controller/SubscriptionController.php ----------------------------------------------------------------------------------------------------------------------------- FOUND 21 ERRORS AFFECTING 21 LINES ----------------------------------------------------------------------------------------------------------------------------- 16 | ERROR | [x] Opening brace should be on the same line as the declaration 18 | ERROR | [ ] Parameter $subscriptionService is not described in comment 21 | ERROR | [ ] Doc comment for parameter $subscription_service does not match actual variable name $subscriptionService 32 | ERROR | [x] Opening brace should be on the same line as the declaration 45 | ERROR | [x] Opening brace should be on the same line as the declaration 63 | ERROR | [x] Expected newline after closing brace 91 | ERROR | [x] Opening brace should be on the same line as the declaration 107 | ERROR | [x] Expected newline after closing brace 125 | ERROR | [x] Opening brace should be on the same line as the declaration 142 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 146 | ERROR | [x] Expected newline after closing brace 171 | ERROR | [x] Opening brace should be on the same line as the declaration 194 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 204 | ERROR | [x] Expected newline after closing brace 212 | ERROR | [x] Expected newline after closing brace 223 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 234 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 258 | ERROR | [x] Opening brace should be on the same line as the declaration 273 | ERROR | [x] Expected newline after closing brace 291 | ERROR | [x] Opening brace should be on the same line as the declaration 293 | ERROR | [x] Expected 1 blank line after function; 0 found ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Controller/AuthCallbackController.php ------------------------------------------------------------------------------------------------------------------------------ FOUND 12 ERRORS AND 1 WARNING AFFECTING 12 LINES ------------------------------------------------------------------------------------------------------------------------------ 16 | ERROR | [x] Opening brace should be on the same line as the declaration 29 | ERROR | [x] Opening brace should be on the same line as the declaration 39 | ERROR | [x] Opening brace should be on the same line as the declaration 55 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 60 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 62 | ERROR | [x] Expected newline after closing brace 66 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 69 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 71 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 71 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 76 | ERROR | [x] Expected newline after closing brace 81 | ERROR | [x] Expected newline after closing brace 87 | ERROR | [x] Expected 1 blank line after function; 0 found ------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------ FILE: sphoenixai/src/Controller/UsageController.php ------------------------------------------------------------------------------------------------------------------------------- FOUND 35 ERRORS AND 4 WARNINGS AFFECTING 39 LINES ------------------------------------------------------------------------------------------------------------------------------- 19 | ERROR | [x] Opening brace should be on the same line as the declaration 21 | ERROR | [ ] Parameter $usageTracker is not described in comment 24 | ERROR | [ ] Doc comment for parameter $usage_tracker does not match actual variable name $usageTracker 35 | ERROR | [x] Opening brace should be on the same line as the declaration 51 | ERROR | [x] Opening brace should be on the same line as the declaration 64 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 68 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 148 | ERROR | [x] Opening brace should be on the same line as the declaration 165 | ERROR | [x] Expected newline after closing brace 166 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 178 | ERROR | [x] Opening brace should be on the same line as the declaration 189 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 204 | ERROR | [x] Opening brace should be on the same line as the declaration 221 | ERROR | [x] Opening brace should be on the same line as the declaration 229 | ERROR | [x] Expected newline after closing brace 239 | ERROR | [x] Expected newline after closing brace 240 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 255 | ERROR | [x] Opening brace should be on the same line as the declaration 267 | ERROR | [x] Expected newline after closing brace 268 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 280 | ERROR | [x] Opening brace should be on the same line as the declaration 369 | ERROR | [x] Opening brace should be on the same line as the declaration 383 | ERROR | [x] Opening brace should be on the same line as the declaration 392 | ERROR | [x] Opening brace should be on the same line as the declaration 393 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 396 | ERROR | [x] Expected newline after closing brace 397 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 415 | ERROR | [x] Opening brace should be on the same line as the declaration 416 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 454 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 466 | ERROR | [x] Expected newline after closing brace 483 | ERROR | [x] Opening brace should be on the same line as the declaration 496 | ERROR | [x] Opening brace should be on the same line as the declaration 518 | ERROR | [x] Opening brace should be on the same line as the declaration 584 | ERROR | [x] Opening brace should be on the same line as the declaration 617 | WARNING | [x] A comma should follow the last multiline array item. Found: '#f97316' 652 | ERROR | [x] Opening brace should be on the same line as the declaration 671 | ERROR | [x] Expected newline after closing brace 710 | ERROR | [x] Expected 1 blank line after function; 0 found ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Controller/ChatController.php --------------------------------------------------------------------------------------------------------------------------------------------- FOUND 68 ERRORS AND 8 WARNINGS AFFECTING 76 LINES --------------------------------------------------------------------------------------------------------------------------------------------- 22 | ERROR | [x] Opening brace should be on the same line as the declaration 40 | ERROR | [x] Opening brace should be on the same line as the declaration 61 | ERROR | [x] Opening brace should be on the same line as the declaration 64 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 67 | ERROR | [x] Expected newline after closing brace 71 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 88 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 114 | ERROR | [x] Opening brace should be on the same line as the declaration 123 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 125 | WARNING | [ ] Unused variable $field_name. 135 | ERROR | [x] Expected newline after closing brace 136 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 137 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 156 | ERROR | [x] Opening brace should be on the same line as the declaration 162 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 174 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Please refresh after logging in' 176 | ERROR | [x] Expected newline after closing brace 186 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Please refresh after subscribing to a plan' 188 | ERROR | [x] Expected newline after closing brace 195 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Your session has expired. Please refresh to log in again.' 204 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 205 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 223 | ERROR | [x] Opening brace should be on the same line as the declaration 224 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 227 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 232 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 237 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 248 | ERROR | [x] Expected newline after closing brace 249 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 250 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 256 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 259 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 262 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 282 | ERROR | [x] Opening brace should be on the same line as the declaration 285 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 304 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 312 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 338 | ERROR | [x] Opening brace should be on the same line as the declaration 339 | WARNING | [ ] Unused variable $suggestions. 341 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 395 | ERROR | [x] Opening brace should be on the same line as the declaration 417 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 424 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 433 | ERROR | [x] Expected newline after closing brace 445 | ERROR | [x] Opening brace should be on the same line as the declaration 474 | ERROR | [x] Expected newline after closing brace 492 | ERROR | [x] Opening brace should be on the same line as the declaration 504 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 527 | ERROR | [x] Opening brace should be on the same line as the declaration 561 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 582 | ERROR | [x] Opening brace should be on the same line as the declaration 612 | ERROR | [x] Opening brace should be on the same line as the declaration 630 | ERROR | [x] Expected 1 blank line after function; 2 found 637 | ERROR | [x] Opening brace should be on the same line as the declaration 638 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 650 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 663 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 676 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 693 | ERROR | [x] Opening brace should be on the same line as the declaration 694 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 722 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 732 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 744 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 746 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 753 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 756 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 758 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 766 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 779 | ERROR | [x] Expected newline after closing brace 780 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 785 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 786 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 792 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 796 | ERROR | [x] Expected 1 blank line after function; 2 found 809 | ERROR | [x] Opening brace should be on the same line as the declaration 811 | ERROR | [x] Expected 1 blank line after function; 0 found --------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 71 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Controller/FileUploadController.php ------------------------------------------------------------------------------------------------------------------------------- FOUND 45 ERRORS AND 14 WARNINGS AFFECTING 59 LINES ------------------------------------------------------------------------------------------------------------------------------- 17 | ERROR | [x] Opening brace should be on the same line as the declaration 23 | ERROR | [x] Expected 1 blank line before function; 2 found 31 | ERROR | [x] Opening brace should be on the same line as the declaration 41 | ERROR | [x] Opening brace should be on the same line as the declaration 44 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 54 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 55 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 64 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 67 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 78 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 92 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 99 | WARNING | [x] A comma should follow the last multiline array item. Found: 'image/svg+xml' 107 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 110 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 115 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 120 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 133 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 137 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 160 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 167 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 174 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 190 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 200 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 204 | ERROR | [x] Expected newline after closing brace 208 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 209 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 228 | ERROR | [x] Expected newline after closing brace 229 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 230 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 248 | ERROR | [x] Opening brace should be on the same line as the declaration 250 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 252 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 265 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 274 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 279 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 281 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 284 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 305 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 309 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 319 | WARNING | [x] A comma should follow the last multiline array item. Found: 'image/svg+xml' 330 | WARNING | [x] A comma should follow the last multiline array item. Found: $image_url 331 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 335 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 348 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 354 | WARNING | [x] A comma should follow the last multiline array item. Found: 'svg' 358 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 364 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 371 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 379 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 390 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 400 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 404 | ERROR | [x] Expected newline after closing brace 408 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 409 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 429 | ERROR | [x] Expected newline after closing brace 430 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 435 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 436 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 449 | ERROR | [x] Expected 1 blank line after function; 0 found ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 54 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Service/Constants.php ----------------------------------------------------------------------------------------------------------------------------- FOUND 14 ERRORS AFFECTING 14 LINES ----------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Opening brace should be on the same line as the declaration 14 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 18 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 29 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 46 | ERROR | [x] Opening brace should be on the same line as the declaration 54 | ERROR | [x] Opening brace should be on the same line as the declaration 62 | ERROR | [x] Opening brace should be on the same line as the declaration 70 | ERROR | [x] Opening brace should be on the same line as the declaration 78 | ERROR | [x] Opening brace should be on the same line as the declaration 86 | ERROR | [x] Opening brace should be on the same line as the declaration 100 | ERROR | [x] Missing function doc comment 101 | ERROR | [x] Opening brace should be on the same line as the declaration 103 | ERROR | [x] Expected 1 blank line after function; 0 found ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Service/SubscriptionService.php ---------------------------------------------------------------------------------------------------------------------------------------------- FOUND 27 ERRORS AND 24 WARNINGS AFFECTING 43 LINES ---------------------------------------------------------------------------------------------------------------------------------------------- 6 | WARNING | [x] Unused use statement 7 | WARNING | [x] Unused use statement 13 | ERROR | [x] Opening brace should be on the same line as the declaration 104 | ERROR | [x] Comments may not appear after statements 104 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 129 | ERROR | [x] Opening brace should be on the same line as the declaration 142 | ERROR | [x] Opening brace should be on the same line as the declaration 153 | ERROR | [x] Opening brace should be on the same line as the declaration 164 | ERROR | [x] Opening brace should be on the same line as the declaration 200 | ERROR | [x] Opening brace should be on the same line as the declaration 210 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 225 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 236 | ERROR | [x] Opening brace should be on the same line as the declaration 268 | ERROR | [x] Opening brace should be on the same line as the declaration 273 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 276 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 282 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 282 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 296 | ERROR | [x] Opening brace should be on the same line as the declaration 309 | ERROR | [x] Opening brace should be on the same line as the declaration 313 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 323 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 323 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead 328 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 330 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 340 | ERROR | [x] Opening brace should be on the same line as the declaration 342 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 342 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 345 | ERROR | [x] Expected newline after closing brace 346 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 346 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 359 | ERROR | [x] Opening brace should be on the same line as the declaration 364 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 369 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 372 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 375 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 378 | ERROR | [x] Expected newline after closing brace 379 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 386 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 386 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead 399 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 399 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead 403 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 409 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 409 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead 425 | ERROR | [x] Opening brace should be on the same line as the declaration 447 | ERROR | [x] Opening brace should be on the same line as the declaration 458 | ERROR | [x] Opening brace should be on the same line as the declaration 469 | ERROR | [x] Opening brace should be on the same line as the declaration 486 | ERROR | [x] Opening brace should be on the same line as the declaration 524 | ERROR | [x] Expected 1 blank line after function; 0 found ---------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 29 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Service/ContentAnalyzerService.php -------------------------------------------------------------------------------------------------- FOUND 45 ERRORS AND 5 WARNINGS AFFECTING 45 LINES -------------------------------------------------------------------------------------------------- 5 | WARNING | [x] Unused use statement 12 | ERROR | [x] Opening brace should be on the same line as the declaration 37 | ERROR | [x] Opening brace should be on the same line as the declaration 54 | ERROR | [x] Opening brace should be on the same line as the declaration 75 | ERROR | [x] Comments may not appear after statements 92 | ERROR | [x] Opening brace should be on the same line as the declaration 94 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 171 | ERROR | [x] Opening brace should be on the same line as the declaration 179 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 180 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 193 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 194 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 203 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 204 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 216 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 217 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 230 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 231 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 243 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 244 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 268 | ERROR | [x] Opening brace should be on the same line as the declaration 270 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 280 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 280 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 285 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 299 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 314 | ERROR | [x] Opening brace should be on the same line as the declaration 366 | ERROR | [x] Opening brace should be on the same line as the declaration 387 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters 387 | ERROR | [x] Comments may not appear after statements 400 | ERROR | [x] Opening brace should be on the same line as the declaration 415 | ERROR | [x] There should be no white space after an opening "{" 415 | ERROR | [x] Comments may not appear after statements 437 | ERROR | [x] Opening brace should be on the same line as the declaration 440 | ERROR | [x] Comments may not appear after statements 441 | WARNING | [ ] There must be no blank line following an inline comment 441 | ERROR | [x] Comments may not appear after statements 445 | ERROR | [x] Comments may not appear after statements 446 | WARNING | [ ] There must be no blank line following an inline comment 446 | ERROR | [x] Comments may not appear after statements 465 | ERROR | [x] Opening brace should be on the same line as the declaration 487 | ERROR | [x] Opening brace should be on the same line as the declaration 509 | ERROR | [x] Opening brace should be on the same line as the declaration 535 | ERROR | [x] Opening brace should be on the same line as the declaration 558 | ERROR | [x] Opening brace should be on the same line as the declaration 588 | ERROR | [x] Opening brace should be on the same line as the declaration 618 | ERROR | [x] Opening brace should be on the same line as the declaration 650 | ERROR | [x] Opening brace should be on the same line as the declaration 651 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 652 | ERROR | [x] Expected 1 blank line after function; 0 found -------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Service/FieldMapperService.php ----------------------------------------------------------------------------------- FOUND 16 ERRORS AFFECTING 16 LINES ----------------------------------------------------------------------------------- 13 | ERROR | [x] Opening brace should be on the same line as the declaration 47 | ERROR | [x] Opening brace should be on the same line as the declaration 65 | ERROR | [x] Opening brace should be on the same line as the declaration 114 | ERROR | [x] Opening brace should be on the same line as the declaration 160 | ERROR | [x] Opening brace should be on the same line as the declaration 199 | ERROR | [x] Opening brace should be on the same line as the declaration 235 | ERROR | [x] Opening brace should be on the same line as the declaration 256 | ERROR | [x] Opening brace should be on the same line as the declaration 274 | ERROR | [x] Opening brace should be on the same line as the declaration 304 | ERROR | [x] Opening brace should be on the same line as the declaration 325 | ERROR | [x] Expected newline after closing brace 344 | ERROR | [x] Opening brace should be on the same line as the declaration 353 | ERROR | [x] Expected newline after closing brace 355 | ERROR | [x] Expected newline after closing brace 375 | ERROR | [x] Opening brace should be on the same line as the declaration 399 | ERROR | [x] Expected 1 blank line after function; 0 found ----------------------------------------------------------------------------------- PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------- FILE: sphoenixai/src/Service/ApiClientService.php ------------------------------------------------------------------------------------------------------------------------------- FOUND 73 ERRORS AND 7 WARNINGS AFFECTING 73 LINES ------------------------------------------------------------------------------------------------------------------------------- 6 | WARNING | [x] Unused use statement 18 | ERROR | [x] Opening brace should be on the same line as the declaration 78 | ERROR | [x] Opening brace should be on the same line as the declaration 99 | ERROR | [x] Opening brace should be on the same line as the declaration 100 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 106 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 109 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 110 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 117 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 120 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 121 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 143 | ERROR | [x] Comments may not appear after statements 144 | ERROR | [x] Comments may not appear after statements 162 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 167 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 173 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 180 | ERROR | [x] Expected newline after closing brace 192 | ERROR | [x] Expected newline after closing brace 195 | ERROR | [x] Expected newline after closing brace 196 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 200 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 203 | ERROR | [x] Expected newline after closing brace 205 | ERROR | [x] Expected newline after closing brace 207 | ERROR | [x] Expected newline after closing brace 218 | ERROR | [x] Expected newline after closing brace 238 | ERROR | [x] Opening brace should be on the same line as the declaration 241 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 258 | ERROR | [x] Comments may not appear after statements 258 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 261 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 270 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 290 | WARNING | [x] A comma should follow the last multiline array item. Found: 'humanization_level' 295 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 298 | ERROR | [x] Expected newline after closing brace 300 | ERROR | [x] Expected newline after closing brace 302 | ERROR | [x] Expected newline after closing brace 303 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 305 | ERROR | [x] Expected newline after closing brace 306 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 308 | ERROR | [x] Expected newline after closing brace 327 | ERROR | [x] Opening brace should be on the same line as the declaration 328 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 333 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 340 | WARNING | [x] A comma should follow the last multiline array item. Found: 'content_summary' 353 | ERROR | [x] Opening brace should be on the same line as the declaration 364 | ERROR | [x] Opening brace should be on the same line as the declaration 366 | ERROR | [x] Comments may not appear after statements 366 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 376 | ERROR | [x] Opening brace should be on the same line as the declaration 379 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 384 | ERROR | [x] Expected newline after closing brace 387 | ERROR | [x] Expected newline after closing brace 391 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 397 | ERROR | [x] Expected newline after closing brace 401 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 419 | ERROR | [x] Opening brace should be on the same line as the declaration 429 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 432 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 445 | ERROR | [x] Expected newline after closing brace 451 | ERROR | [x] Expected newline after closing brace 456 | ERROR | [x] Expected newline after closing brace 471 | ERROR | [x] Opening brace should be on the same line as the declaration 495 | ERROR | [x] Opening brace should be on the same line as the declaration 509 | ERROR | [x] Opening brace should be on the same line as the declaration 535 | ERROR | [x] Opening brace should be on the same line as the declaration 558 | ERROR | [x] Opening brace should be on the same line as the declaration 559 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 564 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 569 | WARNING | [ ] There must be no blank line following an inline comment 569 | ERROR | [x] Comments may not appear after statements 569 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 578 | ERROR | [x] Opening brace should be on the same line as the declaration 592 | ERROR | [x] Opening brace should be on the same line as the declaration 631 | ERROR | [x] Opening brace should be on the same line as the declaration 639 | WARNING | [x] There must be no blank line following an inline comment 639 | WARNING | [ ] There must be no blank line following an inline comment 639 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 644 | ERROR | [x] Comments may not appear after statements 644 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 648 | ERROR | [x] Expected 1 blank line after function; 0 found ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 77 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/src/Service/UsageTrackerService.php ------------------------------------------------------------------------------------ FOUND 15 ERRORS AFFECTING 15 LINES ------------------------------------------------------------------------------------ 14 | ERROR | [x] Opening brace should be on the same line as the declaration 48 | ERROR | [x] Opening brace should be on the same line as the declaration 66 | ERROR | [x] Opening brace should be on the same line as the declaration 95 | ERROR | [x] Opening brace should be on the same line as the declaration 116 | ERROR | [x] Expected newline after closing brace 147 | ERROR | [x] Opening brace should be on the same line as the declaration 165 | ERROR | [x] Expected newline after closing brace 191 | ERROR | [x] Opening brace should be on the same line as the declaration 226 | ERROR | [x] Opening brace should be on the same line as the declaration 318 | ERROR | [x] Opening brace should be on the same line as the declaration 402 | ERROR | [x] Opening brace should be on the same line as the declaration 436 | ERROR | [x] Opening brace should be on the same line as the declaration 464 | ERROR | [x] Opening brace should be on the same line as the declaration 484 | ERROR | [x] Opening brace should be on the same line as the declaration 515 | ERROR | [x] Expected 1 blank line after function; 0 found ------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------ FILE: sphoenixai/src/Service/AuthenticationService.php ------------------------------------------------------------------------------------------------------------------------------- FOUND 57 ERRORS AND 5 WARNINGS AFFECTING 59 LINES ------------------------------------------------------------------------------------------------------------------------------- 5 | WARNING | [x] Unused use statement 8 | WARNING | [x] Unused use statement 12 | WARNING | [x] Unused use statement 19 | ERROR | [x] Opening brace should be on the same line as the declaration 56 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 68 | ERROR | [x] Opening brace should be on the same line as the declaration 73 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 80 | WARNING | [x] A comma should follow the last multiline array item. Found: $current_url 90 | ERROR | [x] Opening brace should be on the same line as the declaration 92 | ERROR | [x] Expected 1 blank line after function; 2 found 99 | ERROR | [x] Opening brace should be on the same line as the declaration 106 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 109 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 125 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 127 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 131 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 146 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 166 | ERROR | [x] Expected newline after closing brace 182 | ERROR | [x] Opening brace should be on the same line as the declaration 194 | ERROR | [x] Opening brace should be on the same line as the declaration 207 | ERROR | [x] Opening brace should be on the same line as the declaration 232 | ERROR | [x] Opening brace should be on the same line as the declaration 253 | ERROR | [x] Expected newline after closing brace 265 | ERROR | [x] Opening brace should be on the same line as the declaration 284 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 293 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 298 | ERROR | [x] Expected newline after closing brace 310 | ERROR | [x] Opening brace should be on the same line as the declaration 324 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 347 | ERROR | [ ] Protected method name "AuthenticationService::isValidJWTFormat" is not in lowerCamel format 348 | ERROR | [x] Opening brace should be on the same line as the declaration 360 | ERROR | [x] Opening brace should be on the same line as the declaration 371 | ERROR | [x] Expected newline after closing brace 380 | ERROR | [x] Opening brace should be on the same line as the declaration 393 | ERROR | [x] Opening brace should be on the same line as the declaration 413 | ERROR | [x] Opening brace should be on the same line as the declaration 418 | ERROR | [ ] Public method name "AuthenticationService::clearAuth_Data" is not in lowerCamel format 418 | ERROR | [x] Missing function doc comment 419 | ERROR | [x] Opening brace should be on the same line as the declaration 421 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 428 | ERROR | [x] Opening brace should be on the same line as the declaration 432 | ERROR | [x] Expected newline after closing brace 441 | ERROR | [x] Opening brace should be on the same line as the declaration 447 | ERROR | [ ] Protected method name "AuthenticationService::getAccess_Token" is not in lowerCamel format 447 | ERROR | [x] Missing function doc comment 448 | ERROR | [x] Opening brace should be on the same line as the declaration 458 | ERROR | [x] Opening brace should be on the same line as the declaration 467 | ERROR | [x] Opening brace should be on the same line as the declaration 476 | ERROR | [x] Opening brace should be on the same line as the declaration 487 | ERROR | [x] Missing function doc comment 488 | ERROR | [x] Opening brace should be on the same line as the declaration 490 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 506 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 521 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 537 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 540 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 547 | ERROR | [x] Comments may not appear after statements 547 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 550 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 557 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 579 | ERROR | [x] Expected newline after closing brace 595 | ERROR | [x] Expected 1 blank line after function; 0 found ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 58 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- FILE: sphoenixai/sphoenix_ai.info.yml ------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically -------------------------------------------------------------------------------------------------------------