8889841cSubBinary.php000064400000000404150534332660007160 0ustar00raw('-'); } } GreaterEqualBinary.php000064400000001053150534332660011011 0ustar00= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 <= \\MailPoetVendor\\twig_compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('>='); } } InBinary.php000064400000000722150534332660007000 0ustar00raw('\\MailPoetVendor\\twig_in_filter(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('in'); } } OrBinary.php000064400000000404150534332660007007 0ustar00raw('||'); } } ModBinary.php000064400000000404150534332660007146 0ustar00raw('%'); } } LessEqualBinary.php000064400000001050150534332660010323 0ustar00= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 >= \\MailPoetVendor\\twig_compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('<='); } } NotEqualBinary.php000064400000001050150534332660010155 0ustar00= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 !== \\MailPoetVendor\\twig_compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('!='); } } AbstractBinary.php000064400000001316150534332660010175 0ustar00 $left, 'right' => $right], [], $lineno); } public function compile(Compiler $compiler) : void { $compiler->raw('(')->subcompile($this->getNode('left'))->raw(' '); $this->operator($compiler); $compiler->raw(' ')->subcompile($this->getNode('right'))->raw(')'); } public abstract function operator(Compiler $compiler) : Compiler; } SpaceshipBinary.php000064400000000414150534332660010347 0ustar00raw('<=>'); } } MulBinary.php000064400000000404150534332660007164 0ustar00raw('*'); } } MatchesBinary.php000064400000000677150534332660010027 0ustar00raw('preg_match(')->subcompile($this->getNode('right'))->raw(', ')->subcompile($this->getNode('left'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } } FloorDivBinary.php000064400000000627150534332660010162 0ustar00raw('(int) floor('); parent::compile($compiler); $compiler->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('/'); } } GreaterBinary.php000064400000001046150534332660010023 0ustar00= 80000) { parent::compile($compiler); return; } $compiler->raw('(1 === \\MailPoetVendor\\twig_compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('>'); } } NotInBinary.php000064400000000732150534332660007462 0ustar00raw('!\\MailPoetVendor\\twig_in_filter(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('not in'); } } LessBinary.php000064400000001044150534332660007336 0ustar00= 80000) { parent::compile($compiler); return; } $compiler->raw('(-1 === \\MailPoetVendor\\twig_compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('<'); } } DivBinary.php000064400000000404150534332660007151 0ustar00raw('/'); } } AddBinary.php000064400000000404150534332660007117 0ustar00raw('+'); } } BitwiseOrBinary.php000064400000000412150534332660010335 0ustar00raw('|'); } } PowerBinary.php000064400000000407150534332660007526 0ustar00raw('**'); } } ConcatBinary.php000064400000000407150534332660007641 0ustar00raw('.'); } } index.php000064400000000006150534332660006367 0ustar00raw('&&'); } } BitwiseAndBinary.php000064400000000413150534332660010460 0ustar00raw('&'); } } EqualBinary.php000064400000001045150534332660007500 0ustar00= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 === \\MailPoetVendor\\twig_compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('=='); } } EndsWithBinary.php000064400000001232150534332660010154 0ustar00getVarName(); $right = $compiler->getVarName(); $compiler->raw(\sprintf('(is_string($%s = ', $left))->subcompile($this->getNode('left'))->raw(\sprintf(') && is_string($%s = ', $right))->subcompile($this->getNode('right'))->raw(\sprintf(') && (\'\' === $%2$s || $%2$s === substr($%1$s, -strlen($%2$s))))', $left, $right)); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } } RangeBinary.php000064400000000672150534332660007472 0ustar00raw('range(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('..'); } } BitwiseXorBinary.php000064400000000413150534332660010526 0ustar00raw('^'); } } StartsWithBinary.php000064400000001217150534332660010546 0ustar00getVarName(); $right = $compiler->getVarName(); $compiler->raw(\sprintf('(is_string($%s = ', $left))->subcompile($this->getNode('left'))->raw(\sprintf(') && is_string($%s = ', $right))->subcompile($this->getNode('right'))->raw(\sprintf(') && (\'\' === $%2$s || 0 === strpos($%1$s, $%2$s)))', $left, $right)); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } }