Skip to content

Commit

Permalink
Applied fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
JayBizzle authored and StyleCIBot committed Nov 22, 2016
1 parent abb77ca commit 4125051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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;
}
// clear existing headers
Expand Down Expand Up @@ -121,7 +121,7 @@ public function setUserAgent($userAgent = null)
}
}

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

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

$dot = dirname(__FILE__);

if (!file_exists($composer = dirname($dot).'/vendor/autoload.php')) {
if (! file_exists($composer = dirname($dot).'/vendor/autoload.php')) {
throw new RuntimeException("Please run 'composer install' first to set up autoloading. $composer");
}
/** @var \Composer\Autoload\ClassLoader $autoloader */
Expand Down

0 comments on commit 4125051

Please sign in to comment.