@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | { |
102 | 102 | $this->payload = new Collection(); |
103 | 103 | |
104 | - if (! ('' === $uri)) |
|
104 | + if (!('' === $uri)) |
|
105 | 105 | { |
106 | 106 | $this->parse($uri); |
107 | 107 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | { |
123 | 123 | $regex = '/^(?:[A-Za-z][0-9A-Za-z\+\-\.]*)?$/'; |
124 | 124 | |
125 | - if (! \preg_match($regex, $scheme)) |
|
125 | + if (!\preg_match($regex, $scheme)) |
|
126 | 126 | { |
127 | 127 | throw new InvalidUriComponentException('Invalid URI component "scheme"'); |
128 | 128 | } |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | $min = 1; |
221 | 221 | $max = 2 ** 16; |
222 | 222 | |
223 | - if (! ($port === null || ($port >= $min && $port <= $max))) |
|
223 | + if (!($port === null || ($port >= $min && $port <= $max))) |
|
224 | 224 | { |
225 | 225 | throw new InvalidUriComponentException('Invalid URI component "port"'); |
226 | 226 | } |
@@ -405,11 +405,11 @@ discard block |
||
405 | 405 | { |
406 | 406 | $result = ''; |
407 | 407 | |
408 | - if (! ($this->getUsername() === '')) |
|
408 | + if (!($this->getUsername() === '')) |
|
409 | 409 | { |
410 | 410 | $result .= $this->getUsername(); |
411 | 411 | |
412 | - if (! ($this->getPassword() === '')) |
|
412 | + if (!($this->getPassword() === '')) |
|
413 | 413 | { |
414 | 414 | $result .= ':' . $this->getPassword(); |
415 | 415 | } |
@@ -427,11 +427,11 @@ discard block |
||
427 | 427 | { |
428 | 428 | $result = ''; |
429 | 429 | |
430 | - if (! ($this->getHost() === '')) |
|
430 | + if (!($this->getHost() === '')) |
|
431 | 431 | { |
432 | 432 | $result .= $this->getHost(); |
433 | 433 | |
434 | - if (! ($this->getPort() === null)) |
|
434 | + if (!($this->getPort() === null)) |
|
435 | 435 | { |
436 | 436 | $result .= ':' . $this->getPort(); |
437 | 437 | } |
@@ -451,11 +451,11 @@ discard block |
||
451 | 451 | |
452 | 452 | $hostport = $this->getHostPort(); |
453 | 453 | |
454 | - if (! ($hostport === '')) |
|
454 | + if (!($hostport === '')) |
|
455 | 455 | { |
456 | 456 | $userinfo = $this->getUserInfo(); |
457 | 457 | |
458 | - if (! ($userinfo === '')) |
|
458 | + if (!($userinfo === '')) |
|
459 | 459 | { |
460 | 460 | $result .= $userinfo . '@'; |
461 | 461 | } |
@@ -475,26 +475,26 @@ discard block |
||
475 | 475 | { |
476 | 476 | $result = ''; |
477 | 477 | |
478 | - if (! ($this->getScheme() === '')) |
|
478 | + if (!($this->getScheme() === '')) |
|
479 | 479 | { |
480 | 480 | $result .= $this->getScheme() . ':'; |
481 | 481 | } |
482 | 482 | |
483 | 483 | $authority = $this->getAuthority(); |
484 | 484 | |
485 | - if (! ($authority === '')) |
|
485 | + if (!($authority === '')) |
|
486 | 486 | { |
487 | 487 | $result .= '//' . $authority; |
488 | 488 | } |
489 | 489 | |
490 | 490 | $result .= $this->getPath(); |
491 | 491 | |
492 | - if (! ($this->getQuery() === '')) |
|
492 | + if (!($this->getQuery() === '')) |
|
493 | 493 | { |
494 | 494 | $result .= '?' . $this->getQuery(); |
495 | 495 | } |
496 | 496 | |
497 | - if (! ($this->getFragment() === '')) |
|
497 | + if (!($this->getFragment() === '')) |
|
498 | 498 | { |
499 | 499 | $result .= '#' . $this->getFragment(); |
500 | 500 | } |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | |
524 | 524 | $clone->setUsername($username); |
525 | 525 | |
526 | - if (! (null === $password)) |
|
526 | + if (!(null === $password)) |
|
527 | 527 | { |
528 | 528 | $clone->setPassword($password); |
529 | 529 | } |