@@ -36,12 +36,12 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | if ($totalSize > $this->maxSize) { |
| 39 | - $message = 'The total size of the file (and all assets) was ' . $totalSize . ' KB (max: ' . $this->maxSize . ' KB).'; |
|
| 39 | + $message = 'The total size of the file (and all assets) was '.$totalSize.' KB (max: '.$this->maxSize.' KB).'; |
|
| 40 | 40 | $result = new CheckResult(CheckResult::STATUS_FAILURE, $message, $totalSize); |
| 41 | 41 | $result->addAttribute(new Attribute('resources', $response->getResources(), true)); |
| 42 | 42 | return $result; |
| 43 | 43 | } else { |
| 44 | - $message = 'The total size of the file (and all assets) was ' . $totalSize . ' KB (max: ' . $this->maxSize . ' KB).'; |
|
| 44 | + $message = 'The total size of the file (and all assets) was '.$totalSize.' KB (max: '.$this->maxSize.' KB).'; |
|
| 45 | 45 | $result = new CheckResult(CheckResult::STATUS_SUCCESS, $message, $totalSize); |
| 46 | 46 | $result->addAttribute(new Attribute('resources', $response->getResources(), true)); |
| 47 | 47 | return $result; |
@@ -38,9 +38,9 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | if (count($bigFiles) > 0) { |
| 41 | - $message = "Some files were found that are too big (max: " . $this->maxElementSize . " KB):<ul>"; |
|
| 41 | + $message = "Some files were found that are too big (max: ".$this->maxElementSize." KB):<ul>"; |
|
| 42 | 42 | foreach ($bigFiles as $bigFile) { |
| 43 | - $message .= '<li>File: ' . $bigFile['name'] . ', Size: ' . $bigFile['size'] . ' KB</li>'; |
|
| 43 | + $message .= '<li>File: '.$bigFile['name'].', Size: '.$bigFile['size'].' KB</li>'; |
|
| 44 | 44 | } |
| 45 | 45 | $message .= "</ul>"; |
| 46 | 46 | $result = new CheckResult(CheckResult::STATUS_FAILURE, $message, count($bigFiles)); |