Fix the issues reported by phpcs

Created on 21 December 2022, about 2 years ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

FILE: ...ocs/10.1.x/drupal/modules/contrib/dynamic_layouts/dynamic_layouts.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
--------------------------------------------------------------------------------


FILE: ...ayouts/config/install/dynamic_layouts.dynamic_layout_settings.settings.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 2 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...l/modules/contrib/dynamic_layouts/config/schema/dynamic_layouts.schema.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 39 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...tdocs/10.1.x/drupal/modules/contrib/dynamic_layouts/dynamic_layouts.module
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 33 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ....x/drupal/modules/contrib/dynamic_layouts/dynamic_layouts.links.action.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 5 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: .../10.1.x/drupal/modules/contrib/dynamic_layouts/dynamic_layouts.routing.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 125 | ERROR | [x] Expected 1 newline at end of file; 3 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...docs/10.1.x/drupal/modules/contrib/dynamic_layouts/dynamic_layouts.install
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
 20 | ERROR | [x] Short array syntax must be used to define arrays
 49 | ERROR | [x] Short array syntax must be used to define arrays
 61 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ....1.x/drupal/modules/contrib/dynamic_layouts/dynamic_layouts.links.task.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 55 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ....1.x/drupal/modules/contrib/dynamic_layouts/static/css/dynamic-layouts.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------


