Passed
Push — develop ( b6bdf2...9c38b5 )
by Andrew
06:11 queued 18s
created
src/recommendations/MemoryLimit.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function evaluate()
37 37
     {
38
-        $phpMemoryLimit = (int)$this->memoryLimit();
39
-        $this->sample->craftTotalMemory = (int)$this->sample->craftTotalMemory;
38
+        $phpMemoryLimit = (int) $this->memoryLimit();
39
+        $this->sample->craftTotalMemory = (int) $this->sample->craftTotalMemory;
40 40
         if ($phpMemoryLimit && $this->sample->craftTotalMemory) {
41 41
             $ratio = $phpMemoryLimit / $this->sample->craftTotalMemory;
42
-            $displayCraftTotalMemory = (($this->sample->craftTotalMemory / 1024) / 1024) . 'M';
43
-            $displayPhpMemoryLimit = (($phpMemoryLimit / 1024) / 1024) . 'M';
44
-            $displayCraftMinMemory = ((self::MIN_CRAFT_MEMORY / 1024) / 1024) . 'M';
45
-            $displayCraftMaxMemory = ((self::MAX_CRAFT_MEMORY / 1024) / 1024) . 'M';
42
+            $displayCraftTotalMemory = (($this->sample->craftTotalMemory / 1024) / 1024).'M';
43
+            $displayPhpMemoryLimit = (($phpMemoryLimit / 1024) / 1024).'M';
44
+            $displayCraftMinMemory = ((self::MIN_CRAFT_MEMORY / 1024) / 1024).'M';
45
+            $displayCraftMaxMemory = ((self::MAX_CRAFT_MEMORY / 1024) / 1024).'M';
46 46
             $this->summary = Craft::t(
47 47
                 'webperf',
48 48
                 'Check the `memory_limit` setting in your `php.ini` file',
@@ -114,6 +114,6 @@  discard block
 block discarded – undo
114 114
             }
115 115
         }
116 116
 
117
-        return (int)$memoryLimit;
117
+        return (int) $memoryLimit;
118 118
     }
119 119
 }
Please login to merge, or discard this patch.