Whitespace found at end of line
(Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
Unused use statement
(Drupal.Classes.UnusedUseStatement.UnusedUse)
There must be no blank line following an inline comment
(Drupal.Commenting.InlineComment.SpacingAfter)
Expected 1 space after IF keyword; 0 found
(Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
No space found before comment text; expected "// '#description' => $this->t("Server Url.")," but found "//'#description' => $this->t("Server Url."),"
(Drupal.Commenting.InlineComment.NoSpaceBefore)
Array indentation error, expected 10 spaces but found 8
(Drupal.Arrays.Array.ArrayIndentation)
Expected 1 space after FOREACH keyword; 0 found
(Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
There must be exactly one newline after the class comment
(Drupal.Commenting.ClassComment.SpacingAfter)
Short array syntax must be used to define arrays
(Drupal.Arrays.DisallowLongArraySyntax.Found)
The PHP open tag must be followed by exactly one blank line
(Drupal.WhiteSpace.OpenTagNewline.BlankLine)
A comma should follow the last multiline array item. Found: '
'
(Drupal.Arrays.Array.CommaLastItem)
TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
(Generic.PHP.UpperCaseConstant.Found)
Comments
Comment #2
omrmankarHi,
I have created a patch that is working according to the phpcs standards and resolves all errors.
The patch is attached.
Comment #3
riddhi.addweb commentedI tried to apply the patch in 9.5x and it had applied cleanly, but after applying the patch the error is not resolved. Let me know if I can test this in any different version.