Convert all array() syntax to []
[lhc/web/wiklou.git] / includes / diff / DiffFormatter.php
index 23e39ea..4b44b3c 100644 (file)
@@ -63,7 +63,7 @@ abstract class DiffFormatter {
 
                $xi = $yi = 1;
                $block = false;
-               $context = array();
+               $context = [];
 
                $nlead = $this->leadingContextLines;
                $ntrail = $this->trailingContextLines;
@@ -94,7 +94,7 @@ abstract class DiffFormatter {
                                        $context = array_slice( $context, count( $context ) - $nlead );
                                        $x0 = $xi - count( $context );
                                        $y0 = $yi - count( $context );
-                                       $block = array();
+                                       $block = [];
                                        if ( $context ) {
                                                $block[] = new DiffOpCopy( $context );
                                        }