Problem/Motivation

$ phpcs --standard=Drupal,DrupalPractice .

FILE: /remp/css/remp.css
-------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------
  9 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 17 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 19 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------


FILE: /remp/src/Controller/RempContentController.php
---------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------


FILE: /remp/src/Form/RempLoginForm.php
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------
 132 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
 132 | WARNING | [x] There must be no blank line following an inline comment
 132 | WARNING | [ ] There must be no blank line following an inline comment
-------------------------------------------------------------------------------------


FILE: /remp/js/campaign.js
----------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] Missing file doc comment
  3 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 32 | ERROR | [x] Inline comments must start with a capital letter
 32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 42 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
----------------------------------------------------------------------------------------------------------------------------


FILE: /remp/js/beam.js
----------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] Missing file doc comment
  3 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 33 | ERROR | [x] Inline comments must start with a capital letter
 33 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 45 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 57 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------------


FILE: /remp/js/remp.js
----------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
  1 | ERROR | [x] Missing file doc comment
 21 | ERROR | [x] Expected 1 space before "/"; 0 found
 21 | ERROR | [x] Expected 1 space after "/"; 0 found
 23 | ERROR | [x] Expected 1 space before "/"; 0 found
 23 | ERROR | [x] Expected 1 space after "/"; 0 found
----------------------------------------------------------------------

Proposed resolution

Fix the errors as per Drupal coding standards.

User interface changes

NONE

API changes

NONE

Data model changes

NONE

CommentFileSizeAuthor
#2 3166531-2.patch4.56 KBankithashetty

Comments

ankithashetty created an issue. See original summary.

ankithashetty’s picture

Status: Active » Needs review
StatusFileSize
new4.56 KB

Made the required changes as per the Drupal coding standard in the following patch file, kindly review.

Thank you!

lbesenyei’s picture

Thank you ankithashetty, I have merged your commit.

lbesenyei’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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