Completed
Push — master ( c58c9b...07c22d )
by Jacob
02:25
created
src/PhpQuickProfiler.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -153,19 +153,19 @@
 block discarded – undo
153 153
 	}
154 154
 	
155 155
 	public function getReadableFileSize($size, $retstring = null) {
156
-        	// adapted from code at http://aidanlister.com/repos/v/function.size_readable.php
157
-	       $sizes = array('bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
156
+			// adapted from code at http://aidanlister.com/repos/v/function.size_readable.php
157
+		   $sizes = array('bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
158 158
 
159
-	       if ($retstring === null) { $retstring = '%01.2f %s'; }
159
+		   if ($retstring === null) { $retstring = '%01.2f %s'; }
160 160
 
161 161
 		$lastsizestring = end($sizes);
162 162
 
163 163
 		foreach ($sizes as $sizestring) {
164
-	       	if ($size < 1024) { break; }
165
-	           if ($sizestring != $lastsizestring) { $size /= 1024; }
166
-	       }
167
-	       if ($sizestring == $sizes[0]) { $retstring = '%01d %s'; } // Bytes aren't normally fractional
168
-	       return sprintf($retstring, $size, $sizestring);
164
+		   	if ($size < 1024) { break; }
165
+			   if ($sizestring != $lastsizestring) { $size /= 1024; }
166
+		   }
167
+		   if ($sizestring == $sizes[0]) { $retstring = '%01d %s'; } // Bytes aren't normally fractional
168
+		   return sprintf($retstring, $size, $sizestring);
169 169
 	}
170 170
 	
171 171
 	public function getReadableTime($time) {
Please login to merge, or discard this patch.