Fix code standards

Created on 23 December 2021, almost 3 years ago
Updated 24 November 2023, 12 months ago

There are some code standard issues:

FILE: src/Form/SimpleAutologoutSettingsForm.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
 75 | ERROR | [x] Equals sign not aligned correctly; expected 1 space
    |       |     but found 2 spaces
 91 | ERROR | [x] Whitespace found at end of line


FILE: src/Controller/SimpleAutologoutController.php
----------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------
 31 | ERROR | [x] Missing function doc comment
 36 | ERROR | [x] Missing function doc comment
 47 | ERROR | [x] Whitespace found at end of line
 58 | ERROR | [x] Expected 1 space after IF keyword; 0 found
 68 | ERROR | [x] Whitespace found at end of line
 71 | ERROR | [x] Missing function doc comment
 76 | ERROR | [x] Expected 1 blank line after function; 0 found
 77 | ERROR | [x] The closing brace for the class must have an empty
    |       |     line before it


FILE: js/simpleautologout.js
----------------------------------------------------------------------
FOUND 19 ERRORS AFFECTING 17 LINES
----------------------------------------------------------------------
  4 | ERROR | [x] There must be exactly one blank line after the file
    |       |     comment
  5 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 19 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | ERROR | [x] Whitespace found at end of line
 31 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 36 | ERROR | [x] Expected 1 space after IF keyword; 0 found
 39 | ERROR | [x] Expected 1 space after IF keyword; 0 found
 43 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 49 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 56 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 58 | ERROR | [x] Expected 1 space after IF keyword; 0 found
 62 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 68 | ERROR | [x] Inline comments must start with a capital letter
 68 | ERROR | [x] Inline comments must end in full-stops, exclamation
    |       |     marks, colons, question marks, or closing
    |       |     parentheses
 69 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 70 | ERROR | [x] Expected 1 space after IF keyword; 0 found
 73 | ERROR | [x] Whitespace found at end of line
 87 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 87 | ERROR | [x] Expected 1 space before opening brace; found 0


FILE: simpleautologout.module
----------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
  1 | ERROR | [x] Missing file doc comment
 74 | ERROR | [ ] Type hint "array" missing for $element
 74 | ERROR | [ ] Type hint "array" missing for $settings
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine AstonVictor

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

Merge Requests

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.71.5 2024