Passed
Push — master ( 706253...6eb40c )
by Jan
14:35
created
src/Twig/FormatExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@
 block discarded – undo
117 117
      */
118 118
     public function formatBytes(int $bytes, int $precision = 2): string
119 119
     {
120
-        $size = ['B','kB','MB','GB','TB','PB','EB','ZB','YB'];
120
+        $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
121 121
         $factor = floor((strlen((string) $bytes) - 1) / 3);
122
-        return sprintf("%.{$precision}f", $bytes / pow(1024, $factor)) . ' ' . @$size[$factor];
122
+        return sprintf("%.{$precision}f", $bytes / pow(1024, $factor)).' '.@$size[$factor];
123 123
     }
124 124
 }
Please login to merge, or discard this patch.