Completed
Pull Request — master (#89)
by Mark
02:08
created
src/CrawlerDetect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.