@@ -213,7 +213,7 @@ public static function getAllIniFiles()
213213 }
214214 }
215215
216- $ paths = array (( string ) php_ini_loaded_file ()) ;
216+ $ paths = [( string ) php_ini_loaded_file ()] ;
217217 $ scanned = php_ini_scanned_files ();
218218
219219 if ($ scanned !== false ) {
@@ -241,14 +241,14 @@ public static function getRestartSettings()
241241 return null ;
242242 }
243243
244- return array (
244+ return [
245245 'tmpIni ' => $ envArgs [0 ],
246246 'scannedInis ' => (bool ) $ envArgs [1 ],
247247 'scanDir ' => '* ' === $ envArgs [2 ] ? false : $ envArgs [2 ],
248248 'phprc ' => '* ' === $ envArgs [3 ] ? false : $ envArgs [3 ],
249249 'inis ' => explode (PATH_SEPARATOR , $ envArgs [4 ]),
250250 'skipped ' => $ envArgs [5 ],
251- ) ;
251+ ] ;
252252 }
253253
254254 /**
@@ -326,7 +326,7 @@ private function doRestart(array $command)
326326 }
327327 }
328328
329- $ process = proc_open ($ cmd , array () , $ pipes );
329+ $ process = proc_open ($ cmd , [] , $ pipes );
330330 if (is_resource ($ process )) {
331331 $ exitCode = proc_close ($ process );
332332 }
@@ -447,15 +447,15 @@ private function writeTmpIni(array $iniFiles, $tmpDir, &$error)
447447 */
448448 private function getCommand ()
449449 {
450- $ php = array ( PHP_BINARY ) ;
450+ $ php = [ PHP_BINARY ] ;
451451 $ args = array_slice ($ _SERVER ['argv ' ], 1 );
452452
453453 if (!$ this ->persistent ) {
454454 // Use command-line options
455455 array_push ($ php , '-n ' , '-c ' , $ this ->tmpIni );
456456 }
457457
458- return array_merge ($ php , array ( $ this ->script ) , $ args );
458+ return array_merge ($ php , [ $ this ->script ] , $ args );
459459 }
460460
461461 /**
@@ -486,13 +486,13 @@ private function setEnvironment($scannedInis, array $iniFiles)
486486 }
487487
488488 // Flag restarted process and save values for it to use
489- $ envArgs = array (
489+ $ envArgs = [
490490 self ::RESTART_ID ,
491491 $ this ->loaded ,
492492 (int ) $ scannedInis ,
493493 false === $ scanDir ? '* ' : $ scanDir ,
494494 false === $ phprc ? '* ' : $ phprc ,
495- ) ;
495+ ] ;
496496
497497 return putenv ($ this ->envAllowXdebug .'= ' .implode ('| ' , $ envArgs ));
498498 }
@@ -575,14 +575,14 @@ private function checkMainScript()
575575 */
576576 private function setEnvRestartSettings ($ envArgs )
577577 {
578- $ settings = array (
578+ $ settings = [
579579 php_ini_loaded_file (),
580580 $ envArgs [2 ],
581581 $ envArgs [3 ],
582582 $ envArgs [4 ],
583583 getenv ($ this ->envOriginalInis ),
584584 self ::$ skipped ,
585- ) ;
585+ ] ;
586586
587587 Process::setEnv (self ::RESTART_SETTINGS , implode ('| ' , $ settings ));
588588 }
0 commit comments