Passed
Pull Request — master (#6)
by Shane
02:19 queued 32s
created
src/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 		$trimmedLines = array_map('trim', explode("\n", $lines));
34 34
 
35 35
 		// remove empty values
36
-		$lines = array_filter($trimmedLines, function ($item) {
36
+		$lines = array_filter($trimmedLines, function($item) {
37 37
 			return $item !== '';
38 38
 		});
39 39
 
Please login to merge, or discard this patch.
src/Conversion.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 	public static function bytesToHumans(int $bytes, $precision = 2): ?string
18 18
 	{
19 19
 		$kilobyte = 1024;
20
-		$megabyte = 1048576; 		// $kilobyte * 1024;
21
-		$gigabyte = 1073741824; 	// $megabyte * 1024;
22
-		$terabyte = 1099511627776; 	// $gigabyte * 1024;
20
+		$megabyte = 1048576; // $kilobyte * 1024;
21
+		$gigabyte = 1073741824; // $megabyte * 1024;
22
+		$terabyte = 1099511627776; // $gigabyte * 1024;
23 23
 
24 24
 		if (($bytes >= 0) && ($bytes < $kilobyte)) {
25 25
 			return $bytes . ' B';
Please login to merge, or discard this patch.