dvadf
File manager - Edit - /home/centroca/public_html/Binary.tar
Back
LessBinary.php 0000644 00000001403 15253200471 0007325 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class LessBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { if (\PHP_VERSION_ID >= 80000) { parent::compile($compiler); return; } $compiler->raw('(-1 === CoreExtension::compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('<'); } } BitwiseOrBinary.php 0000644 00000000723 15253200471 0010332 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class BitwiseOrBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('|'); } } AndBinary.php 0000644 00000000716 15253200471 0007127 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class AndBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('&&'); } } ConcatBinary.php 0000644 00000000720 15253200471 0007627 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class ConcatBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('.'); } } AddBinary.php 0000644 00000000715 15253200471 0007114 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class AddBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('+'); } } GreaterBinary.php 0000644 00000001405 15253200471 0010012 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class GreaterBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { if (\PHP_VERSION_ID >= 80000) { parent::compile($compiler); return; } $compiler->raw('(1 === CoreExtension::compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('>'); } } InBinary.php 0000644 00000001214 15253200471 0006765 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class InBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $compiler->raw('CoreExtension::inFilter(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('in'); } } RangeBinary.php 0000644 00000001175 15253200471 0007461 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class RangeBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $compiler->raw('range(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('..'); } } MatchesBinary.php 0000644 00000001216 15253200471 0010005 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class MatchesBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $compiler->raw('CoreExtension::matches(')->subcompile($this->getNode('right'))->raw(', ')->subcompile($this->getNode('left'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } } BitwiseAndBinary.php 0000644 00000000724 15253200471 0010455 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class BitwiseAndBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('&'); } } HasEveryBinary.php 0000644 00000001236 15253200471 0010151 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class HasEveryBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $compiler->raw('CoreExtension::arrayEvery($this->env, ')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } } MulBinary.php 0000644 00000000715 15253200471 0007161 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class MulBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('*'); } } EndsWithBinary.php 0000644 00000001513 15253200471 0010146 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class EndsWithBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $left = $compiler->getVarName(); $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(') && str_ends_with($%1$s, $%2$s))', $left, $right)); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } } PowerBinary.php 0000644 00000000672 15253200471 0007522 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class PowerBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('**'); } } BitwiseXorBinary.php 0000644 00000000724 15253200471 0010523 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class BitwiseXorBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('^'); } } FloorDivBinary.php 0000644 00000001150 15253200471 0010142 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class FloorDivBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $compiler->raw('(int) floor('); parent::compile($compiler); $compiler->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('/'); } } LessEqualBinary.php 0000644 00000001407 15253200471 0010321 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class LessEqualBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { if (\PHP_VERSION_ID >= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 >= CoreExtension::compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('<='); } } ModBinary.php 0000644 00000000715 15253200471 0007143 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class ModBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('%'); } } HasSomeBinary.php 0000644 00000001234 15253200471 0007760 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class HasSomeBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $compiler->raw('CoreExtension::arraySome($this->env, ')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } } GreaterEqualBinary.php 0000644 00000001412 15253200471 0011000 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class GreaterEqualBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { if (\PHP_VERSION_ID >= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 <= CoreExtension::compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('>='); } } NotEqualBinary.php 0000644 00000001407 15253200471 0010153 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class NotEqualBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { if (\PHP_VERSION_ID >= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 !== CoreExtension::compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('!='); } } NotInBinary.php 0000644 00000001224 15253200471 0007447 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class NotInBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $compiler->raw('!CoreExtension::inFilter(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw(')'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('not in'); } } OrBinary.php 0000644 00000000715 15253200471 0007004 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class OrBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('||'); } } AbstractBinary.php 0000644 00000001666 15253200471 0010175 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; use ElementorDeps\Twig\Node\Expression\AbstractExpression; use ElementorDeps\Twig\Node\Node; abstract class AbstractBinary extends AbstractExpression { public function __construct(Node $left, Node $right, int $lineno) { parent::__construct(['left' => $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; } EqualBinary.php 0000644 00000001404 15253200471 0007467 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class EqualBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { if (\PHP_VERSION_ID >= 80000) { parent::compile($compiler); return; } $compiler->raw('(0 === CoreExtension::compare(')->subcompile($this->getNode('left'))->raw(', ')->subcompile($this->getNode('right'))->raw('))'); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw('=='); } } SubBinary.php 0000644 00000000715 15253200471 0007155 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class SubBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('-'); } } SpaceshipBinary.php 0000644 00000000677 15253200471 0010352 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class SpaceshipBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('<=>'); } } StartsWithBinary.php 0000644 00000001517 15253200471 0010541 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class StartsWithBinary extends AbstractBinary { public function compile(Compiler $compiler) : void { $left = $compiler->getVarName(); $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(') && str_starts_with($%1$s, $%2$s))', $left, $right)); } public function operator(Compiler $compiler) : Compiler { return $compiler->raw(''); } } DivBinary.php 0000644 00000000715 15253200471 0007146 0 ustar 00 <?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node\Expression\Binary; use ElementorDeps\Twig\Compiler; class DivBinary extends AbstractBinary { public function operator(Compiler $compiler) : Compiler { return $compiler->raw('/'); } }
dvadf
dvadf
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings