@@ -56,9 +56,9 @@ public function __construct(Filesystem $filesystem)
5656 protected function configure ()
5757 {
5858 $ this
59- ->setDefinition (array (
59+ ->setDefinition ([
6060 new InputArgument ('target ' , InputArgument::OPTIONAL , 'The target directory ' , null ),
61- ) )
61+ ] )
6262 ->addOption ('symlink ' , null , InputOption::VALUE_NONE , 'Symlinks the assets instead of copying it ' )
6363 ->addOption ('relative ' , null , InputOption::VALUE_NONE , 'Make relative symlinks ' )
6464 ->addOption ('no-cleanup ' , null , InputOption::VALUE_NONE , 'Do not remove the assets of the bundles that no longer exist ' )
@@ -125,10 +125,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
125125
126126 $ io ->newLine ();
127127
128- $ rows = array () ;
128+ $ rows = [] ;
129129 $ copyUsed = false ;
130130 $ exitCode = 0 ;
131- $ validAssetDirs = array () ;
131+ $ validAssetDirs = [] ;
132132 /** @var BundleInterface $bundle */
133133 foreach ($ kernel ->getBundles () as $ bundle ) {
134134 if (!is_dir ($ originDir = $ bundle ->getPath ().'/Resources/public ' )) {
@@ -161,13 +161,13 @@ protected function execute(InputInterface $input, OutputInterface $output)
161161 }
162162
163163 if ($ method === $ expectedMethod ) {
164- $ rows [] = array ( sprintf ('<fg=green;options=bold>%s</> ' , '\\' === \DIRECTORY_SEPARATOR ? 'OK ' : "\xE2\x9C\x94" /* HEAVY CHECK MARK (U+2714) */ ), $ message , $ method) ;
164+ $ rows [] = [ sprintf ('<fg=green;options=bold>%s</> ' , '\\' === \DIRECTORY_SEPARATOR ? 'OK ' : "\xE2\x9C\x94" /* HEAVY CHECK MARK (U+2714) */ ), $ message , $ method] ;
165165 } else {
166- $ rows [] = array ( sprintf ('<fg=yellow;options=bold>%s</> ' , '\\' === \DIRECTORY_SEPARATOR ? 'WARNING ' : '! ' ), $ message , $ method) ;
166+ $ rows [] = [ sprintf ('<fg=yellow;options=bold>%s</> ' , '\\' === \DIRECTORY_SEPARATOR ? 'WARNING ' : '! ' ), $ message , $ method] ;
167167 }
168168 } catch (\Exception $ e ) {
169169 $ exitCode = 1 ;
170- $ rows [] = array ( sprintf ('<fg=red;options=bold>%s</> ' , '\\' === \DIRECTORY_SEPARATOR ? 'ERROR ' : "\xE2\x9C\x98" /* HEAVY BALLOT X (U+2718) */ ), $ message , $ e ->getMessage ()) ;
170+ $ rows [] = [ sprintf ('<fg=red;options=bold>%s</> ' , '\\' === \DIRECTORY_SEPARATOR ? 'ERROR ' : "\xE2\x9C\x98" /* HEAVY BALLOT X (U+2718) */ ), $ message , $ e ->getMessage ()] ;
171171 }
172172 }
173173 // remove the assets of the bundles that no longer exist
@@ -177,7 +177,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
177177 }
178178
179179 if ($ rows ) {
180- $ io ->table (array ( '' , 'Bundle ' , 'Method / Error ' ) , $ rows );
180+ $ io ->table ([ '' , 'Bundle ' , 'Method / Error ' ] , $ rows );
181181 }
182182
183183 if (0 !== $ exitCode ) {
0 commit comments