Skip to content

Commit

Permalink
short array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cordoval committed Jul 12, 2014
1 parent 09ea076 commit 7bf8147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ require_once __DIR__.'/src/Decoupling/Fixer/ShortArraySyntaxFixer.php';

$finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('README.md')
->notName('.php_cs')
->notName('composer.*')
->notName('phpunit.xml')
->exclude('app')
Expand All @@ -16,7 +15,7 @@ $finder = Symfony\CS\Finder\DefaultFinder::create()
return Symfony\CS\Config\Config::create()
->addCustomFixer(new Decoupling\Fixer\ShortArraySyntaxFixer)
->fixers(
array(
[
'encoding',
'linefeed',
'indentation',
Expand All @@ -39,7 +38,8 @@ return Symfony\CS\Config\Config::create()
'eof_ending',
'one_class_per_file',
'unused_use',
)
'short_array_syntax'
]
)
->finder($finder)
;
2 changes: 1 addition & 1 deletion src/Collabs/ZipperZippy.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function zipAndBreak()

public function unzipAndJoin()
{
foreach (array('archive.zip', 'archive2.zip', 'archive3.zip') as $path) {
foreach (['archive.zip', 'archive2.zip', 'archive3.zip'] as $path) {
$archive = $zipAdapter->open($path);
}

Expand Down

0 comments on commit 7bf8147

Please sign in to comment.