X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Ftidy%2FRaggettExternal.php;h=b59423ab3a9b33b9a4c597641f1b2c04b7c46236;hb=12ff4dec05ff8bb1a1910bf6745155b93e1912b5;hp=c21bcf83de9c35a6481aa5583771238183cd0817;hpb=88081365b3604e51922151bb2de3185f6f8b5896;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/tidy/RaggettExternal.php b/includes/tidy/RaggettExternal.php index c21bcf83de..b59423ab3a 100644 --- a/includes/tidy/RaggettExternal.php +++ b/includes/tidy/RaggettExternal.php @@ -17,21 +17,21 @@ class RaggettExternal extends RaggettBase { $opts = ' -utf8'; if ( $stderr ) { - $descriptorspec = array( - 0 => array( 'pipe', 'r' ), - 1 => array( 'file', wfGetNull(), 'a' ), - 2 => array( 'pipe', 'w' ) - ); + $descriptorspec = [ + 0 => [ 'pipe', 'r' ], + 1 => [ 'file', wfGetNull(), 'a' ], + 2 => [ 'pipe', 'w' ] + ]; } else { - $descriptorspec = array( - 0 => array( 'pipe', 'r' ), - 1 => array( 'pipe', 'w' ), - 2 => array( 'file', wfGetNull(), 'a' ) - ); + $descriptorspec = [ + 0 => [ 'pipe', 'r' ], + 1 => [ 'pipe', 'w' ], + 2 => [ 'file', wfGetNull(), 'a' ] + ]; } $readpipe = $stderr ? 2 : 1; - $pipes = array(); + $pipes = []; $process = proc_open( "{$this->config['tidyBin']} -config {$this->config['tidyConfigFile']} " .