This PR normalises the declaration of arrays throughout the project, and adds this to the php-cs-fixer rules. I've chosen "short" by default, but happy to change the PR to use "long" if preferred.
16 lines
291 B
PHP
16 lines
291 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__ . '/src')
|
|
->in(__DIR__ . '/tests')
|
|
;
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setUsingCache(false)
|
|
->setRules([
|
|
'@PSR2' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
])
|
|
->setFinder($finder)
|
|
;
|