Completed
Push — master ( 627ed2...ed3594 )
by Nils
02:43
created
src/Extensions/SmokeResponseRetriever/Retriever/ListRetriever/Retriever.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -108,20 +108,20 @@  discard block
 block discarded – undo
108 108
                     if (strpos($corruptUrl, '/') === 0) {
109 109
 
110 110
                         $mainUri = $request->getUri();
111
-                        $this->redirects[(string)$mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl] = (string)$mainUri;
111
+                        $this->redirects[(string) $mainUri->getScheme().'://'.$mainUri->getHost().$corruptUrl] = (string) $mainUri;
112 112
 
113
-                        $this->urls[] = ['url' => $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl, 'system' => $url['system']];
114
-                        $this->urlStack[] = ['url' => $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl, 'system' => $url['system']];
113
+                        $this->urls[] = ['url' => $mainUri->getScheme().'://'.$mainUri->getHost().$corruptUrl, 'system' => $url['system']];
114
+                        $this->urlStack[] = ['url' => $mainUri->getScheme().'://'.$mainUri->getHost().$corruptUrl, 'system' => $url['system']];
115 115
 
116 116
                         return $this->next();
117 117
                     }
118 118
 
119 119
                     // the error handling should be done withing the calling class
120
-                    echo "\n   " . $exception->getMessage() . "\n";
120
+                    echo "\n   ".$exception->getMessage()."\n";
121 121
 
122 122
                     return $this->next();
123 123
                 } else {
124
-                    $errorMessages .= $exception->getMessage() . "\n";
124
+                    $errorMessages .= $exception->getMessage()."\n";
125 125
                 }
126 126
             }
127 127
             if ($errorMessages !== '') {
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
 
139 139
     public function getOriginUri(UriInterface $uri)
140 140
     {
141
-        if (array_key_exists((string)$uri, $this->redirects)) {
142
-            return $this->urls[$this->redirects[(string)$uri]]['url'];
141
+        if (array_key_exists((string) $uri, $this->redirects)) {
142
+            return $this->urls[$this->redirects[(string) $uri]]['url'];
143 143
         }
144 144
 
145 145
         return $uri;
@@ -152,11 +152,11 @@  discard block
 block discarded – undo
152 152
 
153 153
     public function getSystem(UriInterface $uri)
154 154
     {
155
-        if (array_key_exists((string)$uri, $this->redirects)) {
156
-            return $this->urls[$this->redirects[(string)$uri]]['system'];
155
+        if (array_key_exists((string) $uri, $this->redirects)) {
156
+            return $this->urls[$this->redirects[(string) $uri]]['system'];
157 157
         }
158 158
 
159
-        return $this->urls[(string)$uri]['system'];
159
+        return $this->urls[(string) $uri]['system'];
160 160
     }
161 161
 
162 162
     public function getSystems()
Please login to merge, or discard this patch.
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.
src/Rules/Html/ResourcesCountRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
         if ($response instanceof ResourcesAwareResponse) {
29 29
             $resourceCount = count($response->getResources());
30 30
             if ($resourceCount > $this->maxElements) {
31
-                $message = 'Too many resources were loaded. ' . $resourceCount . ' resources loaded, maximum was ' . $this->maxElements . '.';
31
+                $message = 'Too many resources were loaded. '.$resourceCount.' resources loaded, maximum was '.$this->maxElements.'.';
32 32
                 $result = new CheckResult(CheckResult::STATUS_FAILURE, $message, $resourceCount);
33 33
                 $result->addAttribute(new Attribute('resources', $response->getResources(), true));
34 34
                 return $result;
35 35
             } else {
36
-                $message = $resourceCount . ' resources were loaded.';
36
+                $message = $resourceCount.' resources were loaded.';
37 37
                 return new CheckResult(CheckResult::STATUS_SUCCESS, $message, $resourceCount);
38 38
             }
39 39
         } else {
Please login to merge, or discard this patch.
src/Extensions/SmokeOnFailure/OnFailureExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public function init($command)
13 13
     {
14
-        $this->callback = function () use ($command) {
14
+        $this->callback = function() use ($command) {
15 15
             return eval($command);
16 16
         };
17 17
     }
Please login to merge, or discard this patch.