Fix Drupal Coding Standard Errors
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3166531. -->
Reported by: [ankithashetty](https://www.drupal.org/user/3602225)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<pre>$ phpcs --standard=Drupal,DrupalPractice .<br><br>FILE: /remp/css/remp.css<br>-------------------------------------------------------------------------------------<br>FOUND 3 ERRORS AFFECTING 3 LINES<br>-------------------------------------------------------------------------------------<br> 9 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found<br> 17 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found<br> 19 | ERROR | [x] Expected 1 newline at end of file; 0 found<br>-------------------------------------------------------------------------------------<br><br><br>FILE: /remp/src/Controller/RempContentController.php<br>---------------------------------------------------------------------------------------------------<br>FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE<br>---------------------------------------------------------------------------------------------------<br><br><br>FILE: /remp/src/Form/RempLoginForm.php<br>-------------------------------------------------------------------------------------<br>FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE<br>-------------------------------------------------------------------------------------<br> 132 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters<br> 132 | WARNING | [x] There must be no blank line following an inline comment<br> 132 | WARNING | [ ] There must be no blank line following an inline comment<br>-------------------------------------------------------------------------------------<br><br><br>FILE: /remp/js/campaign.js<br>----------------------------------------------------------------------------------------------------------------------------<br>FOUND 5 ERRORS AFFECTING 4 LINES<br>----------------------------------------------------------------------------------------------------------------------------<br> 1 | ERROR | [x] Missing file doc comment<br> 3 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found<br> 32 | ERROR | [x] Inline comments must start with a capital letter<br> 32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses<br> 42 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses<br>----------------------------------------------------------------------------------------------------------------------------<br><br><br>FILE: /remp/js/beam.js<br>----------------------------------------------------------------------------------------------------------------------------<br>FOUND 6 ERRORS AFFECTING 5 LINES<br>----------------------------------------------------------------------------------------------------------------------------<br> 1 | ERROR | [x] Missing file doc comment<br> 3 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found<br> 33 | ERROR | [x] Inline comments must start with a capital letter<br> 33 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses<br> 45 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found<br> 57 | ERROR | [x] Expected 1 newline at end of file; 0 found<br>----------------------------------------------------------------------------------------------------------------------------<br><br><br>FILE: /remp/js/remp.js<br>----------------------------------------------------------------------<br>FOUND 5 ERRORS AFFECTING 3 LINES<br>----------------------------------------------------------------------<br> 1 | ERROR | [x] Missing file doc comment<br> 21 | ERROR | [x] Expected 1 space before "/"; 0 found<br> 21 | ERROR | [x] Expected 1 space after "/"; 0 found<br> 23 | ERROR | [x] Expected 1 space before "/"; 0 found<br> 23 | ERROR | [x] Expected 1 space after "/"; 0 found<br>----------------------------------------------------------------------</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Fix the errors as per Drupal coding standards.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>NONE</p>
<h3 id="summary-api-changes">API changes</h3>
<p>NONE</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>NONE</p>
issue
GitLab AI Context
Project: project/remp
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/remp/-/raw/8.x-1.x/README.md — project overview and setup
Repository: https://git.drupalcode.org/project/remp
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD