Passed
Push — master ( a8ebef...fc67c6 )
by Sebastian
01:36
created
src/Psr7/Uri.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -269,9 +269,9 @@
 block discarded – undo
269 269
         $fragment = $this->url['fragment'];
270 270
         
271 271
         return $this->createUriString(($scheme !== '') ? $scheme.'://' : '',
272
-               $this->getAuthority(),
273
-               $this->getPath(),
274
-               ($query !== '') ? '?'.$query : '',
275
-               ($fragment !== '') ? '#'. $fragment : '');
272
+                $this->getAuthority(),
273
+                $this->getPath(),
274
+                ($query !== '') ? '?'.$query : '',
275
+                ($fragment !== '') ? '#'. $fragment : '');
276 276
     }
277 277
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @copyright (c) 2017, Sebastian Rapetti
8 8
  * @license http://opensource.org/licenses/MIT MIT License
9 9
  */
10
-declare(strict_types=1);
10
+declare(strict_types = 1);
11 11
 
12 12
 namespace Linna\Psr7;
13 13
 
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
         $authority = $this->url['host'];
80 80
         
81 81
         if ($this->url['user'] !== '') {
82
-            $authority = $this->getUserInfo() . '@' . $authority;
82
+            $authority = $this->getUserInfo().'@'.$authority;
83 83
         }
84 84
         
85 85
         if ($this->url['port'] !== 0) {
86
-            $authority .= ':' . $this->url['port'];
86
+            $authority .= ':'.$this->url['port'];
87 87
         }
88 88
         
89 89
         return $authority;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $user = $this->url['user'];
98 98
         
99 99
         if ($this->url['pass'] !== '' && $this->url['pass'] !== null) {
100
-            $user .= ':' . $this->url['pass'];
100
+            $user .= ':'.$this->url['pass'];
101 101
         }
102 102
         
103 103
         return ($user !== '') ? $user : '';
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function withHost(string $host) : UriInterface
191 191
     {
192
-        if (filter_var($host, \FILTER_VALIDATE_DOMAIN, \FILTER_FLAG_HOSTNAME) === false){
192
+        if (filter_var($host, \FILTER_VALIDATE_DOMAIN, \FILTER_FLAG_HOSTNAME) === false) {
193 193
             throw new InvalidArgumentException(__CLASS__.': Invalid host provided for '.__METHOD__);
194 194
         }
195 195
         
@@ -272,6 +272,6 @@  discard block
 block discarded – undo
272 272
                $this->getAuthority(),
273 273
                $this->getPath(),
274 274
                ($query !== '') ? '?'.$query : '',
275
-               ($fragment !== '') ? '#'. $fragment : '');
275
+               ($fragment !== '') ? '#'.$fragment : '');
276 276
     }
277 277
 }
Please login to merge, or discard this patch.
src/Psr7/UriTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * @copyright (c) 2017, Sebastian Rapetti
8 8
  * @license http://opensource.org/licenses/MIT MIT License
9 9
  */
10
-declare(strict_types=1);
10
+declare(strict_types = 1);
11 11
 
12 12
 namespace Linna\Psr7;
13 13
 
Please login to merge, or discard this patch.