Drupal Coding Standard issues

Created on 31 March 2020, over 4 years ago
Updated 11 December 2023, 7 months ago

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/Form/SettingsForm.php
------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 14 LINES
------------------------------------------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
94 | ERROR | [x] Expected 1 space after IF keyword; 0 found
121 | ERROR | [x] Expected 1 space after IF keyword; 0 found
137 | ERROR | [x] Expected 1 space after IF keyword; 0 found
149 | ERROR | [x] Expected one space after the comma, 4 found
149 | ERROR | [x] There should be no white space before a closing "]"
149 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
152 | ERROR | [x] Expected 1 space after IF keyword; 0 found
159 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
179 | ERROR | [x] Expected 1 space after IF keyword; 0 found
195 | ERROR | [x] Expected 1 space after IF keyword; 0 found
211 | ERROR | [x] Expected 1 space after IF keyword; 0 found
218 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
238 | ERROR | [x] Expected 1 space after IF keyword; 0 found
254 | ERROR | [x] Expected 1 space after IF keyword; 0 found
270 | ERROR | [x] Expected 1 space after IF keyword; 0 found
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/Routing/AzureBlobFsRouteSubscriber.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/Routing/AzureBlobFsImageStyleRoutes.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
77 | WARNING | Line exceeds 80 characters; contains 82 characters
78 | WARNING | Line exceeds 80 characters; contains 82 characters
------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/Service/AzureBlobFsService.php
---------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 6 WARNINGS AFFECTING 13 LINES
---------------------------------------------------------------------------------------------------
162 | ERROR | [x] Expected 1 blank line after function; 2 found
199 | ERROR | [x] Case breaking statements must be followed by a single blank line
200 | WARNING | [ ] Code after the RETURN statement on line 199 cannot be executed
200 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
202 | ERROR | [x] Case breaking statements must be followed by a single blank line
203 | WARNING | [ ] Code after the RETURN statement on line 202 cannot be executed
203 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
215 | ERROR | [x] Case breaking statements must be followed by a single blank line
216 | WARNING | [ ] Code after the RETURN statement on line 215 cannot be executed
216 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
218 | ERROR | [x] Case breaking statements must be followed by a single blank line
219 | WARNING | [ ] Code after the RETURN statement on line 218 cannot be executed
219 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
231 | ERROR | [x] Case breaking statements must be followed by a single blank line
232 | WARNING | [ ] Code after the RETURN statement on line 231 cannot be executed
232 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
234 | ERROR | [x] Case breaking statements must be followed by a single blank line
235 | WARNING | [ ] Code after the RETURN statement on line 234 cannot be executed
235 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/Service/AzureBlobFsServiceInterface.php
------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------
56 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
66 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
76 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
86 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
101 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
116 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
131 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/Asset/AzureBlobFsCssOptimizer.php
---------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------
16 | WARNING | Line exceeds 80 characters; contains 84 characters
22 | ERROR | Parameter tags must be grouped together in a doc comment
22 | ERROR | Missing parameter comment
27 | ERROR | Type hint "array" missing for $matches
27 | ERROR | Public method name "AzureBlobFsCssOptimizer::rewriteFileURI" is not in lowerCamel format
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/File/AzureBlobFsFileSystem.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------------
17 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
21 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
30 | ERROR | [x] Do not append variable name "$file_system" to the type declaration in a member variable comment
94 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
102 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
128 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
154 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/AzureBlobFsServiceProvider.php
---------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 4 WARNINGS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
15 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
22 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
29 | ERROR | [x] Data types in @param tags need to be fully namespaced
74 | ERROR | [x] Data types in @param tags need to be fully namespaced
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/StreamWrapper/AzureBlobFsStream.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 48 ERRORS AND 2 WARNINGS AFFECTING 45 LINES
--------------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
125 | ERROR | [x] Expected 1 space after "="; 2 found
126 | ERROR | [x] Expected 1 space after "="; 2 found
165 | ERROR | [x] Expected 1 blank line after function; 2 found
269 | ERROR | [ ] Public method name "AzureBlobFsStream::dir_closedir" is not in lowerCamel format
281 | ERROR | [ ] Public method name "AzureBlobFsStream::dir_opendir" is not in lowerCamel format
310 | ERROR | [ ] Public method name "AzureBlobFsStream::dir_readdir" is not in lowerCamel format
335 | ERROR | [ ] Public method name "AzureBlobFsStream::dir_rewinddir" is not in lowerCamel format
355 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
368 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
384 | ERROR | [x] Expected newline after closing brace
401 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_cast" is not in lowerCamel format
408 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_close" is not in lowerCamel format
415 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_eof" is not in lowerCamel format
426 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_flush" is not in lowerCamel format
450 | ERROR | [x] Concat operator must be surrounded by a single space
450 | ERROR | [x] Concat operator must be surrounded by a single space
458 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_lock" is not in lowerCamel format
482 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_metadata" is not in lowerCamel format
492 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_open" is not in lowerCamel format
497 | ERROR | [x] Case breaking statements must be followed by a single blank line
497 | ERROR | [x] Closing brace must be on a line by itself
498 | ERROR | [x] Case breaking statements must be followed by a single blank line
498 | ERROR | [x] Closing brace must be on a line by itself
499 | ERROR | [ ] Blank lines are not allowed after DEFAULT statements
499 | ERROR | [x] Closing brace must be on a line by itself
519 | ERROR | [x] Expected newline after closing brace
562 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
568 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
575 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_read" is not in lowerCamel format
582 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_seek" is not in lowerCamel format
589 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_set_option" is not in lowerCamel format
593 | ERROR | [ ] Missing short description in doc comment
598 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_stat" is not in lowerCamel format
605 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_tell" is not in lowerCamel format
612 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_truncate" is not in lowerCamel format
619 | ERROR | [ ] Public method name "AzureBlobFsStream::stream_write" is not in lowerCamel format
631 | ERROR | [ ] Missing short description in doc comment
637 | ERROR | [ ] Public method name "AzureBlobFsStream::url_stat" is not in lowerCamel format
658 | WARNING | [x] A comma should follow the last multiline array item. Found: 'blocks'
711 | ERROR | [x] Doc comment short description must end with a full stop
760 | ERROR | [x] Expected 1 space after closing parenthesis; found 2
795 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
936 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
943 | ERROR | [x] Expected newline after closing brace
943 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
947 | ERROR | [x] Expected newline after closing brace
968 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
1010 | ERROR | [x] Expected 1 blank line after function; 0 found
1011 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/src/StreamWrapper/PrivateAzureBlobFsStream.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
69 | ERROR | [x] Calling class constructors must always include parentheses
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/azure_blob_fs.module
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
14 | ERROR | Unnecessarily gendered language in a comment
-------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/azure_blob_fs/azure_blob_fs.install
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

🐛 Bug report
Status

Closed: won't fix

Component

Code

Created by

🇮🇳India prabha1997

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

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024