drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

[template] Use short array syntax in all templates

Open s-robertson opened this issue 9 years ago • 1 comments

Problem/Motivation

Currently the templates in Drupal Console use a combination of the short and long array syntax. Sometimes, different syntaxes are even used in the same file. For consistency, one syntax should be used across all templates.

Short syntax makes the most sense as the Drupal core contributors have already decided to switch to short syntax for their coding standards and, as of 8.3, all of core's code has been switched to the short syntax: https://www.drupal.org/node/2776975

Solution

There doesn't appear to be too many places in the code where the long array syntax is being used, so it should be fairly straightforward to convert those.

s-robertson avatar Mar 15 '17 20:03 s-robertson

Nice I am still waiting for Drupal to adopt PRS-2 but short array syntax is nice for now ;)

jmolivas avatar Mar 15 '17 20:03 jmolivas