Skip to content

Commit

Permalink
Replaced implicit type coercion with strict type check. (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Aug 25, 2020
1 parent 43b9780 commit ddfeeed
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 @@ -93,7 +93,7 @@ public function __construct(array $headers = null, $userAgent = null)
* Compile the regex patterns into one regex string.
*
* @param array
*
*
* @return string
*/
public function compileRegex($patterns)
Expand Down Expand Up @@ -168,7 +168,7 @@ public function isCrawler($userAgent = null)
$userAgent ?: $this->userAgent
));

if ($agent == '') {
if ($agent === '') {
return false;
}

Expand Down

0 comments on commit ddfeeed

Please sign in to comment.