@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | // See if there are too many database queries |
38 | 38 | if ($this->sample->craftTotalMs >= self::MAX_TOTAL_TIME) { |
39 | - $displayCraftTotalMs = ($this->sample->craftTotalMs / 1000) . 's'; |
|
39 | + $displayCraftTotalMs = ($this->sample->craftTotalMs / 1000).'s'; |
|
40 | 40 | $this->hasRecommendation = true; |
41 | 41 | $this->summary = Craft::t( |
42 | 42 | 'webperf', |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | // See if there are too many database queries |
38 | 38 | if ($this->sample->craftTwigMs >= self::MAX_TWIG_TIME) { |
39 | - $displayCraftTwigMs = ($this->sample->craftTwigMs / 1000) . 's'; |
|
39 | + $displayCraftTwigMs = ($this->sample->craftTwigMs / 1000).'s'; |
|
40 | 40 | $this->hasRecommendation = true; |
41 | 41 | $this->summary = Craft::t( |
42 | 42 | 'webperf', |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | // See if there are too many database queries |
38 | 38 | if ($this->sample->craftDbMs >= self::MAX_QUERY_TIME) { |
39 | - $displayCraftDbMs = ($this->sample->craftDbMs / 1000) . 's'; |
|
39 | + $displayCraftDbMs = ($this->sample->craftDbMs / 1000).'s'; |
|
40 | 40 | $this->hasRecommendation = true; |
41 | 41 | $this->summary = Craft::t( |
42 | 42 | 'webperf', |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | // See if there are too many database queries |
38 | 38 | if ($this->sample->domInteractive >= self::MAX_DOM_INTERACTIVE_TIME) { |
39 | - $displayDomInteractive = ($this->sample->domInteractive / 1000) . 's'; |
|
39 | + $displayDomInteractive = ($this->sample->domInteractive / 1000).'s'; |
|
40 | 40 | $this->hasRecommendation = true; |
41 | 41 | $this->summary = Craft::t( |
42 | 42 | 'webperf', |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | // See if there are too many database queries |
38 | 38 | if ($this->sample->firstByte >= self::MAX_TOTAL_TIME) { |
39 | - $displayFirstByte = ($this->sample->firstByte / 1000) . 's'; |
|
39 | + $displayFirstByte = ($this->sample->firstByte / 1000).'s'; |
|
40 | 40 | $this->hasRecommendation = true; |
41 | 41 | $this->summary = Craft::t( |
42 | 42 | 'webperf', |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | // See if there are too many database queries |
38 | 38 | if ($this->sample->firstContentfulPaint >= self::MAX_FIRST_CONTENTFUL_PAINT_TIME) { |
39 | - $displayFirstContentfulPaint = ($this->sample->firstContentfulPaint / 1000) . 's'; |
|
39 | + $displayFirstContentfulPaint = ($this->sample->firstContentfulPaint / 1000).'s'; |
|
40 | 40 | $this->hasRecommendation = true; |
41 | 41 | $this->summary = Craft::t( |
42 | 42 | 'webperf', |
@@ -38,10 +38,10 @@ |
||
38 | 38 | $phpMemoryLimit = $this->memoryLimit(); |
39 | 39 | if ($phpMemoryLimit) { |
40 | 40 | $ratio = $phpMemoryLimit / $this->sample->craftTotalMemory; |
41 | - $displayCraftTotalMemory = (($this->sample->craftTotalMemory / 1024) / 1024) . 'M'; |
|
42 | - $displayPhpMemoryLimit = (($phpMemoryLimit / 1024) / 1024) . 'M'; |
|
43 | - $displayCraftMinMemory = ((self::MIN_CRAFT_MEMORY / 1024) / 1024) . 'M'; |
|
44 | - $displayCraftMaxMemory = ((self::MAX_CRAFT_MEMORY / 1024) / 1024) . 'M'; |
|
41 | + $displayCraftTotalMemory = (($this->sample->craftTotalMemory / 1024) / 1024).'M'; |
|
42 | + $displayPhpMemoryLimit = (($phpMemoryLimit / 1024) / 1024).'M'; |
|
43 | + $displayCraftMinMemory = ((self::MIN_CRAFT_MEMORY / 1024) / 1024).'M'; |
|
44 | + $displayCraftMaxMemory = ((self::MAX_CRAFT_MEMORY / 1024) / 1024).'M'; |
|
45 | 45 | $this->summary = Craft::t( |
46 | 46 | 'webperf', |
47 | 47 | 'Check the `memory_limit` setting in your `php.ini` file', |