From 7bf8147aa9fe8f5981d5b890b9dfa7072a1d484f Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Sat, 12 Jul 2014 09:18:37 -0500 Subject: [PATCH] short array syntax --- .php_cs | 6 +++--- src/Collabs/ZipperZippy.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.php_cs b/.php_cs index 9ed370d..9210c5b 100644 --- a/.php_cs +++ b/.php_cs @@ -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') @@ -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', @@ -39,7 +38,8 @@ return Symfony\CS\Config\Config::create() 'eof_ending', 'one_class_per_file', 'unused_use', - ) + 'short_array_syntax' + ] ) ->finder($finder) ; diff --git a/src/Collabs/ZipperZippy.php b/src/Collabs/ZipperZippy.php index 782bd08..051a2bd 100644 --- a/src/Collabs/ZipperZippy.php +++ b/src/Collabs/ZipperZippy.php @@ -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); }