X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ftidy%2FRaggettExternal.php;h=b59423ab3a9b33b9a4c597641f1b2c04b7c46236;hb=3431ab6d07a119e928aa1538a49984e790dc6ce7;hp=1193318891efabb41de4f152e5f5217637e4d807;hpb=02ec1ea797cf014cd007d81dfeec545f6e560f2d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/tidy/RaggettExternal.php b/includes/tidy/RaggettExternal.php index 1193318891..b59423ab3a 100644 --- a/includes/tidy/RaggettExternal.php +++ b/includes/tidy/RaggettExternal.php @@ -17,27 +17,27 @@ 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']} " . $this->config['tidyCommandLine'] . $opts, $descriptorspec, $pipes ); - //NOTE: At least on linux, the process will be created even if tidy is not installed. + // NOTE: At least on linux, the process will be created even if tidy is not installed. // This means that missing tidy will be treated as a validation failure. if ( is_resource( $process ) ) {