Completed
Push — master ( debaf4...331eda )
by Nils
02:22
created
src/Config/Configuration.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 
160 160
     /**
161
-     * @param $section
161
+     * @param string $section
162 162
      *
163 163
      * @return array
164 164
      */
@@ -171,6 +171,9 @@  discard block
 block discarded – undo
171 171
         }
172 172
     }
173 173
 
174
+    /**
175
+     * @param string $name
176
+     */
174 177
     public function getExtension($name)
175 178
     {
176 179
         if (array_key_exists($name, $this->extensions)) {
Please login to merge, or discard this patch.
src/Rules/Html/InvalidUrlsRule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,22 +18,22 @@
 block discarded – undo
18 18
      */
19 19
     protected function doValidation(ResponseInterface $response)
20 20
     {
21
-        $document = new Document((string)$response->getBody(), false);
21
+        $document = new Document((string) $response->getBody(), false);
22 22
         $urls = $document->getDependencies($response->getUri());
23 23
         $invalidUrls = array();
24 24
 
25 25
         foreach ($urls as $url) {
26 26
             if (function_exists('idn_to_ascii')) {
27
-                $idnUrl = $url->getScheme() . '://' . idn_to_ascii($url->getHost()) . $url->getPath();
27
+                $idnUrl = $url->getScheme().'://'.idn_to_ascii($url->getHost()).$url->getPath();
28 28
             } else {
29
-                $idnUrl = $url->getScheme() . '://' . $url->getHost() . $url->getPath();
29
+                $idnUrl = $url->getScheme().'://'.$url->getHost().$url->getPath();
30 30
             }
31 31
 
32 32
             if (!filter_var($idnUrl, FILTER_VALIDATE_URL)) {
33
-                $invalidUrls[] = (string)$url;
33
+                $invalidUrls[] = (string) $url;
34 34
             }
35 35
         }
36 36
 
37
-        $this->assert(count($invalidUrls) === 0, 'Invalid urls found (' . implode(', ', $invalidUrls) . ').');
37
+        $this->assert(count($invalidUrls) === 0, 'Invalid urls found ('.implode(', ', $invalidUrls).').');
38 38
     }
39 39
 }
Please login to merge, or discard this patch.