PHPCS Coding Standards Issue

Created on 15 July 2022, over 2 years ago
Updated 8 February 2023, almost 2 years ago

Need to resolve php coding standard issues.

FILE: /home/drupal/myproject/image_effects/tests/src/Functional/Effect/RotateTest.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------------------
67 | ERROR | The array declaration extends to column 126 (the limit is 80). The array content should be split up over multiple lines
73 | ERROR | The array declaration extends to column 128 (the limit is 80). The array content should be split up over multiple lines
80 | ERROR | The array declaration extends to column 127 (the limit is 80). The array content should be split up over multiple lines
86 | ERROR | The array declaration extends to column 125 (the limit is 80). The array content should be split up over multiple lines
92 | ERROR | The array declaration extends to column 125 (the limit is 80). The array content should be split up over multiple lines
98 | ERROR | The array declaration extends to column 126 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/tests/src/Functional/Effect/StripMetadataTest.php
---------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------
60 | ERROR | [x] Use null coalesce operator instead of ternary operator.
67 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/tests/src/Functional/Effect/AspectSwitcherTest.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
54 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/tests/src/Functional/Effect/AutoOrientTest.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
18 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/tests/src/Functional/Effect/ImagemagickArgumentsTest.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
44 | ERROR | [x] Use null coalesce operator instead of ternary operator.
76 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/DEVELOPING.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
29 | WARNING | Line exceeds 80 characters; contains 101 characters
----------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Component/GdGaussianBlur.php
----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------
35 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Component/PositionedRectangle.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
328 | ERROR | [x] list(...) is forbidden, use [...] instead.
349 | ERROR | [ ] The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Component/ColorUtility.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
22 | ERROR | [x] list(...) is forbidden, use [...] instead.
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/image_effects/ColorSelector/JqueryColorPicker.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/image_effects/ColorSelector/Farbtastic.php
-------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Use null coalesce operator instead of ternary operator.
26 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/image_effects/ColorSelector/HtmlColor.php
------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Use null coalesce operator instead of ternary operator.
26 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffectsPluginManager.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
109 | ERROR | The array declaration extends to column 157 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageToolkit/Operation/imagemagick/GaussianBlur.php
----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
37 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageToolkit/Operation/gd/Watermark.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
32 | ERROR | The array declaration extends to column 120 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageToolkit/Operation/gd/GDOperationTrait.php
-----------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------
27 | ERROR | [x] list(...) is forbidden, use [...] instead.
576 | ERROR | [x] list(...) is forbidden, use [...] instead.
577 | ERROR | [x] list(...) is forbidden, use [...] instead.
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageToolkit/Operation/gd/TextToWrapper.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
109 | ERROR | The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
187 | ERROR | The array declaration extends to column 142 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageToolkit/Operation/gd/Mask.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
33 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/TextOverlayImageEffect.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AFFECTING 18 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
195 | ERROR | [x] list(...) is forbidden, use [...] instead.
553 | ERROR | [ ] The array declaration extends to column 121 (the limit is 80). The array content should be split up over multiple lines
655 | ERROR | [x] list(...) is forbidden, use [...] instead.
655 | ERROR | [ ] The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
728 | ERROR | [ ] The array declaration extends to column 129 (the limit is 80). The array content should be split up over multiple lines
819 | ERROR | [ ] The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines
823 | ERROR | [ ] The array declaration extends to column 108 (the limit is 80). The array content should be split up over multiple lines
831 | ERROR | [ ] The array declaration extends to column 88 (the limit is 80). The array content should be split up over multiple lines
832 | ERROR | [ ] The array declaration extends to column 97 (the limit is 80). The array content should be split up over multiple lines
835 | ERROR | [ ] The array declaration extends to column 108 (the limit is 80). The array content should be split up over multiple lines
843 | ERROR | [ ] The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
847 | ERROR | [ ] The array declaration extends to column 108 (the limit is 80). The array content should be split up over multiple lines
854 | ERROR | [ ] The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
855 | ERROR | [ ] The array declaration extends to column 101 (the limit is 80). The array content should be split up over multiple lines
856 | ERROR | [ ] The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
857 | ERROR | [ ] The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
859 | ERROR | [ ] The array declaration extends to column 108 (the limit is 80). The array content should be split up over multiple lines
977 | ERROR | [x] Use null coalesce operator instead of ternary operator.
1116 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/SmartCropImageEffect.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------
136 | ERROR | The array declaration extends to column 87 (the limit is 80). The array content should be split up over multiple lines
137 | ERROR | The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/SetCanvasImageEffect.php
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
226 | ERROR | [x] list(...) is forbidden, use [...] instead.
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/WatermarkImageEffect.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
185 | ERROR | [ ] The array declaration extends to column 107 (the limit is 80). The array content should be split up over multiple lines
186 | ERROR | [ ] The array declaration extends to column 109 (the limit is 80). The array content should be split up over multiple lines
200 | ERROR | [ ] The array declaration extends to column 179 (the limit is 80). The array content should be split up over multiple lines
223 | ERROR | [x] list(...) is forbidden, use [...] instead.
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/RotateImageEffect.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
194 | ERROR | The array declaration extends to column 136 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/MaskImageEffect.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
175 | ERROR | [ ] The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
176 | ERROR | [ ] The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
189 | ERROR | [ ] The array declaration extends to column 169 (the limit is 80). The array content should be split up over multiple lines
211 | ERROR | [x] list(...) is forbidden, use [...] instead.
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/BackgroundImageEffect.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
186 | ERROR | [ ] The array declaration extends to column 181 (the limit is 80). The array content should be split up over multiple lines
189 | ERROR | [x] list(...) is forbidden, use [...] instead.
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/ScaleAndSmartCropImageEffect.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------
105 | ERROR | The array declaration extends to column 87 (the limit is 80). The array content should be split up over multiple lines
106 | ERROR | The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Plugin/ImageEffect/ImagemagickArgumentsImageEffect.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------
105 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
106 | ERROR | The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/src/Element/ImageEffectsColor.php
-----------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------
41 | ERROR | [x] Use null coalesce operator instead of ternary operator.
42 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------

