Completed
Push — master ( feff07...2c2488 )
by ARCANEDEV
05:46
created
src/ViewComposers/System/ApplicationInfoComposer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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';
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,17 +102,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ViewComposers/System/ServerRequirementsComposer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/ViewComposers/System/PhpInfoComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.