Completed
Push — master ( 9ad1a6...571f4d )
by Nils
02:31
created
src/Rules/Html/BigContentRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Rules/Html/BigFilesRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.