Fix the issues reported by phpcs

Created on 29 October 2022, over 2 years ago
Updated 5 January 2024, about 1 year ago

Problem/Motivation

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
๐Ÿ“Œ Task
Status

Closed: outdated

Version

3.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia PrasadDeole

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

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.71.5 2024