FILE: ...al/modules/contrib/dynamic_layouts/static/css/dynamic-layouts-frontend.css
--------------------------------------------------------------------------------
FOUND 211 ERRORS AFFECTING 28 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  1 | ERROR | [x] Opening brace should be the last content on the line
  1 | ERROR | [x] Closing brace of class definition must be on new line
  2 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  2 | ERROR | [x] Opening brace should be the last content on the line
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [x] Each style definition must be on a line by itself
  2 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  2 | ERROR | [ ] Style definitions must end with a semicolon
  2 | ERROR | [x] Closing brace of class definition must be on new line
  3 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  3 | ERROR | [x] Opening brace should be the last content on the line
  3 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  3 | ERROR | [x] Each style definition must be on a line by itself
  3 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  3 | ERROR | [ ] Style definitions must end with a semicolon
  3 | ERROR | [x] Closing brace of class definition must be on new line
  4 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  4 | ERROR | [x] Opening brace should be the last content on the line
  4 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  4 | ERROR | [x] Each style definition must be on a line by itself
  4 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  4 | ERROR | [ ] Style definitions must end with a semicolon
  4 | ERROR | [x] Closing brace of class definition must be on new line
  5 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  5 | ERROR | [x] Opening brace should be the last content on the line
  5 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  5 | ERROR | [x] Each style definition must be on a line by itself
  5 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  5 | ERROR | [ ] Style definitions must end with a semicolon
  5 | ERROR | [x] Closing brace of class definition must be on new line
  6 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  6 | ERROR | [x] Opening brace should be the last content on the line
  6 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  6 | ERROR | [x] Each style definition must be on a line by itself
  6 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  6 | ERROR | [ ] Style definitions must end with a semicolon
  6 | ERROR | [x] Closing brace of class definition must be on new line
  7 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  7 | ERROR | [x] Opening brace should be the last content on the line
  7 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  7 | ERROR | [x] Each style definition must be on a line by itself
  7 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  7 | ERROR | [ ] Style definitions must end with a semicolon
  7 | ERROR | [x] Closing brace of class definition must be on new line
  8 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  8 | ERROR | [x] Opening brace should be the last content on the line
  8 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  8 | ERROR | [x] Each style definition must be on a line by itself
  8 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  8 | ERROR | [ ] Style definitions must end with a semicolon
  8 | ERROR | [x] Closing brace of class definition must be on new line
  9 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
  9 | ERROR | [x] Opening brace should be the last content on the line
  9 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  9 | ERROR | [x] Each style definition must be on a line by itself
  9 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  9 | ERROR | [ ] Style definitions must end with a semicolon
  9 | ERROR | [x] Closing brace of class definition must be on new line
 10 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 10 | ERROR | [x] Opening brace should be the last content on the line
 10 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 10 | ERROR | [x] Each style definition must be on a line by itself
 10 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 10 | ERROR | [ ] Style definitions must end with a semicolon
 10 | ERROR | [x] Closing brace of class definition must be on new line
 11 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 11 | ERROR | [x] Opening brace should be the last content on the line
 11 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 11 | ERROR | [x] Each style definition must be on a line by itself
 11 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 11 | ERROR | [ ] Style definitions must end with a semicolon
 11 | ERROR | [x] Closing brace of class definition must be on new line
 12 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 12 | ERROR | [x] Opening brace should be the last content on the line
 12 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 12 | ERROR | [x] Each style definition must be on a line by itself
 12 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 12 | ERROR | [ ] Style definitions must end with a semicolon
 12 | ERROR | [x] Closing brace of class definition must be on new line
 13 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 13 | ERROR | [x] Opening brace should be the last content on the line
 13 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 13 | ERROR | [x] Each style definition must be on a line by itself
 13 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 13 | ERROR | [ ] Style definitions must end with a semicolon
 13 | ERROR | [x] Closing brace of class definition must be on new line
 14 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 14 | ERROR | [x] Opening brace should be the last content on the line
 14 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 14 | ERROR | [x] Each style definition must be on a line by itself
 14 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 14 | ERROR | [ ] Style definitions must end with a semicolon
 14 | ERROR | [x] Closing brace of class definition must be on new line
 15 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 15 | ERROR | [x] Opening brace should be the last content on the line
 15 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 15 | ERROR | [x] Each style definition must be on a line by itself
 15 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 15 | ERROR | [ ] Style definitions must end with a semicolon
 15 | ERROR | [x] Closing brace of class definition must be on new line
 16 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 16 | ERROR | [x] Opening brace should be the last content on the line
 16 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 16 | ERROR | [x] Each style definition must be on a line by itself
 16 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 16 | ERROR | [ ] Style definitions must end with a semicolon
 16 | ERROR | [x] Closing brace of class definition must be on new line
 17 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 17 | ERROR | [x] Opening brace should be the last content on the line
 17 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 17 | ERROR | [x] Each style definition must be on a line by itself
 17 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 17 | ERROR | [ ] Style definitions must end with a semicolon
 17 | ERROR | [x] Closing brace of class definition must be on new line
 18 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 18 | ERROR | [x] Opening brace should be the last content on the line
 18 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 18 | ERROR | [x] Each style definition must be on a line by itself
 18 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 18 | ERROR | [ ] Style definitions must end with a semicolon
 18 | ERROR | [x] Closing brace of class definition must be on new line
 19 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 19 | ERROR | [x] Opening brace should be the last content on the line
 19 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 19 | ERROR | [x] Each style definition must be on a line by itself
 19 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 19 | ERROR | [ ] Style definitions must end with a semicolon
 19 | ERROR | [x] Closing brace of class definition must be on new line
 20 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 20 | ERROR | [x] Opening brace should be the last content on the line
 20 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 20 | ERROR | [x] Each style definition must be on a line by itself
 20 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 20 | ERROR | [ ] Style definitions must end with a semicolon
 20 | ERROR | [x] Closing brace of class definition must be on new line
 21 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 21 | ERROR | [x] Opening brace should be the last content on the line
 21 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 21 | ERROR | [x] Each style definition must be on a line by itself
 21 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 21 | ERROR | [ ] Style definitions must end with a semicolon
 21 | ERROR | [x] Closing brace of class definition must be on new line
 22 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 22 | ERROR | [x] Opening brace should be the last content on the line
 22 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 22 | ERROR | [x] Each style definition must be on a line by itself
 22 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 22 | ERROR | [ ] Style definitions must end with a semicolon
 22 | ERROR | [x] Closing brace of class definition must be on new line
 23 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 23 | ERROR | [x] Opening brace should be the last content on the line
 23 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 23 | ERROR | [x] Each style definition must be on a line by itself
 23 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 23 | ERROR | [ ] Style definitions must end with a semicolon
 23 | ERROR | [x] Closing brace of class definition must be on new line
 24 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 24 | ERROR | [x] Opening brace should be the last content on the line
 24 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 24 | ERROR | [x] Each style definition must be on a line by itself
 24 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 24 | ERROR | [ ] Style definitions must end with a semicolon
 24 | ERROR | [x] Closing brace of class definition must be on new line
 25 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 25 | ERROR | [x] Opening brace should be the last content on the line
 25 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 25 | ERROR | [x] Each style definition must be on a line by itself
 25 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 25 | ERROR | [ ] Style definitions must end with a semicolon
 25 | ERROR | [x] Closing brace of class definition must be on new line
 26 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 26 | ERROR | [x] Opening brace should be the last content on the line
 26 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 26 | ERROR | [x] Each style definition must be on a line by itself
 26 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 26 | ERROR | [ ] Style definitions must end with a semicolon
 26 | ERROR | [x] Closing brace of class definition must be on new line
 27 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 27 | ERROR | [x] Opening brace should be the last content on the line
 27 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 27 | ERROR | [x] Each style definition must be on a line by itself
 27 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 27 | ERROR | [ ] Style definitions must end with a semicolon
 27 | ERROR | [x] Closing brace of class definition must be on new line
 28 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
    |       |     found
 28 | ERROR | [x] Opening brace should be the last content on the line
 28 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 28 | ERROR | [x] Each style definition must be on a line by itself
 28 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 28 | ERROR | [ ] Style definitions must end with a semicolon
 28 | ERROR | [x] Expected 1 newline at end of file; 0 found
 28 | ERROR | [x] Closing brace of class definition must be on new line
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 184 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...tions/MAMP/htdocs/10.1.x/drupal/modules/contrib/dynamic_layouts/README.txt
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  3 | WARNING | Line exceeds 80 characters; contains 155 characters
 25 | WARNING | Line exceeds 80 characters; contains 125 characters
 36 | WARNING | Line exceeds 80 characters; contains 81 characters
 46 | WARNING | Line exceeds 80 characters; contains 359 characters
