]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Operator/Doctrine/NotMatches.php
CS
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Operator / Doctrine / NotMatches.php
index 090da77cdd538476e39009d201d36e78b33fe9c6..8e50f8d67cc98aea901505f531fd7bdcb550490f 100644 (file)
@@ -10,13 +10,13 @@ namespace Wallabag\CoreBundle\Operator\Doctrine;
  *
  * This operator will be used to compile tagging rules in DQL, usable
  * by Doctrine ORM.
- * It's registered in RulerZ using a service (wallabag.operator.doctrine.matches);
+ * It's registered in RulerZ using a service (wallabag.operator.doctrine.notmatches);
  */
 class NotMatches
 {
     public function __invoke($subject, $pattern)
     {
-        if ($pattern[0] === "'") {
+        if ("'" === $pattern[0]) {
             $pattern = sprintf("'%%%s%%'", substr($pattern, 1, -1));
         }