Code formatting and Unused variable

Created on 2 April 2021, about 3 years ago
Updated 25 April 2023, about 1 year ago

FILE: imagecroper/imager_widget/src/Plugin/Field/FieldWidget/ImagerWidget.php
-------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
45 | WARNING | Unused variable $file.
-------------------------------------------------------------------------------------------

FILE: imagecroper/imager_widget/js/imager_widget.js
-----------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------
86 | ERROR | [x] Whitespace found at end of line
97 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
100 | ERROR | [ ] String concat is not required here; use a single string instead
129 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
136 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
138 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found

FILE: imagecroper/imager_widget/imagerjs/imagerjs.js
--------------------------------------------------------------------------------------------------
FOUND 143 ERRORS AFFECTING 129 LINES
--------------------------------------------------------------------------------------------------
6 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
34 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
58 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
128 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
271 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
276 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
285 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
290 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
295 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
300 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
442 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
444 | ERROR | [ ] More than 2 empty lines are not allowed
597 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
631 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
668 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
687 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
870 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
882 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
913 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
924 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
936 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
2099 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
2288 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
2362 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
2398 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
2403 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
2448 | ERROR | [ ] String concat is not required here; use a single string instead
2450 | ERROR | [ ] String concat is not required here; use a single string instead
2451 | ERROR | [ ] String concat is not required here; use a single string instead
2629 | ERROR | [x] Multi-line function declarations must define one parameter per line
2630 | ERROR | [x] Multi-line function declarations must define one parameter per line
2639 | ERROR | [x] Multi-line function declarations must define one parameter per line
2644 | ERROR | [ ] String concat is not required here; use a single string instead
2645 | ERROR | [ ] String concat is not required here; use a single string instead
2646 | ERROR | [ ] String concat is not required here; use a single string instead
2649 | ERROR | [ ] String concat is not required here; use a single string instead
2650 | ERROR | [ ] String concat is not required here; use a single string instead
2673 | ERROR | [x] Multi-line function declarations must define one parameter per line
2674 | ERROR | [x] Multi-line function declarations must define one parameter per line
2679 | ERROR | [ ] String concat is not required here; use a single string instead
2681 | ERROR | [ ] String concat is not required here; use a single string instead
2682 | ERROR | [ ] String concat is not required here; use a single string instead
2685 | ERROR | [ ] String concat is not required here; use a single string instead
2686 | ERROR | [ ] String concat is not required here; use a single string instead
2687 | ERROR | [ ] String concat is not required here; use a single string instead
2688 | ERROR | [ ] String concat is not required here; use a single string instead
2689 | ERROR | [ ] String concat is not required here; use a single string instead
2729 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
2731 | ERROR | [x] Multi-line function declarations must define one parameter per line
2731 | ERROR | [x] Multi-line function declarations must define one parameter per line
2749 | ERROR | [x] Inline control structures are not allowed
2764 | ERROR | [x] Case breaking statements must be followed by a single blank line
2832 | ERROR | [x] Whitespace found at end of line
2836 | ERROR | [x] Whitespace found at end of line
2838 | ERROR | [x] Whitespace found at end of line
2842 | ERROR | [ ] String concat is not required here; use a single string instead
2843 | ERROR | [ ] String concat is not required here; use a single string instead
2846 | ERROR | [ ] String concat is not required here; use a single string instead
2847 | ERROR | [ ] String concat is not required here; use a single string instead
2848 | ERROR | [ ] String concat is not required here; use a single string instead
2849 | ERROR | [ ] String concat is not required here; use a single string instead
2851 | ERROR | [ ] String concat is not required here; use a single string instead
2852 | ERROR | [ ] String concat is not required here; use a single string instead
2855 | ERROR | [ ] String concat is not required here; use a single string instead
2859 | ERROR | [ ] String concat is not required here; use a single string instead
2860 | ERROR | [ ] String concat is not required here; use a single string instead
2861 | ERROR | [ ] String concat is not required here; use a single string instead
2862 | ERROR | [ ] String concat is not required here; use a single string instead
2863 | ERROR | [ ] String concat is not required here; use a single string instead
2968 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
2968 | ERROR | [x] Expected 1 space before opening brace; found 0
3199 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
3366 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
3370 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
3467 | ERROR | [x] Case breaking statements must be followed by a single blank line
3472 | ERROR | [x] Case breaking statements must be followed by a single blank line
3477 | ERROR | [x] Case breaking statements must be followed by a single blank line
3485 | ERROR | [x] Case breaking statements must be followed by a single blank line
3493 | ERROR | [x] Case breaking statements must be followed by a single blank line
3503 | ERROR | [x] Case breaking statements must be followed by a single blank line
3903 | ERROR | [x] Multi-line function declarations must define one parameter per line
3903 | ERROR | [x] Multi-line function declarations must define one parameter per line
3904 | ERROR | [x] Multi-line function declarations must define one parameter per line
3905 | ERROR | [x] Multi-line function declarations must define one parameter per line
3906 | ERROR | [x] Multi-line function declarations must define one parameter per line
3907 | ERROR | [x] Multi-line function declarations must define one parameter per line
3908 | ERROR | [x] Multi-line function declarations must define one parameter per line
4174 | ERROR | [ ] String concat is not required here; use a single string instead
4339 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
4358 | ERROR | [ ] String concat is not required here; use a single string instead
4359 | ERROR | [ ] String concat is not required here; use a single string instead
4362 | ERROR | [ ] String concat is not required here; use a single string instead
4363 | ERROR | [ ] String concat is not required here; use a single string instead
4482 | ERROR | [ ] More than 2 empty lines are not allowed
4586 | ERROR | [x] Multi-line function declarations must define one parameter per line
4629 | ERROR | [x] Multi-line function declarations must define one parameter per line
4717 | ERROR | [x] Inline control structures are not allowed
4719 | ERROR | [x] Inline control structures are not allowed
4760 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
4846 | ERROR | [x] Multi-line function declarations must define one parameter per line
4846 | ERROR | [x] Multi-line function declarations must define one parameter per line
4846 | ERROR | [x] Multi-line function declarations must define one parameter per line
4857 | ERROR | [ ] String concat is not required here; use a single string instead
4861 | ERROR | [ ] String concat is not required here; use a single string instead
4907 | ERROR | [x] Whitespace found at end of line
4927 | ERROR | [x] Inline control structures are not allowed
5074 | ERROR | [ ] String concat is not required here; use a single string instead
5227 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
5237 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
5267 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
5291 | ERROR | [ ] String concat is not required here; use a single string instead
5293 | ERROR | [ ] String concat is not required here; use a single string instead
5551 | ERROR | [ ] String concat is not required here; use a single string instead
5552 | ERROR | [ ] String concat is not required here; use a single string instead
5553 | ERROR | [ ] String concat is not required here; use a single string instead
5554 | ERROR | [ ] String concat is not required here; use a single string instead
5556 | ERROR | [ ] String concat is not required here; use a single string instead
5558 | ERROR | [ ] String concat is not required here; use a single string instead
5560 | ERROR | [ ] String concat is not required here; use a single string instead
5561 | ERROR | [ ] String concat is not required here; use a single string instead
5565 | ERROR | [ ] String concat is not required here; use a single string instead
5570 | ERROR | [x] Expected 1 space before "+"; 0 found
5571 | ERROR | [ ] String concat is not required here; use a single string instead
5578 | ERROR | [ ] String concat is not required here; use a single string instead
5579 | ERROR | [ ] String concat is not required here; use a single string instead
5606 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
5606 | ERROR | [x] Expected 1 space before opening brace; found 0
5613 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
5613 | ERROR | [x] Expected 1 space before opening brace; found 0
5631 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
5631 | ERROR | [x] Expected 1 space before opening brace; found 0
5635 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
5635 | ERROR | [x] Expected 1 space before opening brace; found 0
5890 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
5942 | ERROR | [x] Multi-line function declarations must define one parameter per line
5942 | ERROR | [x] Multi-line function declarations must define one parameter per line
5942 | ERROR | [x] Multi-line function declarations must define one parameter per line
5946 | ERROR | [x] Expected 1 space before "*"; 0 found
5946 | ERROR | [x] Expected 1 space after "*"; 0 found
5946 | ERROR | [x] Expected 1 space before "*"; 0 found
5946 | ERROR | [x] Expected 1 space after "*"; 0 found
6100 | ERROR | [ ] String concat is not required here; use a single string instead
6607 | ERROR | [x] Expected 1 newline at end of file; 2 found

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India rohit-rajput-sahab Uttam Nagar, Delhi

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

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024