- Status changed to Closed: outdated
about 1 year ago 10:52pm 5 January 2024
vendor/bin/phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/file_mdm_exif/src/ExifTagMapper.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
227 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/file_mdm_exif/src/Plugin/FileMetadata/Exif.php
------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------
113 | ERROR | [x] Use null coalesce operator instead of ternary operator.
117 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/file_mdm_exif/tests/src/Kernel/FileMetadataExifTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 16 LINES
---------------------------------------------------------------------------------------------------------------------------------------
209 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
210 | ERROR | The array declaration extends to column 112 (the limit is 80). The array content should be split up over multiple lines
213 | ERROR | The array declaration extends to column 123 (the limit is 80). The array content should be split up over multiple lines
217 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
224 | ERROR | The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines
225 | ERROR | The array declaration extends to column 122 (the limit is 80). The array content should be split up over multiple lines
228 | ERROR | The array declaration extends to column 113 (the limit is 80). The array content should be split up over multiple lines
232 | ERROR | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
233 | ERROR | The array declaration extends to column 88 (the limit is 80). The array content should be split up over multiple lines
234 | ERROR | The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines
239 | ERROR | The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
240 | ERROR | The array declaration extends to column 124 (the limit is 80). The array content should be split up over multiple lines
243 | ERROR | The array declaration extends to column 125 (the limit is 80). The array content should be split up over multiple lines
247 | ERROR | The array declaration extends to column 103 (the limit is 80). The array content should be split up over multiple lines
248 | ERROR | The array declaration extends to column 97 (the limit is 80). The array content should be split up over multiple lines
249 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/file_mdm_exif/README.md
-------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------
82 | WARNING | Line exceeds 80 characters; contains 83 characters
88 | WARNING | Line exceeds 80 characters; contains 107 characters
-------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/file_mdm_font/src/Plugin/FileMetadata/Font.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------
35 | WARNING | [x] '@todo ::parse raises 'Undefined offset' notices in phenx/php-font-lib' should match the format '@todo Fix problem X here.'
93 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/src/FileMetadata.php
----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------
196 | ERROR | [x] Concat operator must be surrounded by a single space
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/src/Form/SettingsForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
126 | ERROR | The array declaration extends to column 114 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/src/Plugin/FileMetadata/GetImageSize.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
65 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/tests/src/Kernel/FileMetadataManagerTestBase.php
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
20 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/file_mdm/README.md
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-----------------------------------------------------------------------------
12 | WARNING | Line exceeds 80 characters; contains 93 characters
16 | WARNING | Line exceeds 80 characters; contains 94 characters
77 | WARNING | Line exceeds 80 characters; contains 115 characters
114 | WARNING | Line exceeds 80 characters; contains 82 characters
-----------------------------------------------------------------------------
Time: 1.53 secs; Memory: 14MB
Closed: outdated
3.0
Code
It involves compliance with, or the content of coding standards. Requires broad community agreement.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.