Fix the issues reported by phpcs

Created on 3 May 2023, over 1 year ago
Updated 24 August 2024, 4 months ago

Problem/Motivation

/behat_ui/gulpfile.js
---------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------
18 | ERROR | [x] Expected 0 spaces before opening parenthesis; 1 found
35 | ERROR | [x] Expected 0 spaces before opening parenthesis; 1 found
---------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------

/behat_ui/js/behat-ui.ace-editor.js
----------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------
19 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
20 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
38 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
46 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
50 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
58 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
96 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
113 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

/behat_ui/js/behat-ui.new-test.js
----------------------------------------------------------------------------------------------
FOUND 31 ERRORS AFFECTING 12 LINES
----------------------------------------------------------------------------------------------
32 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
35 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
36 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
47 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
55 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
87 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
122 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
144 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
155 | ERROR | [x] Expected 1 space before "-"; 0 found
155 | ERROR | [x] Expected 1 space after "-"; 0 found
157 | ERROR | [x] Expected 1 space before "<"; 0 found
157 | ERROR | [x] Expected 1 space after "<"; 0 found
157 | ERROR | [x] Expected 1 space before "="; 0 found
157 | ERROR | [x] Expected 1 space after "="; 0 found
157 | ERROR | [x] Expected 1 space before "="; 0 found
157 | ERROR | [x] Expected 1 space after "="; 0 found
157 | ERROR | [x] Expected 1 space before "="; 0 found
157 | ERROR | [x] Expected 1 space after "="; 0 found
157 | ERROR | [x] Expected 1 space after "/"; 0 found
157 | ERROR | [x] Expected 1 space before ">"; 0 found
157 | ERROR | [x] Expected 1 space after ">"; 0 found
161 | ERROR | [x] Expected 1 space before "<"; 0 found
161 | ERROR | [x] Expected 1 space after "<"; 0 found
161 | ERROR | [x] Expected 1 space before "="; 0 found
161 | ERROR | [x] Expected 1 space after "="; 0 found
161 | ERROR | [x] Expected 1 space before "="; 0 found
161 | ERROR | [x] Expected 1 space after "="; 0 found
161 | ERROR | [x] Expected 1 space after "/"; 0 found
161 | ERROR | [x] Expected 1 space before ">"; 0 found
161 | ERROR | [x] Expected 1 space after ">"; 0 found
211 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 31 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

/behat_ui/js/behat-ui.run-tests.js
---------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 space before "-"; 0 found
12 | ERROR | [x] Expected 1 space after "-"; 0 found
12 | ERROR | [x] Expected 1 space before "/"; 0 found
12 | ERROR | [x] Expected 1 space after "/"; 0 found
12 | ERROR | [x] Expected 1 space before "?"; 0 found
12 | ERROR | [x] Expected 1 space after "?"; 0 found
31 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
40 | ERROR | [x] Expected 1 space before "-"; 0 found
40 | ERROR | [x] Expected 1 space after "-"; 0 found
40 | ERROR | [x] Expected 1 space before "/"; 0 found
40 | ERROR | [x] Expected 1 space after "/"; 0 found
40 | ERROR | [x] Expected 1 space before "?"; 0 found
40 | ERROR | [x] Expected 1 space after "?"; 0 found
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------

/behat_ui/src/Form/BehatUiNew.php
---------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------
244 | ERROR | [x] Short array syntax must be used to define arrays
376 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

/behat_ui/src/Controller/BehatUiController.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
344 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY

Steps to reproduce

vendor/bin/phpcs --standard="Drupal,DrupalPractice" -n --extensions="php,module,inc,install,test,profile,theme,info,js" behat_ui/

๐Ÿ“Œ Task
Status

Needs work

Version

5.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Nishant

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

Production build 0.71.5 2024