@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | public function setHttpHeaders($httpHeaders = null) |
| 462 | 462 | { |
| 463 | 463 | // use global _SERVER if $httpHeaders aren't defined |
| 464 | - if (!is_array($httpHeaders) || !count($httpHeaders)) { |
|
| 464 | + if ( ! is_array($httpHeaders) || ! count($httpHeaders)) { |
|
| 465 | 465 | $httpHeaders = $_SERVER; |
| 466 | 466 | } |
| 467 | 467 | // clear existing headers |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | } |
| 493 | 493 | } |
| 494 | 494 | |
| 495 | - return $this->userAgent = (!empty($this->userAgent) ? trim($this->userAgent) : null); |
|
| 495 | + return $this->userAgent = ( ! empty($this->userAgent) ? trim($this->userAgent) : null); |
|
| 496 | 496 | } |
| 497 | 497 | } |
| 498 | 498 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | $dot = dirname(__FILE__); |
| 12 | 12 | |
| 13 | -if (!file_exists($composer = dirname($dot).'/vendor/autoload.php')) { |
|
| 13 | +if ( ! file_exists($composer = dirname($dot).'/vendor/autoload.php')) { |
|
| 14 | 14 | throw new RuntimeException("Please run 'composer install' first to set up autoloading. $composer"); |
| 15 | 15 | } |
| 16 | 16 | /** @var \Composer\Autoload\ClassLoader $autoloader */ |