FILE: /home/drupal/myproject/image_effects/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 27 WARNINGS AFFECTING 27 LINES
----------------------------------------------------------------------
24 | WARNING | Line exceeds 80 characters; contains 156 characters
25 | WARNING | Line exceeds 80 characters; contains 156 characters
26 | WARNING | Line exceeds 80 characters; contains 156 characters
27 | WARNING | Line exceeds 80 characters; contains 156 characters
28 | WARNING | Line exceeds 80 characters; contains 156 characters
29 | WARNING | Line exceeds 80 characters; contains 156 characters
30 | WARNING | Line exceeds 80 characters; contains 193 characters
31 | WARNING | Line exceeds 80 characters; contains 156 characters
32 | WARNING | Line exceeds 80 characters; contains 156 characters
33 | WARNING | Line exceeds 80 characters; contains 156 characters
34 | WARNING | Line exceeds 80 characters; contains 156 characters
35 | WARNING | Line exceeds 80 characters; contains 156 characters
36 | WARNING | Line exceeds 80 characters; contains 156 characters
37 | WARNING | Line exceeds 80 characters; contains 156 characters
38 | WARNING | Line exceeds 80 characters; contains 156 characters
39 | WARNING | Line exceeds 80 characters; contains 156 characters
40 | WARNING | Line exceeds 80 characters; contains 156 characters
41 | WARNING | Line exceeds 80 characters; contains 200 characters
42 | WARNING | Line exceeds 80 characters; contains 153 characters
43 | WARNING | Line exceeds 80 characters; contains 156 characters
44 | WARNING | Line exceeds 80 characters; contains 156 characters
45 | WARNING | Line exceeds 80 characters; contains 153 characters
46 | WARNING | Line exceeds 80 characters; contains 156 characters
47 | WARNING | Line exceeds 80 characters; contains 156 characters
48 | WARNING | Line exceeds 80 characters; contains 156 characters
49 | WARNING | Line exceeds 80 characters; contains 156 characters
142 | WARNING | Line exceeds 80 characters; contains 81 characters
----------------------------------------------------------------------

📌 Task
Status

Needs work

Version

3.0

Component

Documentation

Created by

🇮🇳India Dharti Patel

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024