Merge "Fix heading selecting over-select"
[lhc/web/wiklou.git] / includes / tidy / RaggettExternal.php
index 1193318..b59423a 100644 (file)
@@ -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 ) ) {