Skip to content

Commit

Permalink
Merge pull request #146 from JayBizzle/analysis-q2xvgd
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
JayBizzle committed Nov 22, 2016
2 parents e05803a + 721ca03 commit 1daf34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CrawlerDetect.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct(array $headers = null, $userAgent = null)
public function setHttpHeaders($httpHeaders = null)
{
// Use global _SERVER if $httpHeaders aren't defined.
if (!is_array($httpHeaders) || !count($httpHeaders)) {
if (! is_array($httpHeaders) || ! count($httpHeaders)) {
$httpHeaders = $_SERVER;
}

Expand Down Expand Up @@ -123,7 +123,7 @@ public function setUserAgent($userAgent = null)
}
}

$this->userAgent = (!empty($this->userAgent) ? trim($this->userAgent) : null);
$this->userAgent = (! empty($this->userAgent) ? trim($this->userAgent) : null);
}
}

Expand Down

0 comments on commit 1daf34d

Please sign in to comment.