@@ -35,14 +35,14 @@ discard block |
||
| 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 |
||
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - return (int)$memoryLimit; |
|
| 117 | + return (int) $memoryLimit; |
|
| 118 | 118 | } |
| 119 | 119 | } |