Completed
Push — master ( 88b32b...6161b2 )
by Nils
04:31
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.