*
* 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));
}