Passed
Push — master ( cd6def...a3ee83 )
by Anatoly
02:04
created
src/Uri.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -306,14 +306,14 @@  discard block
 block discarded – undo
306 306
 
307 307
 		$userinfo = $this->getUserInfo();
308 308
 
309
-		if (! ('' === $userinfo))
309
+		if ( ! ('' === $userinfo))
310 310
 		{
311 311
 			$authority = $userinfo . '@' . $authority;
312 312
 		}
313 313
 
314 314
 		$port = $this->getPort();
315 315
 
316
-		if (! (null === $port))
316
+		if ( ! (null === $port))
317 317
 		{
318 318
 			$authority = $authority . ':' . $port;
319 319
 		}
@@ -330,35 +330,35 @@  discard block
 block discarded – undo
330 330
 
331 331
 		$scheme = $this->getScheme();
332 332
 
333
-		if (! ($scheme === ''))
333
+		if ( ! ($scheme === ''))
334 334
 		{
335 335
 			$uri .= $scheme . ':';
336 336
 		}
337 337
 
338 338
 		$authority = $this->getAuthority();
339 339
 
340
-		if (! ($authority === ''))
340
+		if ( ! ($authority === ''))
341 341
 		{
342 342
 			$uri .= '//' . $authority;
343 343
 		}
344 344
 
345 345
 		$path = $this->getPath();
346 346
 
347
-		if (! ($path === ''))
347
+		if ( ! ($path === ''))
348 348
 		{
349 349
 			$uri .= $path;
350 350
 		}
351 351
 
352 352
 		$query = $this->getQuery();
353 353
 
354
-		if (! ($query === ''))
354
+		if ( ! ($query === ''))
355 355
 		{
356 356
 			$uri .= '?' . $query;
357 357
 		}
358 358
 
359 359
 		$fragment = $this->getFragment();
360 360
 
361
-		if (! ($fragment === ''))
361
+		if ( ! ($fragment === ''))
362 362
 		{
363 363
 			$uri .= '#' . $fragment;
364 364
 		}
Please login to merge, or discard this patch.
src/UriParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 	 */
107 107
 	public function __construct($uri)
108 108
 	{
109
-		if (! \is_string($uri))
109
+		if ( ! \is_string($uri))
110 110
 		{
111 111
 			throw new InvalidUriException('URI must be a string');
112 112
 		}
Please login to merge, or discard this patch.
src/Component/Host.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 		{
45 45
 			return;
46 46
 		}
47
-		else if (! \is_string($value))
47
+		else if ( ! \is_string($value))
48 48
 		{
49 49
 			throw new InvalidUriComponentException('URI component "host" must be a string');
50 50
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
 		if ('' === $value)
44 44
 		{
45 45
 			return;
46
-		}
47
-		else if (! \is_string($value))
46
+		} else if (! \is_string($value))
48 47
 		{
49 48
 			throw new InvalidUriComponentException('URI component "host" must be a string');
50 49
 		}
Please login to merge, or discard this patch.
src/Component/User.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 		{
45 45
 			return;
46 46
 		}
47
-		else if (! \is_string($value))
47
+		else if ( ! \is_string($value))
48 48
 		{
49 49
 			throw new InvalidUriComponentException('URI component "user" must be a string');
50 50
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
 		if ('' === $value)
44 44
 		{
45 45
 			return;
46
-		}
47
-		else if (! \is_string($value))
46
+		} else if (! \is_string($value))
48 47
 		{
49 48
 			throw new InvalidUriComponentException('URI component "user" must be a string');
50 49
 		}
Please login to merge, or discard this patch.
src/Component/Query.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 		{
45 45
 			return;
46 46
 		}
47
-		else if (! \is_string($value))
47
+		else if ( ! \is_string($value))
48 48
 		{
49 49
 			throw new InvalidUriComponentException('URI component "query" must be a string');
50 50
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
 		if ('' === $value)
44 44
 		{
45 45
 			return;
46
-		}
47
-		else if (! \is_string($value))
46
+		} else if (! \is_string($value))
48 47
 		{
49 48
 			throw new InvalidUriComponentException('URI component "query" must be a string');
50 49
 		}
Please login to merge, or discard this patch.
src/Component/Pass.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 		{
45 45
 			return;
46 46
 		}
47
-		else if (! \is_string($value))
47
+		else if ( ! \is_string($value))
48 48
 		{
49 49
 			throw new InvalidUriComponentException('URI component "pass" must be a string');
50 50
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
 		if ('' === $value)
44 44
 		{
45 45
 			return;
46
-		}
47
-		else if (! \is_string($value))
46
+		} else if (! \is_string($value))
48 47
 		{
49 48
 			throw new InvalidUriComponentException('URI component "pass" must be a string');
50 49
 		}
Please login to merge, or discard this patch.
src/Component/Path.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 		{
45 45
 			return;
46 46
 		}
47
-		else if (! \is_string($value))
47
+		else if ( ! \is_string($value))
48 48
 		{
49 49
 			throw new InvalidUriComponentException('URI component "path" must be a string');
50 50
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
 		if ('' === $value)
44 44
 		{
45 45
 			return;
46
-		}
47
-		else if (! \is_string($value))
46
+		} else if (! \is_string($value))
48 47
 		{
49 48
 			throw new InvalidUriComponentException('URI component "path" must be a string');
50 49
 		}
Please login to merge, or discard this patch.
src/Component/Scheme.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
 		{
47 47
 			return;
48 48
 		}
49
-		else if (! \is_string($value))
49
+		else if ( ! \is_string($value))
50 50
 		{
51 51
 			throw new InvalidUriComponentException('URI component "scheme" must be a string');
52 52
 		}
53
-		else if (! \preg_match($regex, $value))
53
+		else if ( ! \preg_match($regex, $value))
54 54
 		{
55 55
 			throw new InvalidUriComponentException('Invalid URI component "scheme"');
56 56
 		}
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,12 +45,10 @@
 block discarded – undo
45 45
 		if ('' === $value)
46 46
 		{
47 47
 			return;
48
-		}
49
-		else if (! \is_string($value))
48
+		} else if (! \is_string($value))
50 49
 		{
51 50
 			throw new InvalidUriComponentException('URI component "scheme" must be a string');
52
-		}
53
-		else if (! \preg_match($regex, $value))
51
+		} else if (! \preg_match($regex, $value))
54 52
 		{
55 53
 			throw new InvalidUriComponentException('Invalid URI component "scheme"');
56 54
 		}
Please login to merge, or discard this patch.
src/Component/Fragment.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 		{
45 45
 			return;
46 46
 		}
47
-		else if (! \is_string($value))
47
+		else if ( ! \is_string($value))
48 48
 		{
49 49
 			throw new InvalidUriComponentException('URI component "fragment" must be a string');
50 50
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
 		if ('' === $value)
44 44
 		{
45 45
 			return;
46
-		}
47
-		else if (! \is_string($value))
46
+		} else if (! \is_string($value))
48 47
 		{
49 48
 			throw new InvalidUriComponentException('URI component "fragment" must be a string');
50 49
 		}
Please login to merge, or discard this patch.