]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Operator/PHP/NotMatches.php
CS
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Operator / PHP / NotMatches.php
index eecb43cc43b5301b074db8c0f82e140a87f2ee55..bd4d887a601a475e03704548a11675cc656076cc 100644 (file)
@@ -10,12 +10,12 @@ namespace Wallabag\CoreBundle\Operator\PHP;
  *
  * This operator will be used to compile tagging rules in PHP, usable
  * directly on Entry objects for instance.
- * It's registered in RulerZ using a service (wallabag.operator.array.matches);
+ * It's registered in RulerZ using a service (wallabag.operator.array.notmatches);
  */
 class NotMatches
 {
     public function __invoke($subject, $pattern)
     {
-        return stripos($subject, $pattern) === false;
+        return false === stripos($subject, $pattern);
     }
 }