Merge "Fix a PHP 5.5 TODO"
[lhc/web/wiklou.git] / includes / libs / RiffExtractor.php
index f987c59..3a8b55e 100644 (file)
@@ -49,11 +49,11 @@ class RiffExtractor {
                }
 
                // Create basic info structure
-               $info = array(
+               $info = [
                        'fileSize' => self::extractUInt32( $fileSize ),
                        'fourCC' => $fourCC,
-                       'chunks' => array(),
-               );
+                       'chunks' => [],
+               ];
                $numberOfChunks = 0;
 
                // Find out the chunks
@@ -72,11 +72,11 @@ class RiffExtractor {
                        $intChunkSize = self::extractUInt32( $chunkSize );
 
                        // Add chunk info to the info structure
-                       $info['chunks'][] = array(
+                       $info['chunks'][] = [
                                'fourCC' => $chunkFourCC,
                                'start' => $chunkStart,
                                'size' => $intChunkSize
-                       );
+                       ];
 
                        // Uneven chunks have padding bytes
                        $padding = $intChunkSize % 2;