@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | private function getApplicationSize() |
62 | 62 | { |
63 | - $size = cache()->remember('foundation.app.size', 5, function () { |
|
63 | + $size = cache()->remember('foundation.app.size', 5, function() { |
|
64 | 64 | return $this->getFolderSize(base_path()); |
65 | 65 | }); |
66 | 66 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $tb = $gb * 1024; |
102 | 102 | |
103 | 103 | if (($bytes >= 0) && ($bytes < $kb)) { |
104 | - return $bytes . ' B'; |
|
104 | + return $bytes.' B'; |
|
105 | 105 | } |
106 | 106 | elseif (($bytes >= $kb) && ($bytes < $mb)) { |
107 | 107 | return ceil($bytes / $kb).' KB'; |
@@ -102,17 +102,13 @@ |
||
102 | 102 | |
103 | 103 | if (($bytes >= 0) && ($bytes < $kb)) { |
104 | 104 | return $bytes . ' B'; |
105 | - } |
|
106 | - elseif (($bytes >= $kb) && ($bytes < $mb)) { |
|
105 | + } elseif (($bytes >= $kb) && ($bytes < $mb)) { |
|
107 | 106 | return ceil($bytes / $kb).' KB'; |
108 | - } |
|
109 | - elseif (($bytes >= $mb) && ($bytes < $gb)) { |
|
107 | + } elseif (($bytes >= $mb) && ($bytes < $gb)) { |
|
110 | 108 | return ceil($bytes / $mb).' MB'; |
111 | - } |
|
112 | - elseif (($bytes >= $gb) && ($bytes < $tb)) { |
|
109 | + } elseif (($bytes >= $gb) && ($bytes < $tb)) { |
|
113 | 110 | return ceil($bytes / $gb).' GB'; |
114 | - } |
|
115 | - elseif ($bytes >= $tb) { |
|
111 | + } elseif ($bytes >= $tb) { |
|
116 | 112 | return ceil($bytes / $tb).' TB'; |
117 | 113 | } |
118 | 114 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | private function checkSslInstalled() |
51 | 51 | { |
52 | - return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? true : false; |
|
52 | + return ( ! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? true : false; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $modules = apache_get_modules(); |
69 | 69 | $requirements = array_combine($requirements, $requirements); |
70 | 70 | |
71 | - return collect($requirements)->transform(function ($requirement) use ($modules) { |
|
71 | + return collect($requirements)->transform(function($requirement) use ($modules) { |
|
72 | 72 | return in_array($requirement, $modules); |
73 | 73 | }); |
74 | 74 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | private function checkPhpRequirements() |
50 | 50 | { |
51 | - return collect(['openssl', 'pdo', 'mbstring', 'tokenizer', 'xml'])->mapWithKeys(function ($requirement) { |
|
51 | + return collect(['openssl', 'pdo', 'mbstring', 'tokenizer', 'xml'])->mapWithKeys(function($requirement) { |
|
52 | 52 | return [$requirement => extension_loaded($requirement)]; |
53 | 53 | }); |
54 | 54 | } |