forked from wallabag/wallabag
CS
This commit is contained in:
@ -16,7 +16,7 @@ class Matches
|
||||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
if ($pattern[0] === "'") {
|
||||
if ("'" === $pattern[0]) {
|
||||
$pattern = sprintf("'%%%s%%'", substr($pattern, 1, -1));
|
||||
}
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ class NotMatches
|
||||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
if ($pattern[0] === "'") {
|
||||
if ("'" === $pattern[0]) {
|
||||
$pattern = sprintf("'%%%s%%'", substr($pattern, 1, -1));
|
||||
}
|
||||
|
||||
|
||||
@ -16,6 +16,6 @@ class Matches
|
||||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
return stripos($subject, $pattern) !== false;
|
||||
return false !== stripos($subject, $pattern);
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,6 +16,6 @@ class NotMatches
|
||||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
return stripos($subject, $pattern) === false;
|
||||
return false === stripos($subject, $pattern);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user