Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Additional optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Apr 30, 2018
1 parent 399809d commit 4cea2d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Filter/HasFilter.php
Expand Up @@ -20,6 +20,6 @@ public function filter($property)
$pos = 0;
}

return substr($property, $pos, 3) === 'has';
return strpos($property, 'has', $pos) === $pos;
}
}
2 changes: 1 addition & 1 deletion src/Filter/IsFilter.php
Expand Up @@ -20,6 +20,6 @@ public function filter($property)
$pos = 0;
}

return substr($property, $pos, 2) === 'is';
return strpos($property, 'is', $pos) === $pos;
}
}

0 comments on commit 4cea2d2

Please sign in to comment.