--------------------------------------------------------------------------------


FILE: ...0.1.x/drupal/modules/contrib/dynamic_layouts/dynamic_layouts.libraries.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 13 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ....1.x/drupal/modules/contrib/dynamic_layouts/src/Form/DynamicLayoutForm.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  70 | ERROR | [x] Short array syntax must be used to define arrays
 153 | ERROR | [x] Short array syntax must be used to define arrays
 452 | ERROR | [ ] The array declaration extends to column 130 (the limit is
     |       |     80). The array content should be split up over multiple
     |       |     lines
 453 | ERROR | [x] Short array syntax must be used to define arrays
 453 | ERROR | [ ] The array declaration extends to column 145 (the limit is
     |       |     80). The array content should be split up over multiple
     |       |     lines
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...cs/10.1.x/drupal/modules/contrib/dynamic_layouts/src/Form/SettingsForm.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
  71 | ERROR | [x] Short array syntax must be used to define arrays
  83 | ERROR | [x] Short array syntax must be used to define arrays
  98 | ERROR | [x] Short array syntax must be used to define arrays
 119 | ERROR | [x] Short array syntax must be used to define arrays
 154 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...0.1.x/drupal/modules/contrib/dynamic_layouts/src/Form/EditRowModalForm.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  16 | WARNING | [ ] The class short comment should describe what the class
     |         |     does and not simply repeat the class name
  61 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 100 | ERROR   | [x] Short array syntax must be used to define arrays
 142 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...rupal/modules/contrib/dynamic_layouts/src/Form/DynamicLayoutDeleteForm.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
 18 | ERROR | [x] Short array syntax must be used to define arrays
 40 | ERROR | [x] Short array syntax must be used to define arrays
 41 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ....x/drupal/modules/contrib/dynamic_layouts/src/Form/EditColumnModalForm.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------
  17 | WARNING | [ ] The class short comment should describe what the class
     |         |     does and not simply repeat the class name
  81 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 151 | ERROR   | [x] Short array syntax must be used to define arrays
 212 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 239 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...rupal/modules/contrib/dynamic_layouts/src/Entity/DynamicLayoutSettings.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
 168 | ERROR   | [x] Incorrect spacing between argument "$new_column_prefix"
     |         |     and equals sign; expected 1 but found 0
 168 | ERROR   | [x] Incorrect spacing between default value and equals sign
     |         |     for argument "$new_column_prefix"; expected 1 but found 0
 173 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...10.1.x/drupal/modules/contrib/dynamic_layouts/src/Entity/DynamicLayout.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
 565 | ERROR | [ ] The array declaration extends to column 115 (the limit is
     |       |     80). The array content should be split up over multiple
     |       |     lines
 796 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
 796 | ERROR | [x] Expected 1 space after "=>"; 0 found
 796 | ERROR | [x] Expected 1 space after "=>"; 0 found
 802 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...les/contrib/dynamic_layouts/src/Plugin/Derivative/DynamicLayoutDeriver.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------
  8 | WARNING | [x] Unused use statement
 45 | ERROR   | [ ] Doc comment for parameter $module_handler does not match
    |         |     actual variable name <undefined>
 76 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...drupal/modules/contrib/dynamic_layouts/src/Plugin/Layout/DynamicLayout.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------
 29 | ERROR   | [ ] Missing short description in doc comment
 62 | ERROR   | [x] list(...) is forbidden, use [...] instead.
 64 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ....x/drupal/modules/contrib/dynamic_layouts/src/DynamicLayoutListBuilder.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------
   6 | WARNING | [x] Unused use statement
  80 | ERROR   | [x] Short array syntax must be used to define arrays
 104 | ERROR   | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...modules/contrib/dynamic_layouts/src/Controller/DynamicLayoutController.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------------
  18 | WARNING | [ ] The class short comment should describe what the class
     |         |     does and not simply repeat the class name
  98 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 108 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 131 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 141 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 164 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 174 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 195 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 205 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Steps to reproduce

Run following command
phpcs --standard=“Drupal,DrupalPractice” --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js .

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India sahil.goyal

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