Short Array Syntax
Categories
Component ID
2696073
Component name
Short Array Syntax
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
367
Component created
Component changed
Component body
Converts PHP's array() syntax to PHP 5.4's short array syntax[] using Thomas Bachem's PHP 5.4 Short Array Syntax Converter.
Usage
Execute drush short-array-syntax example to convert all PHP's array() syntax to PHP 5.4's short array syntax[] within *.inc, *.install, *.module, and *.php files.
Installation
# To install the 'short-array-syntax' globally use...
drush pm-download "short_array_syntax" --destination=~/.drush;
# To install the 'short-array-syntax' within a Drupal website use...
cd DRUPAL_SITE;
drush pm-download "short_array_syntax";
Notes
- The
convert.phpscript will automatically be downloaded from https://github.com/thomasbachem/php-short-array-syntax-converter to the 'shortarraysyntax' directory the first time this command is executed.
