Fix the errors/warnings reported by PHP_CodeSniffer

Created on 5 July 2023, over 1 year ago
Updated 12 January 2024, 11 months ago

Problem/Motivation

FILE: ...w/html/vb/d_cont/pinterest_widget/src/Plugin/Block/PinterestBoardBlock.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
85 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: .../html/vb/d_cont/pinterest_widget/src/Plugin/Block/PinterestFollowBlock.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
56 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: ...html/vb/d_cont/pinterest_widget/src/Plugin/Block/PinterestProfileBlock.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
87 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: ...www/html/vb/d_cont/pinterest_widget/src/Plugin/Block/PinterestPinBlock.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
68 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: ...nt/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestFollowWidget.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
57 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: ..._cont/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestPinWidget.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
47 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: ...t/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestProfileWidget.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
54 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: ...ont/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestBoardWidget.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
54 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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

Merge Requests

Comments & Activities

  • Issue created by @urvashi_vora
  • 🇮🇳India Ashutosh Ahirwal India

    Provided patch get applied cleanly but after using phpcs command its showing so many error.
    Error found by phpcs command should be added in on issue.

    Used command with arguments
    ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/pinterest_widget

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/pinterest_widget.libraries.yml
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
    27 | ERROR | [x] Expected 1 newline at end of file; 2 found
    ------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/pinterest_widget.module
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 324 ERRORS AND 10 WARNINGS AFFECTING 142 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
    5 | ERROR | [x] There must be exactly one blank line after the file comment
    7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteMatchInterface.
    10 | ERROR | [x] Doc comment short description must end with a full stop
    11 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
    11 | ERROR | [ ] Parameter comment must start with a capital letter
    11 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2
    11 | ERROR | [x] Parameter comment must be on the next line
    11 | ERROR | [x] Parameter comment must end with a full stop
    12 | ERROR | [ ] Parameter comment must start with a capital letter
    12 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2
    12 | ERROR | [x] Parameter comment must be on the next line
    12 | ERROR | [x] Parameter comment must end with a full stop
    13 | ERROR | [x] Separate the @param and @return sections by a blank line.
    13 | ERROR | [ ] Description for the @return value must be on the next line
    15 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "log_pinterest_messages" but expected "pinterest_widget_log_pinterest_messages"
    16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    18 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
    19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    19 | ERROR | [x] Case breaking statement indented incorrectly; expected 4 spaces, found 2
    21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    22 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
    23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    23 | ERROR | [x] Case breaking statement indented incorrectly; expected 4 spaces, found 2
    25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    25 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    26 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
    27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    27 | ERROR | [x] Case breaking statement indented incorrectly; expected 4 spaces, found 2
    28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    29 | ERROR | [x] Expected 1 blank line after function; 2 found
    36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    38 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
    39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    39 | ERROR | [x] Case breaking statements must be followed by a single blank line
    39 | ERROR | [x] Case breaking statement indented incorrectly; expected 4 spaces, found 2
    40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    40 | WARNING | [ ] Code after the RETURN statement on line 39 cannot be executed
    40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    45 | ERROR | [x] Doc comment short description must end with a full stop
    46 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
    46 | ERROR | [ ] Return type missing for @return tag in function comment
    46 | ERROR | [ ] Description for the @return value is missing
    48 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "get_pin_help_info" but expected "pinterest_widget_get_pin_help_info"
    49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    51 | WARNING | [ ] Unused variable $add_field.
    51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    51 | ERROR | [x] Concat operator must be surrounded by a single space
    52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    59 | ERROR | [x] Doc comment short description must end with a full stop
    60 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
    60 | ERROR | [ ] Return type missing for @return tag in function comment
    60 | ERROR | [ ] Description for the @return value is missing
    62 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "about_pinterest" but expected "pinterest_widget_about_pinterest"
    63 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    65 | ERROR | [x] Concat operator must be surrounded by a single space
    65 | ERROR | [x] Concat operator must be surrounded by a single space
    66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    77 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    81 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* Implements
    | | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
    84 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    84 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    86 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    88 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    88 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    88 | ERROR | [x] Expected 1 space before "??"; 0 found
    88 | ERROR | [x] Expected 1 space after "??"; 0 found
    89 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    89 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    89 | ERROR | [x] Expected 1 space before "??"; 0 found
    89 | ERROR | [x] Expected 1 space after "??"; 0 found
    91 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    92 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    92 | ERROR | [x] Short array syntax must be used to define arrays
    94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    94 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    95 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    96 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    97 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    97 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    98 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
    99 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    99 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
    100 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    100 | WARNING | [x] A comma should follow the last multiline array item. Found: "true"
    101 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    101 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
    102 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    104 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
    104 | ERROR | [x] Inline comments must start with a capital letter
    104 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    105 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    105 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    106 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    106 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    107 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    109 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
    109 | ERROR | [x] Inline comments must start with a capital letter
    109 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    110 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    110 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    110 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    111 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    111 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    112 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    114 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
    114 | ERROR | [x] Inline comments must start with a capital letter
    114 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    115 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    115 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    116 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    116 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    117 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    119 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    120 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    120 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    120 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
    121 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    121 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    121 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
    122 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    122 | WARNING | [x] A comma should follow the last multiline array item. Found: $pinit_js
    123 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    124 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    126 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    126 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    127 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    127 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    131 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* Implements
    | | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
    131 | ERROR | [x] Doc comment short description must end with a full stop
    132 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
    132 | ERROR | [ ] Missing parameter comment
    132 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2
    133 | ERROR | [ ] Missing parameter comment
    133 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2
    134 | ERROR | [x] Separate the @param and @return sections by a blank line.
    134 | ERROR | [ ] @return doc comment specified, but function has no return statement
    134 | ERROR | [ ] Description for the @return value is missing
    137 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    137 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    137 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    138 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    138 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    140 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    140 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    140 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    140 | ERROR | [x] Expected 1 space before "??"; 0 found
    140 | ERROR | [x] Expected 1 space after "??"; 0 found
    141 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    141 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    141 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    141 | ERROR | [x] Expected 1 space before "??"; 0 found
    141 | ERROR | [x] Expected 1 space after "??"; 0 found
    143 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    143 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    143 | ERROR | [x] Short array syntax must be used to define arrays
    144 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    144 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    145 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    145 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    146 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    146 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    147 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    147 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    148 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    148 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
    149 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    149 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
    150 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    150 | WARNING | [x] A comma should follow the last multiline array item. Found: "true"
    151 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    151 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
    152 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    154 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
    154 | ERROR | [x] Inline comments must start with a capital letter
    154 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    155 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    155 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    155 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    156 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    156 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    157 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    157 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    159 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    159 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
    159 | ERROR | [x] Inline comments must start with a capital letter
    159 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    160 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    160 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    161 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    161 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    162 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    164 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    164 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
    164 | ERROR | [x] Inline comments must start with a capital letter
    164 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    165 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    165 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    165 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    166 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    166 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    167 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    167 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    169 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    169 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    171 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    171 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    172 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    172 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    172 | WARNING | [x] A comma should follow the last multiline array item. Found: $pinit_js
    173 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    175 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    176 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    180 | ERROR | [x] Doc comment short description must end with a full stop
    181 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
    181 | ERROR | [ ] Missing parameter comment
    181 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2
    182 | ERROR | [x] Separate the @param and @return sections by a blank line.
    182 | ERROR | [ ] @return doc comment specified, but function has no return statement
    182 | ERROR | [ ] Description for the @return value is missing
    185 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    186 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    186 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    187 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    187 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    188 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    188 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    188 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
    189 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    189 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    190 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    190 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    190 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    191 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    191 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    191 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    192 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    192 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    192 | ERROR | [x] Inline comments must start with a capital letter
    192 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
    193 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    193 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    194 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    194 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    196 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    196 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    196 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    196 | ERROR | [x] Concat operator must be surrounded by a single space
    196 | ERROR | [x] Concat operator must be surrounded by a single space
    196 | ERROR | [x] Expected 1 space before "??"; 0 found
    196 | ERROR | [x] Expected 1 space after "??"; 0 found
    197 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    197 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    199 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    199 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    199 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    200 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    200 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
    200 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
    201 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    201 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
    202 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    202 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    203 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    203 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    205 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    205 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    206 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    206 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    207 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    207 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    207 | ERROR | [x] Expected newline after closing brace
    208 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    208 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    209 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    209 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 313 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/js/pinterest-preview.js
    -----------------------------------------------------------------------------------------------------------------
    FOUND 29 ERRORS AFFECTING 23 LINES
    -----------------------------------------------------------------------------------------------------------------
    2 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    2 | ERROR | [x] Expected 1 space after "="; 2 found
    3 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    4 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    4 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
    6 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    6 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
    7 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    8 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    10 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    11 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    13 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    13 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
    14 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    17 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
    18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    21 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
    23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    25 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
    27 | ERROR | [ ] More than 2 empty lines are not allowed
    28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    31 | ERROR | [x] Expected 1 newline at end of file; 0 found
    -----------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 28 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/pinterest_widget.routing.yml
    ----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------
    56 | ERROR | [x] Expected 1 newline at end of file; 6 found
    ----------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/pinterest_widget.links.task.yml
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
    65 | ERROR | [x] Expected 1 newline at end of file; 2 found
    -------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/pinterest_widget.permissions.yml
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------
    4 | ERROR | [x] Expected 1 newline at end of file; 0 found
    --------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/README.txt
    ----------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------
    3 | WARNING | [ ] Line exceeds 80 characters; contains 373 characters
    4 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters
    9 | ERROR | [x] Expected 1 newline at end of file; 3 found
    ----------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Form/PinSettingsForm.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 22 ERRORS AND 6 WARNINGS AFFECTING 18 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    15 | ERROR | [x] Expected 1 blank line before function; 0 found
    31 | ERROR | [x] Expected 1 space before "??"; 0 found
    31 | ERROR | [x] Expected 1 space after "??"; 0 found
    32 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    32 | ERROR | [x] Expected 1 space before "??"; 0 found
    32 | ERROR | [x] Expected 1 space after "??"; 0 found
    38 | WARNING | [ ] #description values usually have to run through t() for translation
    45 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    48 | ERROR | [x] Short array syntax must be used to define arrays
    54 | ERROR | [x] Short array syntax must be used to define arrays
    59 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    66 | ERROR | [x] Expected 1 space before "??"; 0 found
    66 | ERROR | [x] Expected 1 space after "??"; 0 found
    66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
    67 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    70 | ERROR | [x] Short array syntax must be used to define arrays
    73 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Pinterest'
    76 | ERROR | [x] Short array syntax must be used to define arrays
    79 | ERROR | [x] Concat operator must be surrounded by a single space
    79 | ERROR | [x] Concat operator must be surrounded by a single space
    79 | ERROR | [x] Concat operator must be surrounded by a single space
    79 | ERROR | [x] Concat operator must be surrounded by a single space
    79 | WARNING | [x] A comma should follow the last multiline array item. Found: '">'
    94 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    94 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    95 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    96 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    97 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Form/FollowSettingsForm.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 14 ERRORS AND 4 WARNINGS AFFECTING 11 LINES
    -------------------------------------------------------------------------------------------------------------------------
    15 | ERROR | [x] Expected 1 blank line before function; 0 found
    31 | ERROR | [x] Expected 1 space before "??"; 0 found
    31 | ERROR | [x] Expected 1 space after "??"; 0 found
    32 | ERROR | [x] Expected 1 space before "??"; 0 found
    32 | ERROR | [x] Expected 1 space after "??"; 0 found
    38 | WARNING | [ ] #description values usually have to run through t() for translation
    46 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    54 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    57 | ERROR | [x] Short array syntax must be used to define arrays
    60 | ERROR | [x] Concat operator must be surrounded by a single space
    60 | ERROR | [x] Concat operator must be surrounded by a single space
    60 | ERROR | [x] Concat operator must be surrounded by a single space
    60 | ERROR | [x] Concat operator must be surrounded by a single space
    60 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
    75 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    75 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    76 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    77 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    -------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Form/AdvancedSettingsForm.php
    ---------------------------------------------------------------------------------------------------------------------------
    FOUND 8 ERRORS AND 1 WARNING AFFECTING 7 LINES
    ---------------------------------------------------------------------------------------------------------------------------
    15 | ERROR | [x] Expected 1 blank line before function; 0 found
    37 | ERROR | [x] Short array syntax must be used to define arrays
    40 | ERROR | [x] Object operator not indented correctly; expected 8 spaces but found 6
    41 | ERROR | [x] Expected 1 space before "??"; 0 found
    41 | ERROR | [x] Expected 1 space after "??"; 0 found
    42 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    55 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    55 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    ---------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Form/ProfileSettingsForm.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 45 ERRORS AND 7 WARNINGS AFFECTING 35 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
    15 | ERROR | [x] Expected 1 blank line before function; 0 found
    31 | ERROR | [x] Expected 1 space before "??"; 0 found
    31 | ERROR | [x] Expected 1 space after "??"; 0 found
    32 | ERROR | [x] Expected 1 space before "??"; 0 found
    32 | ERROR | [x] Expected 1 space after "??"; 0 found
    33 | ERROR | [x] Expected 1 space before "??"; 0 found
    33 | ERROR | [x] Expected 1 space after "??"; 0 found
    34 | ERROR | [x] Expected 1 space before "??"; 0 found
    34 | ERROR | [x] Expected 1 space after "??"; 0 found
    35 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
    41 | WARNING | [ ] #description values usually have to run through t() for translation
    49 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    52 | ERROR | [x] Short array syntax must be used to define arrays
    58 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    58 | ERROR | [x] Expected 1 space before "??"; 0 found
    58 | ERROR | [x] Expected 1 space after "??"; 0 found
    60 | ERROR | [x] Short array syntax must be used to define arrays
    65 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    67 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
    74 | ERROR | [x] Short array syntax must be used to define arrays
    76 | ERROR | [x] Short array syntax must be used to define arrays
    77 | ERROR | [x] Short array syntax must be used to define arrays
    82 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    89 | ERROR | [x] Short array syntax must be used to define arrays
    91 | ERROR | [x] Short array syntax must be used to define arrays
    92 | ERROR | [x] Short array syntax must be used to define arrays
    97 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    104 | ERROR | [x] Short array syntax must be used to define arrays
    106 | ERROR | [x] Short array syntax must be used to define arrays
    107 | ERROR | [x] Short array syntax must be used to define arrays
    112 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    116 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    117 | ERROR | [x] Expected 1 space after "="; 2 found
    117 | ERROR | [x] Concat operator must be surrounded by a single space
    117 | ERROR | [x] Concat operator must be surrounded by a single space
    117 | ERROR | [x] Concat operator must be surrounded by a single space
    117 | ERROR | [x] Concat operator must be surrounded by a single space
    117 | ERROR | [x] Concat operator must be surrounded by a single space
    117 | ERROR | [x] Concat operator must be surrounded by a single space
    120 | ERROR | [x] Short array syntax must be used to define arrays
    123 | ERROR | [x] Concat operator must be surrounded by a single space
    123 | ERROR | [x] Concat operator must be surrounded by a single space
    123 | ERROR | [x] Concat operator must be surrounded by a single space
    123 | ERROR | [x] Concat operator must be surrounded by a single space
    123 | WARNING | [x] A comma should follow the last multiline array item. Found: '">'
    138 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    138 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    139 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    140 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    141 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    142 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 50 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Form/SaveButtonSettingsForm.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 16 ERRORS AND 8 WARNINGS AFFECTING 17 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    15 | ERROR | [x] Expected 1 blank line before function; 0 found
    36 | WARNING | [ ] #description values usually have to run through t() for translation
    39 | ERROR | [x] Short array syntax must be used to define arrays
    44 | ERROR | [x] Short array syntax must be used to define arrays
    74 | WARNING | [x] A comma should follow the last multiline array item. Found: "Vietnamese"
    77 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    77 | ERROR | [x] Expected 1 space before "??"; 0 found
    77 | ERROR | [x] Expected 1 space after "??"; 0 found
    78 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
    78 | ERROR | [x] Expected 1 space before "??"; 0 found
    78 | ERROR | [x] Expected 1 space after "??"; 0 found
    80 | ERROR | [x] Short array syntax must be used to define arrays
    85 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    87 | ERROR | [x] Short array syntax must be used to define arrays
    92 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    92 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    94 | ERROR | [x] Short array syntax must be used to define arrays
    99 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    99 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    102 | ERROR | [x] Short array syntax must be used to define arrays
    105 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
    120 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    120 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    121 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Form/BoardSettingsForm.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 43 ERRORS AND 8 WARNINGS AFFECTING 34 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
    15 | ERROR | [x] Expected 1 blank line before function; 0 found
    31 | ERROR | [x] Expected 1 space before "??"; 0 found
    31 | ERROR | [x] Expected 1 space after "??"; 0 found
    32 | ERROR | [x] Expected 1 space before "??"; 0 found
    32 | ERROR | [x] Expected 1 space after "??"; 0 found
    33 | ERROR | [x] Expected 1 space before "??"; 0 found
    33 | ERROR | [x] Expected 1 space after "??"; 0 found
    34 | ERROR | [x] Expected 1 space before "??"; 0 found
    34 | ERROR | [x] Expected 1 space after "??"; 0 found
    36 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
    36 | ERROR | [x] Expected 1 space before "??"; 0 found
    36 | ERROR | [x] Expected 1 space after "??"; 0 found
    42 | WARNING | [ ] #description values usually have to run through t() for translation
    50 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    53 | ERROR | [x] Short array syntax must be used to define arrays
    57 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Create'
    60 | ERROR | [x] Short array syntax must be used to define arrays
    65 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    73 | ERROR | [x] Short array syntax must be used to define arrays
    75 | ERROR | [x] Short array syntax must be used to define arrays
    76 | ERROR | [x] Short array syntax must be used to define arrays
    81 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    88 | ERROR | [x] Short array syntax must be used to define arrays
    90 | ERROR | [x] Short array syntax must be used to define arrays
    91 | ERROR | [x] Short array syntax must be used to define arrays
    96 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    103 | ERROR | [x] Short array syntax must be used to define arrays
    105 | ERROR | [x] Short array syntax must be used to define arrays
    106 | ERROR | [x] Short array syntax must be used to define arrays
    111 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    115 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    116 | ERROR | [x] Expected 1 space after "="; 2 found
    116 | ERROR | [x] Concat operator must be surrounded by a single space
    116 | ERROR | [x] Concat operator must be surrounded by a single space
    116 | ERROR | [x] Concat operator must be surrounded by a single space
    116 | ERROR | [x] Concat operator must be surrounded by a single space
    116 | ERROR | [x] Concat operator must be surrounded by a single space
    116 | ERROR | [x] Concat operator must be surrounded by a single space
    119 | ERROR | [x] Short array syntax must be used to define arrays
    122 | ERROR | [x] Concat operator must be surrounded by a single space
    122 | ERROR | [x] Concat operator must be surrounded by a single space
    122 | ERROR | [x] Concat operator must be surrounded by a single space
    122 | ERROR | [x] Concat operator must be surrounded by a single space
    122 | WARNING | [x] A comma should follow the last multiline array item. Found: '">'
    137 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    137 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    138 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    139 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    140 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    141 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    142 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 49 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestFollowWidget.php
    ------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 11 ERRORS AND 3 WARNINGS AFFECTING 10 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
    80 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
    94 | ERROR | [x] Expected 1 space before "??"; 0 found
    94 | ERROR | [x] Expected 1 space after "??"; 0 found
    95 | ERROR | [x] Expected 1 space before "??"; 0 found
    95 | ERROR | [x] Expected 1 space after "??"; 0 found
    97 | ERROR | [x] Expected 1 space before "??"; 0 found
    97 | ERROR | [x] Expected 1 space after "??"; 0 found
    98 | ERROR | [x] Expected 1 space before "??"; 0 found
    98 | ERROR | [x] Expected 1 space after "??"; 0 found
    109 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    115 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    119 | ERROR | [x] Expected 1 blank line after function; 2 found
    122 | ERROR | [x] The closing brace for the class must have an empty line before it
    ------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestBoardWidget.php
    -----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 50 ERRORS AND 10 WARNINGS AFFECTING 37 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
    74 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
    88 | ERROR | [x] Short array syntax must be used to define arrays
    93 | ERROR | [x] Expected 1 space before "??"; 0 found
    93 | ERROR | [x] Expected 1 space after "??"; 0 found
    94 | WARNING | [ ] Unused variable $config_size.
    94 | ERROR | [x] Expected 1 space before "??"; 0 found
    94 | ERROR | [x] Expected 1 space after "??"; 0 found
    95 | ERROR | [x] Expected 1 space before "??"; 0 found
    95 | ERROR | [x] Expected 1 space after "??"; 0 found
    96 | ERROR | [x] Expected 1 space before "??"; 0 found
    96 | ERROR | [x] Expected 1 space after "??"; 0 found
    97 | ERROR | [x] Expected 1 space before "??"; 0 found
    97 | ERROR | [x] Expected 1 space after "??"; 0 found
    100 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    108 | ERROR | [x] Expected 1 space before "??"; 0 found
    108 | ERROR | [x] Expected 1 space after "??"; 0 found
    109 | ERROR | [x] Expected 1 space before "??"; 0 found
    109 | ERROR | [x] Expected 1 space after "??"; 0 found
    110 | ERROR | [x] Expected 1 space before "??"; 0 found
    110 | ERROR | [x] Expected 1 space after "??"; 0 found
    111 | ERROR | [x] Expected 1 space before "??"; 0 found
    111 | ERROR | [x] Expected 1 space after "??"; 0 found
    112 | ERROR | [x] Expected 1 space before "??"; 0 found
    112 | ERROR | [x] Expected 1 space after "??"; 0 found
    114 | WARNING | [ ] Unused variable $selected_size.
    114 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
    114 | ERROR | [x] Expected 1 space before "??"; 0 found
    114 | ERROR | [x] Expected 1 space after "??"; 0 found
    116 | ERROR | [x] Short array syntax must be used to define arrays
    119 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
    119 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
    119 | ERROR | [x] Concat operator must be surrounded by a single space
    124 | ERROR | [x] Concat operator must be surrounded by a single space
    124 | ERROR | [x] Concat operator must be surrounded by a single space
    130 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    133 | ERROR | [x] Short array syntax must be used to define arrays
    137 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Create'
    140 | ERROR | [x] Short array syntax must be used to define arrays
    145 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    152 | ERROR | [x] Short array syntax must be used to define arrays
    153 | ERROR | [x] Short array syntax must be used to define arrays
    154 | ERROR | [x] Concat operator must be surrounded by a single space
    154 | ERROR | [x] Concat operator must be surrounded by a single space
    154 | ERROR | [x] Short array syntax must be used to define arrays
    159 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    165 | ERROR | [x] Short array syntax must be used to define arrays
    166 | ERROR | [x] Short array syntax must be used to define arrays
    167 | ERROR | [x] Concat operator must be surrounded by a single space
    167 | ERROR | [x] Concat operator must be surrounded by a single space
    167 | ERROR | [x] Short array syntax must be used to define arrays
    172 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    178 | ERROR | [x] Short array syntax must be used to define arrays
    179 | ERROR | [x] Short array syntax must be used to define arrays
    180 | ERROR | [x] Concat operator must be surrounded by a single space
    180 | ERROR | [x] Concat operator must be surrounded by a single space
    180 | ERROR | [x] Short array syntax must be used to define arrays
    185 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    189 | ERROR | [x] Expected 1 blank line after function; 2 found
    192 | ERROR | [x] The closing brace for the class must have an empty line before it
    -----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 55 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestPinWidget.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 17 ERRORS AND 4 WARNINGS AFFECTING 15 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
    72 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
    86 | ERROR | [x] Expected 1 space before "??"; 0 found
    86 | ERROR | [x] Expected 1 space after "??"; 0 found
    87 | ERROR | [x] Expected 1 space before "??"; 0 found
    87 | ERROR | [x] Expected 1 space after "??"; 0 found
    88 | ERROR | [x] Expected 1 space before "??"; 0 found
    88 | ERROR | [x] Expected 1 space after "??"; 0 found
    90 | ERROR | [x] Expected 1 space before "??"; 0 found
    90 | ERROR | [x] Expected 1 space after "??"; 0 found
    91 | ERROR | [x] Expected 1 space before "??"; 0 found
    91 | ERROR | [x] Expected 1 space after "??"; 0 found
    92 | ERROR | [x] Expected 1 space before "??"; 0 found
    92 | ERROR | [x] Expected 1 space after "??"; 0 found
    99 | ERROR | [x] Short array syntax must be used to define arrays
    109 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    111 | ERROR | [x] Short array syntax must be used to define arrays
    116 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    122 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    126 | ERROR | [x] Expected 1 blank line after function; 2 found
    129 | ERROR | [x] The closing brace for the class must have an empty line before it
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 20 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldWidget/PinterestProfileWidget.php
    -------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 51 ERRORS AND 10 WARNINGS AFFECTING 38 LINES
    -------------------------------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
    74 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
    88 | ERROR | [x] Short array syntax must be used to define arrays
    93 | ERROR | [x] Expected 1 space before "??"; 0 found
    93 | ERROR | [x] Expected 1 space after "??"; 0 found
    94 | WARNING | [ ] Unused variable $config_size.
    94 | ERROR | [x] Expected 1 space before "??"; 0 found
    94 | ERROR | [x] Expected 1 space after "??"; 0 found
    95 | ERROR | [x] Expected 1 space before "??"; 0 found
    95 | ERROR | [x] Expected 1 space after "??"; 0 found
    96 | ERROR | [x] Expected 1 space before "??"; 0 found
    96 | ERROR | [x] Expected 1 space after "??"; 0 found
    97 | ERROR | [x] Expected 1 space before "??"; 0 found
    97 | ERROR | [x] Expected 1 space after "??"; 0 found
    100 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    108 | ERROR | [x] Expected 1 space before "??"; 0 found
    108 | ERROR | [x] Expected 1 space after "??"; 0 found
    109 | ERROR | [x] Expected 1 space before "??"; 0 found
    109 | ERROR | [x] Expected 1 space after "??"; 0 found
    110 | ERROR | [x] Expected 1 space before "??"; 0 found
    110 | ERROR | [x] Expected 1 space after "??"; 0 found
    111 | ERROR | [x] Expected 1 space before "??"; 0 found
    111 | ERROR | [x] Expected 1 space after "??"; 0 found
    112 | ERROR | [x] Expected 1 space before "??"; 0 found
    112 | ERROR | [x] Expected 1 space after "??"; 0 found
    114 | WARNING | [ ] Unused variable $selected_size.
    114 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
    114 | ERROR | [x] Expected 1 space before "??"; 0 found
    114 | ERROR | [x] Expected 1 space after "??"; 0 found
    116 | ERROR | [x] Short array syntax must be used to define arrays
    117 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
    120 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
    120 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
    120 | ERROR | [x] Concat operator must be surrounded by a single space
    125 | ERROR | [x] Concat operator must be surrounded by a single space
    125 | ERROR | [x] Concat operator must be surrounded by a single space
    131 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    134 | ERROR | [x] Short array syntax must be used to define arrays
    138 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Create'
    141 | ERROR | [x] Short array syntax must be used to define arrays
    146 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    153 | ERROR | [x] Short array syntax must be used to define arrays
    154 | ERROR | [x] Short array syntax must be used to define arrays
    155 | ERROR | [x] Concat operator must be surrounded by a single space
    155 | ERROR | [x] Concat operator must be surrounded by a single space
    155 | ERROR | [x] Short array syntax must be used to define arrays
    160 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    166 | ERROR | [x] Short array syntax must be used to define arrays
    167 | ERROR | [x] Short array syntax must be used to define arrays
    168 | ERROR | [x] Concat operator must be surrounded by a single space
    168 | ERROR | [x] Concat operator must be surrounded by a single space
    168 | ERROR | [x] Short array syntax must be used to define arrays
    173 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    179 | ERROR | [x] Short array syntax must be used to define arrays
    180 | ERROR | [x] Short array syntax must be used to define arrays
    181 | ERROR | [x] Concat operator must be surrounded by a single space
    181 | ERROR | [x] Concat operator must be surrounded by a single space
    181 | ERROR | [x] Short array syntax must be used to define arrays
    186 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    190 | ERROR | [x] Expected 1 blank line after function; 2 found
    193 | ERROR | [x] The closing brace for the class must have an empty line before it
    -------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 56 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldType/PinterestFollowFieldType.php
    -------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AND 1 WARNING AFFECTING 5 LINES
    -------------------------------------------------------------------------------------------------------------------------------------------------
    40 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    40 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    63 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
    -------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldType/PinterestPinFieldType.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
    40 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    40 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    48 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    71 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
    111 | WARNING | [ ] Unused variable $hide_description.
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldType/PinterestBoardFieldType.php
    ------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 15 ERRORS AND 4 WARNINGS AFFECTING 14 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------
    40 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    40 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    48 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    52 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    52 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    53 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    56 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    87 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
    127 | WARNING | [ ] Unused variable $image_width.
    128 | WARNING | [ ] Unused variable $board_height.
    129 | WARNING | [ ] Unused variable $board_width.
    ------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldType/PinterestProfileFieldType.php
    --------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 15 ERRORS AND 4 WARNINGS AFFECTING 14 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------------
    40 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    40 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    44 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    48 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    52 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    52 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    53 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    56 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
    57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
    87 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
    127 | WARNING | [ ] Unused variable $image_width.
    128 | WARNING | [ ] Unused variable $board_height.
    129 | WARNING | [ ] Unused variable $board_width.
    --------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldFormatter/PinterestFollowFormatter.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 14 ERRORS AFFECTING 5 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    62 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    63 | ERROR | [x] Expected 1 space before "?"; 0 found
    63 | ERROR | [x] Expected 1 space after "?"; 0 found
    63 | ERROR | [x] Expected 1 space before ":"; 0 found
    63 | ERROR | [x] Expected 1 space after ":"; 0 found
    64 | ERROR | [x] Expected 1 space before "?"; 0 found
    64 | ERROR | [x] Expected 1 space after "?"; 0 found
    64 | ERROR | [x] Expected 1 space before ":"; 0 found
    64 | ERROR | [x] Expected 1 space after ":"; 0 found
    65 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    66 | ERROR | [x] Concat operator must be surrounded by a single space
    66 | ERROR | [x] Concat operator must be surrounded by a single space
    66 | ERROR | [x] Concat operator must be surrounded by a single space
    66 | ERROR | [x] Concat operator must be surrounded by a single space
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldFormatter/PinterestPinFormatter.php
    ---------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 24 ERRORS AFFECTING 9 LINES
    ---------------------------------------------------------------------------------------------------------------------------------------------------
    62 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    63 | ERROR | [x] Expected 1 space before "?"; 0 found
    63 | ERROR | [x] Expected 1 space after "?"; 0 found
    63 | ERROR | [x] Expected 1 space before ":"; 0 found
    63 | ERROR | [x] Expected 1 space after ":"; 0 found
    64 | ERROR | [x] Expected 1 space before "?"; 0 found
    64 | ERROR | [x] Expected 1 space after "?"; 0 found
    64 | ERROR | [x] Expected 1 space before ":"; 0 found
    64 | ERROR | [x] Expected 1 space after ":"; 0 found
    65 | ERROR | [x] Expected 1 space before "?"; 0 found
    65 | ERROR | [x] Expected 1 space after "?"; 0 found
    65 | ERROR | [x] Expected 1 space before ":"; 0 found
    65 | ERROR | [x] Expected 1 space after ":"; 0 found
    66 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    69 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    70 | ERROR | [x] Concat operator must be surrounded by a single space
    70 | ERROR | [x] Concat operator must be surrounded by a single space
    73 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    77 | ERROR | [x] Concat operator must be surrounded by a single space
    77 | ERROR | [x] Concat operator must be surrounded by a single space
    77 | ERROR | [x] Concat operator must be surrounded by a single space
    77 | ERROR | [x] Concat operator must be surrounded by a single space
    77 | ERROR | [x] Concat operator must be surrounded by a single space
    77 | ERROR | [x] Concat operator must be surrounded by a single space
    ---------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldFormatter/PinterestBoardFormatter.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 46 ERRORS AFFECTING 21 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    62 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    63 | ERROR | [x] Expected 1 space before "?"; 0 found
    63 | ERROR | [x] Expected 1 space after "?"; 0 found
    63 | ERROR | [x] Expected 1 space before ":"; 0 found
    63 | ERROR | [x] Expected 1 space after ":"; 0 found
    65 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    66 | ERROR | [x] Expected 1 space before "?"; 0 found
    66 | ERROR | [x] Expected 1 space after "?"; 0 found
    66 | ERROR | [x] Expected 1 space before ":"; 0 found
    66 | ERROR | [x] Expected 1 space after ":"; 0 found
    70 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    71 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    72 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    74 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    77 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    78 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    79 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    81 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    84 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    84 | ERROR | [x] Expected 1 space before "?"; 0 found
    84 | ERROR | [x] Expected 1 space after "?"; 0 found
    84 | ERROR | [x] Expected 1 space before ":"; 0 found
    84 | ERROR | [x] Expected 1 space after ":"; 0 found
    85 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    85 | ERROR | [x] Expected 1 space before "?"; 0 found
    85 | ERROR | [x] Expected 1 space after "?"; 0 found
    85 | ERROR | [x] Expected 1 space before ":"; 0 found
    85 | ERROR | [x] Expected 1 space after ":"; 0 found
    86 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    86 | ERROR | [x] Expected 1 space before "?"; 0 found
    86 | ERROR | [x] Expected 1 space after "?"; 0 found
    86 | ERROR | [x] Expected 1 space before ":"; 0 found
    86 | ERROR | [x] Expected 1 space after ":"; 0 found
    87 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    90 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    91 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    92 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    93 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Field/FieldFormatter/PinterestProfileFormatter.php
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 46 ERRORS AFFECTING 21 LINES
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    62 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    63 | ERROR | [x] Expected 1 space before "?"; 0 found
    63 | ERROR | [x] Expected 1 space after "?"; 0 found
    63 | ERROR | [x] Expected 1 space before ":"; 0 found
    63 | ERROR | [x] Expected 1 space after ":"; 0 found
    65 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    66 | ERROR | [x] Expected 1 space before "?"; 0 found
    66 | ERROR | [x] Expected 1 space after "?"; 0 found
    66 | ERROR | [x] Expected 1 space before ":"; 0 found
    66 | ERROR | [x] Expected 1 space after ":"; 0 found
    70 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    71 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    72 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    74 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    77 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    78 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    79 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    81 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    84 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    84 | ERROR | [x] Expected 1 space before "?"; 0 found
    84 | ERROR | [x] Expected 1 space after "?"; 0 found
    84 | ERROR | [x] Expected 1 space before ":"; 0 found
    84 | ERROR | [x] Expected 1 space after ":"; 0 found
    85 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    85 | ERROR | [x] Expected 1 space before "?"; 0 found
    85 | ERROR | [x] Expected 1 space after "?"; 0 found
    85 | ERROR | [x] Expected 1 space before ":"; 0 found
    85 | ERROR | [x] Expected 1 space after ":"; 0 found
    86 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    86 | ERROR | [x] Expected 1 space before "?"; 0 found
    86 | ERROR | [x] Expected 1 space after "?"; 0 found
    86 | ERROR | [x] Expected 1 space before ":"; 0 found
    86 | ERROR | [x] Expected 1 space after ":"; 0 found
    87 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    90 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    91 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    92 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 12
    93 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 12
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    96 | ERROR | [x] Concat operator must be surrounded by a single space
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Block/PinterestBoardBlock.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 105 ERRORS AND 9 WARNINGS AFFECTING 68 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
    10 | WARNING | [x] Unused use statement
    11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
    24 | ERROR | [x] Opening brace should be on the same line as the declaration
    60 | ERROR | [x] Whitespace found at end of line
    65 | ERROR | [x] Opening brace should be on the same line as the declaration
    67 | ERROR | [x] Expected 1 space before "?"; 0 found
    67 | ERROR | [x] Expected 1 space after "?"; 0 found
    67 | ERROR | [x] Expected 1 space before ":"; 0 found
    67 | ERROR | [x] Expected 1 space after ":"; 0 found
    69 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    70 | ERROR | [x] Expected 1 space before "?"; 0 found
    70 | ERROR | [x] Expected 1 space after "?"; 0 found
    70 | ERROR | [x] Expected 1 space before ":"; 0 found
    70 | ERROR | [x] Expected 1 space after ":"; 0 found
    74 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    75 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    76 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    78 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    81 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    82 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    83 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    85 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    88 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    88 | ERROR | [x] Expected 1 space before "?"; 0 found
    88 | ERROR | [x] Expected 1 space after "?"; 0 found
    88 | ERROR | [x] Expected 1 space before ":"; 0 found
    88 | ERROR | [x] Expected 1 space after ":"; 0 found
    89 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    89 | ERROR | [x] Expected 1 space before "?"; 0 found
    89 | ERROR | [x] Expected 1 space after "?"; 0 found
    89 | ERROR | [x] Expected 1 space before ":"; 0 found
    89 | ERROR | [x] Expected 1 space after ":"; 0 found
    90 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    90 | ERROR | [x] Expected 1 space before "?"; 0 found
    90 | ERROR | [x] Expected 1 space after "?"; 0 found
    90 | ERROR | [x] Expected 1 space before ":"; 0 found
    90 | ERROR | [x] Expected 1 space after ":"; 0 found
    91 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    94 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    95 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    96 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    97 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Concat operator must be surrounded by a single space
    117 | ERROR | [x] Opening brace should be on the same line as the declaration
    123 | ERROR | [x] Expected 1 space before "??"; 0 found
    123 | ERROR | [x] Expected 1 space after "??"; 0 found
    124 | ERROR | [x] Expected 1 space before "??"; 0 found
    124 | ERROR | [x] Expected 1 space after "??"; 0 found
    125 | ERROR | [x] Expected 1 space before "??"; 0 found
    125 | ERROR | [x] Expected 1 space after "??"; 0 found
    126 | ERROR | [x] Expected 1 space before "??"; 0 found
    126 | ERROR | [x] Expected 1 space after "??"; 0 found
    127 | ERROR | [x] Expected 1 space before "??"; 0 found
    127 | ERROR | [x] Expected 1 space after "??"; 0 found
    129 | ERROR | [x] Expected 1 space before "??"; 0 found
    129 | ERROR | [x] Expected 1 space after "??"; 0 found
    130 | ERROR | [x] Expected 1 space before "??"; 0 found
    130 | ERROR | [x] Expected 1 space after "??"; 0 found
    131 | ERROR | [x] Expected 1 space before "??"; 0 found
    131 | ERROR | [x] Expected 1 space after "??"; 0 found
    132 | ERROR | [x] Expected 1 space before "??"; 0 found
    132 | ERROR | [x] Expected 1 space after "??"; 0 found
    133 | ERROR | [x] Expected 1 space before "??"; 0 found
    133 | ERROR | [x] Expected 1 space after "??"; 0 found
    135 | WARNING | [ ] Unused variable $selected_size.
    135 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
    135 | ERROR | [x] Expected 1 space before "??"; 0 found
    135 | ERROR | [x] Expected 1 space after "??"; 0 found
    138 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
    138 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
    138 | ERROR | [x] Concat operator must be surrounded by a single space
    149 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    152 | ERROR | [x] Short array syntax must be used to define arrays
    156 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Create'
    159 | ERROR | [x] Short array syntax must be used to define arrays
    164 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    171 | ERROR | [x] Short array syntax must be used to define arrays
    172 | ERROR | [x] Short array syntax must be used to define arrays
    173 | ERROR | [x] Concat operator must be surrounded by a single space
    173 | ERROR | [x] Concat operator must be surrounded by a single space
    173 | ERROR | [x] Short array syntax must be used to define arrays
    178 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    184 | ERROR | [x] Short array syntax must be used to define arrays
    185 | ERROR | [x] Short array syntax must be used to define arrays
    186 | ERROR | [x] Concat operator must be surrounded by a single space
    186 | ERROR | [x] Concat operator must be surrounded by a single space
    186 | ERROR | [x] Short array syntax must be used to define arrays
    191 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    197 | ERROR | [x] Short array syntax must be used to define arrays
    198 | ERROR | [x] Short array syntax must be used to define arrays
    199 | ERROR | [x] Concat operator must be surrounded by a single space
    199 | ERROR | [x] Concat operator must be surrounded by a single space
    199 | ERROR | [x] Short array syntax must be used to define arrays
    204 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    214 | ERROR | [x] Opening brace should be on the same line as the declaration
    222 | ERROR | [x] Expected one space after the comma, 0 found
    223 | ERROR | [x] Expected one space after the comma, 0 found
    224 | ERROR | [x] Expected one space after the comma, 0 found
    225 | ERROR | [x] Expected one space after the comma, 0 found
    226 | ERROR | [x] Expected one space after the comma, 0 found
    227 | ERROR | [x] Expected 1 blank line after function; 2 found
    234 | ERROR | [x] Opening brace should be on the same line as the declaration
    239 | ERROR | [ ] Doc comment short description must start with a capital letter
    240 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
    243 | ERROR | [x] Opening brace should be on the same line as the declaration
    252 | ERROR | [x] Opening brace should be on the same line as the declaration
    256 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 108 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Block/PinterestPinBlock.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 51 ERRORS AND 4 WARNINGS AFFECTING 34 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
    11 | WARNING | [x] Unused use statement
    24 | 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
    69 | ERROR | [x] Expected 1 space before "?"; 0 found
    69 | ERROR | [x] Expected 1 space after "?"; 0 found
    69 | ERROR | [x] Expected 1 space before ":"; 0 found
    69 | ERROR | [x] Expected 1 space after ":"; 0 found
    70 | ERROR | [x] Expected 1 space before "?"; 0 found
    70 | ERROR | [x] Expected 1 space after "?"; 0 found
    70 | ERROR | [x] Expected 1 space before ":"; 0 found
    70 | ERROR | [x] Expected 1 space after ":"; 0 found
    71 | ERROR | [x] Expected 1 space before "?"; 0 found
    71 | ERROR | [x] Expected 1 space after "?"; 0 found
    71 | ERROR | [x] Expected 1 space before ":"; 0 found
    71 | ERROR | [x] Expected 1 space after ":"; 0 found
    72 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    75 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    76 | ERROR | [x] Concat operator must be surrounded by a single space
    76 | ERROR | [x] Concat operator must be surrounded by a single space
    79 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    83 | ERROR | [x] Concat operator must be surrounded by a single space
    83 | ERROR | [x] Concat operator must be surrounded by a single space
    83 | ERROR | [x] Concat operator must be surrounded by a single space
    83 | ERROR | [x] Concat operator must be surrounded by a single space
    83 | ERROR | [x] Concat operator must be surrounded by a single space
    83 | ERROR | [x] Concat operator must be surrounded by a single space
    100 | ERROR | [x] Opening brace should be on the same line as the declaration
    107 | ERROR | [x] Expected 1 space before "??"; 0 found
    107 | ERROR | [x] Expected 1 space after "??"; 0 found
    108 | ERROR | [x] Expected 1 space before "??"; 0 found
    108 | ERROR | [x] Expected 1 space after "??"; 0 found
    109 | ERROR | [x] Expected 1 space before "??"; 0 found
    109 | ERROR | [x] Expected 1 space after "??"; 0 found
    111 | ERROR | [x] Expected 1 space before "??"; 0 found
    111 | ERROR | [x] Expected 1 space after "??"; 0 found
    112 | ERROR | [x] Expected 1 space before "??"; 0 found
    112 | ERROR | [x] Expected 1 space after "??"; 0 found
    113 | ERROR | [x] Expected 1 space before "??"; 0 found
    113 | ERROR | [x] Expected 1 space after "??"; 0 found
    121 | ERROR | [x] Short array syntax must be used to define arrays
    131 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    133 | ERROR | [x] Short array syntax must be used to define arrays
    138 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    144 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    154 | ERROR | [x] Opening brace should be on the same line as the declaration
    161 | ERROR | [x] Expected one space after the comma, 0 found
    162 | ERROR | [x] Expected one space after the comma, 0 found
    163 | ERROR | [x] Expected one space after the comma, 0 found
    164 | ERROR | [x] Expected 1 blank line after function; 2 found
    171 | ERROR | [x] Opening brace should be on the same line as the declaration
    176 | ERROR | [ ] Doc comment short description must start with a capital letter
    177 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
    180 | ERROR | [x] Opening brace should be on the same line as the declaration
    189 | ERROR | [x] Opening brace should be on the same line as the declaration
    193 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 52 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Block/PinterestProfileBlock.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 104 ERRORS AND 9 WARNINGS AFFECTING 69 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
    11 | WARNING | [x] Unused use statement
    24 | ERROR | [x] Opening brace should be on the same line as the declaration
    45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
    46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
    53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
    65 | ERROR | [x] Opening brace should be on the same line as the declaration
    69 | ERROR | [x] Expected 1 space before "?"; 0 found
    69 | ERROR | [x] Expected 1 space after "?"; 0 found
    69 | ERROR | [x] Expected 1 space before ":"; 0 found
    69 | ERROR | [x] Expected 1 space after ":"; 0 found
    71 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    72 | ERROR | [x] Expected 1 space before "?"; 0 found
    72 | ERROR | [x] Expected 1 space after "?"; 0 found
    72 | ERROR | [x] Expected 1 space before ":"; 0 found
    72 | ERROR | [x] Expected 1 space after ":"; 0 found
    76 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    77 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    78 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    80 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    83 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    84 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    85 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    87 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    90 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    90 | ERROR | [x] Expected 1 space before "?"; 0 found
    90 | ERROR | [x] Expected 1 space after "?"; 0 found
    90 | ERROR | [x] Expected 1 space before ":"; 0 found
    90 | ERROR | [x] Expected 1 space after ":"; 0 found
    91 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    91 | ERROR | [x] Expected 1 space before "?"; 0 found
    91 | ERROR | [x] Expected 1 space after "?"; 0 found
    91 | ERROR | [x] Expected 1 space before ":"; 0 found
    91 | ERROR | [x] Expected 1 space after ":"; 0 found
    92 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    92 | ERROR | [x] Expected 1 space before "?"; 0 found
    92 | ERROR | [x] Expected 1 space after "?"; 0 found
    92 | ERROR | [x] Expected 1 space before ":"; 0 found
    92 | ERROR | [x] Expected 1 space after ":"; 0 found
    93 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    96 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    97 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    98 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
    99 | ERROR | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 8
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    102 | ERROR | [x] Concat operator must be surrounded by a single space
    119 | ERROR | [x] Opening brace should be on the same line as the declaration
    126 | ERROR | [x] Expected 1 space before "??"; 0 found
    126 | ERROR | [x] Expected 1 space after "??"; 0 found
    127 | ERROR | [x] Expected 1 space before "??"; 0 found
    127 | ERROR | [x] Expected 1 space after "??"; 0 found
    128 | ERROR | [x] Expected 1 space before "??"; 0 found
    128 | ERROR | [x] Expected 1 space after "??"; 0 found
    129 | ERROR | [x] Expected 1 space before "??"; 0 found
    129 | ERROR | [x] Expected 1 space after "??"; 0 found
    130 | ERROR | [x] Expected 1 space before "??"; 0 found
    130 | ERROR | [x] Expected 1 space after "??"; 0 found
    132 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    139 | ERROR | [x] Expected 1 space before "??"; 0 found
    139 | ERROR | [x] Expected 1 space after "??"; 0 found
    140 | ERROR | [x] Expected 1 space before "??"; 0 found
    140 | ERROR | [x] Expected 1 space after "??"; 0 found
    141 | ERROR | [x] Expected 1 space before "??"; 0 found
    141 | ERROR | [x] Expected 1 space after "??"; 0 found
    142 | ERROR | [x] Expected 1 space before "??"; 0 found
    142 | ERROR | [x] Expected 1 space after "??"; 0 found
    143 | ERROR | [x] Expected 1 space before "??"; 0 found
    143 | ERROR | [x] Expected 1 space after "??"; 0 found
    145 | WARNING | [ ] Unused variable $selected_size.
    145 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
    145 | ERROR | [x] Expected 1 space before "??"; 0 found
    145 | ERROR | [x] Expected 1 space after "??"; 0 found
    148 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
    159 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    162 | ERROR | [x] Short array syntax must be used to define arrays
    166 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Create'
    169 | ERROR | [x] Short array syntax must be used to define arrays
    174 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    181 | ERROR | [x] Short array syntax must be used to define arrays
    182 | ERROR | [x] Short array syntax must be used to define arrays
    183 | ERROR | [x] Concat operator must be surrounded by a single space
    183 | ERROR | [x] Concat operator must be surrounded by a single space
    183 | ERROR | [x] Short array syntax must be used to define arrays
    188 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    194 | ERROR | [x] Short array syntax must be used to define arrays
    195 | ERROR | [x] Short array syntax must be used to define arrays
    196 | ERROR | [x] Concat operator must be surrounded by a single space
    196 | ERROR | [x] Concat operator must be surrounded by a single space
    196 | ERROR | [x] Short array syntax must be used to define arrays
    201 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    207 | ERROR | [x] Short array syntax must be used to define arrays
    208 | ERROR | [x] Short array syntax must be used to define arrays
    209 | ERROR | [x] Concat operator must be surrounded by a single space
    209 | ERROR | [x] Concat operator must be surrounded by a single space
    209 | ERROR | [x] Short array syntax must be used to define arrays
    214 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    224 | ERROR | [x] Opening brace should be on the same line as the declaration
    232 | ERROR | [x] Expected one space after the comma, 0 found
    233 | ERROR | [x] Expected one space after the comma, 0 found
    234 | ERROR | [x] Expected one space after the comma, 0 found
    235 | ERROR | [x] Expected one space after the comma, 0 found
    236 | ERROR | [x] Expected one space after the comma, 0 found
    243 | ERROR | [x] Opening brace should be on the same line as the declaration
    248 | ERROR | [ ] Doc comment short description must start with a capital letter
    249 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
    252 | ERROR | [x] Opening brace should be on the same line as the declaration
    261 | ERROR | [x] Opening brace should be on the same line as the declaration
    265 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 108 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Plugin/Block/PinterestFollowBlock.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 38 ERRORS AND 5 WARNINGS AFFECTING 30 LINES
    -----------------------------------------------------------------------------------------------------------------------------------
    11 | WARNING | [x] Unused use statement
    24 | ERROR | [x] Opening brace should be on the same line as the declaration
    45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
    46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
    53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
    59 | ERROR | [x] Whitespace found at end of line
    65 | ERROR | [x] Opening brace should be on the same line as the declaration
    69 | ERROR | [x] Expected 1 space before "?"; 0 found
    69 | ERROR | [x] Expected 1 space after "?"; 0 found
    69 | ERROR | [x] Expected 1 space before ":"; 0 found
    69 | ERROR | [x] Expected 1 space after ":"; 0 found
    70 | ERROR | [x] Expected 1 space before "?"; 0 found
    70 | ERROR | [x] Expected 1 space after "?"; 0 found
    70 | ERROR | [x] Expected 1 space before ":"; 0 found
    70 | ERROR | [x] Expected 1 space after ":"; 0 found
    71 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    72 | ERROR | [x] Concat operator must be surrounded by a single space
    72 | ERROR | [x] Concat operator must be surrounded by a single space
    72 | ERROR | [x] Concat operator must be surrounded by a single space
    72 | ERROR | [x] Concat operator must be surrounded by a single space
    88 | ERROR | [x] Opening brace should be on the same line as the declaration
    92 | WARNING | [ ] Unused variable $config.
    95 | ERROR | [x] Expected 1 space before "??"; 0 found
    95 | ERROR | [x] Expected 1 space after "??"; 0 found
    96 | ERROR | [x] Expected 1 space before "??"; 0 found
    96 | ERROR | [x] Expected 1 space after "??"; 0 found
    98 | ERROR | [x] Expected 1 space before "??"; 0 found
    98 | ERROR | [x] Expected 1 space after "??"; 0 found
    99 | ERROR | [x] Expected 1 space before "??"; 0 found
    99 | ERROR | [x] Expected 1 space after "??"; 0 found
    104 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    111 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    117 | WARNING | [x] A comma should follow the last multiline array item. Found: )
    127 | ERROR | [x] Opening brace should be on the same line as the declaration
    132 | ERROR | [x] Expected one space after the comma, 0 found
    133 | ERROR | [x] Expected one space after the comma, 0 found
    134 | ERROR | [x] Expected 1 blank line after function; 2 found
    141 | ERROR | [x] Opening brace should be on the same line as the declaration
    146 | ERROR | [ ] Doc comment short description must start with a capital letter
    147 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
    150 | ERROR | [x] Opening brace should be on the same line as the declaration
    159 | ERROR | [x] Opening brace should be on the same line as the declaration
    163 | ERROR | [x] Expected 1 newline at end of file; 0 found
    -----------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 40 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/pinterest_widget/src/Controller/PinterestController.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 41 ERRORS AND 5 WARNINGS AFFECTING 19 LINES
    --------------------------------------------------------------------------------------------------------------------------------
    6 | WARNING | [x] Unused use statement
    7 | WARNING | [x] Unused use statement
    8 | WARNING | [x] Unused use statement
    8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is GuzzleHttp\Client.
    15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    15 | ERROR | [x] Missing function doc comment
    15 | ERROR | [x] Incorrect spacing between argument "$value" and equals sign; expected 1 but found 0
    15 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$value"; expected 1 but found 0
    16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    16 | ERROR | [x] Opening brace should be on the same line as the declaration
    17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    19 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    19 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
    19 | WARNING | [ ] Only string literals should be passed to t() where possible
    20 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    24 | ERROR | [x] Missing function doc comment
    24 | ERROR | [x] Incorrect spacing between argument "$value" and equals sign; expected 1 but found 0
    24 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$value"; expected 1 but found 0
    25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    25 | ERROR | [x] Opening brace should be on the same line as the declaration
    26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    28 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
    28 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
    28 | WARNING | [ ] Only string literals should be passed to t() where possible
    29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
    31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
    31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
    --------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 44 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------

    Time: 813ms; Memory: 14MB

  • Status changed to Needs work 11 months ago
  • First commit to issue fork.
  • Assigned to realsp
  • 🇮🇳India realsp

    I'll create MR to fix the dependency injection & phpcs issues

  • Merge request !1Fixed the phpcs issues → (Open) created by realsp
  • Issue was unassigned.
  • Status changed to Needs review 11 months ago
  • Status changed to Needs work 11 months ago
  • 🇵🇭Philippines paraderojether

    Hi realsp,

    I reviewed MR!1, and applied against Pinterest Widget 1.0.2 with Drupal Core version 10.1.7, and there are still remaining issues by phpcs shown below:

    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/pinterest_widget/pinterest_widget.module
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     18 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "log_pinterest_messages" but expected
        |         | "pinterest_widget_log_pinterest_messages"
     43 | WARNING | Code after the RETURN statement on line 41 cannot be executed
     53 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "get_pin_help_info" but expected "pinterest_widget_get_pin_help_info"
     68 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "about_pinterest" but expected "pinterest_widget_about_pinterest"
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/pinterest_widget/pinterest_widget.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
    ------------------------------------------------------------------------------------------------------------------------
    
    Time: 582ms; Memory: 12MB

    Kindly check and advise, please.
    Thank you.

  • Status changed to Needs review 11 months ago
  • 🇮🇳India realsp

    Hi @paraderojether, Thanks for sharing the remaining phpcs issues, these were not reflected when I ran the 'phpcs' command, with Drupal 10.2.0, I've edited the function names as per the errors which you shared, please review and (lines added) in 'info.yml' file, are usually added when you install the module using 'composer require drupal/module_name' in drupal instance, as I'm not getting these lines in the issue fork branch (can be ignored).
    Thank you.

Production build 0.71.5 2024