Skip to content

Resolve #2774071: Fix Drupal.Arrays, SlevomatCodingStandard.PHP.ShortList.LongListUsed

Issue #2774071 Fix

  • The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration)
  • Short array syntax must be used to define arrays (Drupal.Arrays.DisallowLongArraySyntax.Found)
  • A comma should follow the last multiline array item. (Drupal.Arrays.Array.CommaLastItem)
  • Array indentation error (Drupal.Arrays.Array.ArrayIndentation)
  • list(...) is forbidden, use [...] instead. (SlevomatCodingStandard.PHP.ShortList.LongListUsed)
Edited by Nikolay Shapovalov

Merge request reports