Fix Coding Standards

Created on 25 January 2020, over 4 years ago
Updated 22 January 2023, over 1 year ago

> 8.x-1.2 > phpcs modules/contrib/scrollup

FILE: /public_html/drupalcontrib/modules/contrib/scrollup/js/scrollup_top.js
-----------------------------------------------------------------------------------------
FOUND 33 ERRORS AFFECTING 21 LINES
-----------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
5 | ERROR | [x] Whitespace found at end of line
6 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
6 | ERROR | [x] Expected 1 space before opening brace; found 0
7 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
7 | ERROR | [x] Expected 1 space after IF keyword; 0 found
7 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
8 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
9 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
9 | ERROR | [x] Expected newline after closing brace
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
12 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
12 | ERROR | [x] Whitespace found at end of line
13 | ERROR | [x] Expected 1 space before "+"; 0 found
13 | ERROR | [x] Expected 1 space after "+"; 0 found
13 | ERROR | [x] Expected 1 space before "+"; 0 found
13 | ERROR | [x] Expected 1 space after "+"; 0 found
17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
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
19 | ERROR | [x] Whitespace found at end of line
22 | ERROR | [x] Expected newline after closing brace
25 | ERROR | [x] Whitespace found at end of line
26 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
26 | ERROR | [x] Expected 1 space before opening brace; found 0
28 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
28 | ERROR | [x] Expected 1 space before opening brace; found 0
31 | ERROR | [x] Whitespace found at end of line
35 | ERROR | [x] Expected newline after closing brace
39 | ERROR | [x] Whitespace found at end of line
40 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
40 | ERROR | [x] Expected 1 space before opening brace; found 0
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 33 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: /public_html/drupalcontrib/modules/contrib/scrollup/src/Form/ScrollupForm.php
------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------
44 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
53 | ERROR | [x] There should be no white space after an opening "("
53 | ERROR | [x] There should be no white space before a closing ")"
62 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
105 | ERROR | [x] Expected 1 space before opening brace; found 0
108 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
108 | ERROR | [x] Expected 1 space before "=>"; 0 found
108 | ERROR | [x] Expected 1 space before "=>"; 0 found
108 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
109 | ERROR | [x] Expected 1 space before "="; 0 found
120 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
120 | ERROR | [x] Whitespace found at end of line
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

Time: 119ms; Memory: 8MB

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India adhershmnair Trivandrum

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