FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\imageapi_optimize_avif_webp.module
------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Whitespace found at end of line
9 | ERROR | [x] Whitespace found at end of line
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\modules\imageapi_optimize_avif_webp_responsive\imageapi_optimize_avif_webp_responsive.info.yml
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\modules\imageapi_optimize_avif_webp_responsive\imageapi_optimize_avif_webp_responsive.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 33 ERRORS AND 7 WARNINGS AFFECTING 23 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
17 | ERROR | [x] Case breaking statements must be followed by a single blank line
28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
29 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
29 | WARNING | [x] '@todo: Use cache to store ImageStyles that utilize a pipeine with AVIF processor.' should match the format '@todo Fix problem X here.'
29 | ERROR | [x] No space found before comment text; expected "// @todo: Use cache to store ImageStyles that utilize a pipeine with AVIF processor." but found "//@todo: Use cache to store ImageStyles that utilize a
| | pipeine with AVIF processor."
30 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | ERROR | [x] Whitespace found at end of line
52 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Whitespace found at end of line
64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
64 | ERROR | [x] Whitespace found at end of line
65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
65 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 4
68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
68 | ERROR | [x] Whitespace found at end of line
72 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
76 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
87 | ERROR | [x] Expected 1 space after IF keyword; 0 found
93 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
93 | ERROR | [x] Whitespace found at end of line
94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
94 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 4
95 | ERROR | [x] Expected 1 space after IF keyword; 0 found
95 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
95 | ERROR | [x] Whitespace found at end of line
103 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
103 | ERROR | [x] Whitespace found at end of line
104 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
110 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
110 | ERROR | [x] Whitespace found at end of line
111 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
111 | ERROR | [x] Whitespace found at end of line
113 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\README.md
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------
14 | WARNING | Line exceeds 80 characters; contains 84 characters
15 | WARNING | Line exceeds 80 characters; contains 85 characters
31 | WARNING | Line exceeds 80 characters; contains 91 characters
-----------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\src\Controller\ImageStyleDownloadController.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] Additional whitespace found at start of file
29 | ERROR | [x] Expected 1 space after IF keyword; 0 found
45 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 3
62 | ERROR | [x] Closing brace indented incorrectly; expected 3 spaces, found 12
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\src\Entity\ImageAPIOptimizeAvifWebpPipeline.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 23 ERRORS AND 1 WARNING AFFECTING 13 LINES
-------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
18 | ERROR | [ ] Parameter tags must be defined first in a doc comment
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
37 | ERROR | [x] Whitespace found at end of line
38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
38 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
49 | ERROR | [x] Closing brace indented incorrectly; expected 6 spaces, found 3
50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
50 | ERROR | [x] Whitespace found at end of line
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
52 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
52 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
52 | ERROR | [x] Whitespace found at end of line
60 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
60 | ERROR | [x] Whitespace found at end of line
61 | ERROR | [x] Closing brace indented incorrectly; expected 3 spaces, found 6
65 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 22 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\src\Plugin\ImageAPIOptimizeProcessor\AvifWebp.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
36 | WARNING | [x] '@todo: Add try/catch.' should match the format '@todo Fix problem X here.'
43 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
43 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
43 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
52 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 4
52 | ERROR | [ ] The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
106 | WARNING | [x] '@todo: Add ability to pick which image types allow derivatives.' should match the format '@todo Fix problem X here.'
127 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\imageapi_optimize_avif_webp\src\Routing\RouteSubscriber.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

Comments

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Category: Task » Bug report
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new14.2 KB

I have fixed this issue and providing patch.

akshaydalvi212’s picture

Hi,
I will review this patch.

akshaydalvi212’s picture

Assigned: akshaydalvi212 » Unassigned
Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new75.96 KB

hi @harsh panchal,

after applying the patch, still getting some errors as below:

kindly resolve them and update the patch accordingly.

Harsh panchal’s picture

I will solve this and update new patch.Thanks

Harsh panchal’s picture

Status: Needs work » Needs review
StatusFileSize
new14.41 KB

Hi @akshaydalvi212
I have applying a new patch please check and review.

akshaydalvi212’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new4.86 KB

Hi @Harsh panchal,

As the last suggestion, the patch is updated and looks good and no error or warning was found.

hence shifting the issue to the status as Reviewed and tested by the community.
Thank again.

hoangd’s picture

Updated.

rar9’s picture

Invalid json in modules/contrib/imageapi_optimize_avif_webp/composer.json

Please add the missing comma

"issues": "https://www.drupal.org/project/issues/imageapi_optimize_avif_webp",

hoangd’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.