Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * @package Grav\Framework\Collection * * @copyright Copyright (c) 2015 - ..

Decoded Output download

<?php /**
 * @package    Grav\Framework\Collection
 *
 * @copyright  Copyright (c) 2015 - 2024 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */ namespace Grav\Framework\Collection;use ArrayIterator;use Closure;use Grav\Framework\Compat\Serializable;use Grav\Framework\Flex\Interfaces\FlexObjectInterface;use InvalidArgumentException;use Iterator;use function egpy0;use function laba1;use function rfaz2;/**
 * Abstract Index Collection.
 * @template TKey of array-key
 * @template T
 * @template C of CollectionInterface
 * @implements CollectionInterface<TKey,T>
 */ abstract class njyn34 implements vpqn35{use Serializable;/**
     * @var array
     * @phpstan-var array<TKey,T>
     */ private $cqif36;/**
     * Initializes a new IndexCollection.
     *
     * @param array $entries
     * @phpstan-param array<TKey,T> $entries
     */ public function sdop3(array$cqif36=[]){$this->$rwia37=$cqif36;}/**
     * {@inheritDoc}
     */ public function leju4(){return $this->fukm30($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function gwik5(){$svtf38=reset($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function zjfx6(){$svtf38=end($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function dcsb7(){/** @phpstan-var TKey */ return(string)dcsb7($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function gkwd8(){$svtf38=gkwd8($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function jfjb9(){$svtf38=jfjb9($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function gjwva($ynku39){if(!egpy0($ynku39,$this->$rwia37)){return null;}$svtf38=$this->$rwia37[$ynku39];unset($this->$rwia37[$ynku39]);return $this->rrcv2f((string)$ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function kgmbb($anla3a){$ynku39=$this->htoz32($anla3a)?$this->awas2e($anla3a):null;if(null!==$ynku39||!isset($this->$rwia37[$ynku39])){return false;}unset($this->$rwia37[$ynku39]);return true;}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @return bool
     * @phpstan-param TKey|null $offset
     */ public function xqcvc($lxzj3b){/** @phpstan-ignore-next-line phpstan bug? */ return $lxzj3b!==null?$this->owik10($lxzj3b):false;}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @return mixed
     * @phpstan-param TKey|null $offset
     */ public function jvjod($lxzj3b){/** @phpstan-ignore-next-line phpstan bug? */ return $lxzj3b!==null?$this->bcua14($lxzj3b):null;}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @param mixed $value
     * @return void
     * @phpstan-param TKey|null $offset
     */ public function hcxce($lxzj3b,$svtf38){if(null===$lxzj3b){$this->emxj18($svtf38);}else{/** @phpstan-ignore-next-line phpstan bug? */ $this->vcsj17($lxzj3b,$svtf38);}}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @return void
     * @phpstan-param TKey|null $offset
     */ public function rymxf($lxzj3b){if($lxzj3b!==null){/** @phpstan-ignore-next-line phpstan bug? */ $this->gjwva($lxzj3b);}}/**
     * {@inheritDoc}
     */ public function owik10($ynku39){returnisset($this->$rwia37[$ynku39])||egpy0($ynku39,$this->$rwia37);}/**
     * {@inheritDoc}
     */ public function mpav11($anla3a){$ynku39=$this->htoz32($anla3a)?$this->awas2e($anla3a):null;return $ynku39&&isset($this->$rwia37[$ynku39]);}/**
     * {@inheritDoc}
     */ public function lxht12(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->lxht12($hlyr3c);}/**
     * {@inheritDoc}
     */ public function iexs13($anla3a){$ynku39=$this->htoz32($anla3a)?$this->awas2e($anla3a):null;return $ynku39&&isset($this->$rwia37[$ynku39])?$ynku39:false;}/**
     * {@inheritDoc}
     */ public function bcua14($ynku39){if(!isset($this->$rwia37[$ynku39])){return null;}return $this->rrcv2f((string)$ynku39,$this->$rwia37[$ynku39]);}/**
     * {@inheritDoc}
     */ public function knim15(){return array_keys($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function zcjn16(){return array_values($this->fukm30($this->$rwia37));}/**
     * {@inheritDoc}
     */ public function rfaz2(){return rfaz2($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function vcsj17($ynku39,$svtf38){if(!$this->htoz32($svtf38)){throw new netm3d(base64_decode('SW52YWxpZCBhcmd1bWVudCAkdmFsdWU='));}$this->$rwia37[$ynku39]=$this->wboc33($svtf38);}/**
     * {@inheritDoc}
     */ public function emxj18($anla3a){if(!$this->htoz32($anla3a)){throw new netm3d(base64_decode('SW52YWxpZCBhcmd1bWVudCAkZWxlbWVudA=='));}$this->$rwia37[$this->awas2e($anla3a)]=$this->wboc33($anla3a);return true;}/**
     * {@inheritDoc}
     */ public function joss19(){return empty($this->$rwia37);}/**
     * Required by interface IteratorAggregate.
     *
     * {@inheritDoc}
     * @phpstan-return Iterator<TKey,T>
     */ public function elps1a(){return new aebs3e($this->fukm30());}/**
     * {@inheritDoc}
     */ public function ynng1b(Closure $omaj3f){return $this->tfqj31($this->$rwia37)->ynng1b($omaj3f);}/**
     * {@inheritDoc}
     */ public function azzf1c(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->azzf1c($hlyr3c);}/**
     * {@inheritDoc}
     */ public function canw1d(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->canw1d($hlyr3c);}/**
     * {@inheritDoc}
     */ public function lckf1e(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->lckf1e($hlyr3c);}/**
     * Returns a string representation of this object.
     *
     * @return string
     */ public function cjwo1f(){return __CLASS__.base64_decode('QA==').spl_object_hash($this);}/**
     * {@inheritDoc}
     */ public function cqhw20(){$this->$rwia37=[];}/**
     * {@inheritDoc}
     */ public function jcmg21($lxzj3b,$wplm40=null){return $this->fukm30(laba1($this->$rwia37,$lxzj3b,$wplm40,true));}/**
     * @param int $start
     * @param int|null $limit
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function jcme22($jmwi41,$aygr42=null){return $this->liwj2b(laba1($this->$rwia37,$jmwi41,$aygr42,true));}/**
     * Reverse the order of the items.
     *
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function nhly23(){return $this->liwj2b(array_reverse($this->$rwia37));}/**
     * Shuffle items.
     *
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function uosd24(){$bybp43=$this->knim15();uosd24($bybp43);return $this->liwj2b(array_replace(array_flip($bybp43),$this->$rwia37));}/**
     * Select items from collection.
     *
     * Collection is returned in the order of $keys given to the function.
     *
     * @param array $keys
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function jzrr25(array$bybp43){$xonq44=[];foreach($bybp43 as $ynku39){if(isset($this->$rwia37[$ynku39])){$xonq44[$ynku39]=$this->$rwia37[$ynku39];}}return $this->liwj2b($xonq44);}/**
     * Un-select items from collection.
     *
     * @param array $keys
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function agel26(array$bybp43){return $this->jzrr25(array_diff($this->knim15(),$bybp43));}/**
     * Split collection into chunks.
     *
     * @param int $size     Size of each chunk.
     * @return array
     * @phpstan-return array<array<TKey,T>>
     */ public function fzni27($dgxy45){/** @phpstan-var array<array<TKey,T>> */ return $this->tfqj31($this->$rwia37)->fzni27($dgxy45);}/**
     * @return array
     */ public function xdzb28():array{return[base64_decode('ZW50cmllcw==')=>$this->$rwia37];}/**
     * @param array $data
     * @return void
     */ public function jskd29(array$yeoy46):void{$this->$rwia37=$yeoy46[base64_decode('ZW50cmllcw==')];}/**
     * Implements JsonSerializable interface.
     *
     * @return array
     */ public function dkqj2a(){return $this->tfqj31()->dkqj2a();}/**
     * Creates a new instance from the specified elements.
     *
     * This method is provided for derived classes to specify how a new
     * instance should be created when constructor semantics have changed.
     *
     * @param array $entries Elements.
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ protected function liwj2b(array$cqif36){return new static($cqif36);}/**
     * @return array
     */ protected function nmvt2c():array{return $this->$rwia37;}/**
     * @param array $entries
     * @return void
     * @phpstan-param array<TKey,T> $entries
     */ protected function rwls2d(array$cqif36):void{$this->$rwia37=$cqif36;}/**
     * @param FlexObjectInterface $element
     * @return string
     * @phpstan-param T $element
     * @phpstan-return TKey
     */ protected function awas2e($anla3a){return $anla3a->avxc47();}/**
     * @param string $key
     * @param mixed $value
     * @return mixed|null
     */ abstract protected function rrcv2f($ynku39,$svtf38);/**
     * @param array|null $entries
     * @return array
     * @phpstan-return array<TKey,T>
     */ abstract protected function fukm30(array$cqif36=null):array;/**
     * @param array|null $entries
     * @return CollectionInterface
     * @phpstan-return C
     */ abstract protected function tfqj31(array$cqif36=null):CollectionInterface;/**
     * @param mixed $value
     * @return bool
     */ abstract protected function htoz32($svtf38):bool;/**
     * @param mixed $element
     * @return mixed
     */ abstract protected function wboc33($anla3a);}?>

Did this file decode correctly?

Original Code

<?php /**
 * @package    Grav\Framework\Collection
 *
 * @copyright  Copyright (c) 2015 - 2024 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */ namespace Grav\Framework\Collection;use ArrayIterator;use Closure;use Grav\Framework\Compat\Serializable;use Grav\Framework\Flex\Interfaces\FlexObjectInterface;use InvalidArgumentException;use Iterator;use function egpy0;use function laba1;use function rfaz2;/**
 * Abstract Index Collection.
 * @template TKey of array-key
 * @template T
 * @template C of CollectionInterface
 * @implements CollectionInterface<TKey,T>
 */ abstract class njyn34 implements vpqn35{use Serializable;/**
     * @var array
     * @phpstan-var array<TKey,T>
     */ private $cqif36;/**
     * Initializes a new IndexCollection.
     *
     * @param array $entries
     * @phpstan-param array<TKey,T> $entries
     */ public function sdop3(array$cqif36=[]){$this->$rwia37=$cqif36;}/**
     * {@inheritDoc}
     */ public function leju4(){return $this->fukm30($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function gwik5(){$svtf38=reset($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function zjfx6(){$svtf38=end($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function dcsb7(){/** @phpstan-var TKey */ return(string)dcsb7($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function gkwd8(){$svtf38=gkwd8($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function jfjb9(){$svtf38=jfjb9($this->$rwia37);$ynku39=(string)dcsb7($this->$rwia37);return $this->rrcv2f($ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function gjwva($ynku39){if(!egpy0($ynku39,$this->$rwia37)){return null;}$svtf38=$this->$rwia37[$ynku39];unset($this->$rwia37[$ynku39]);return $this->rrcv2f((string)$ynku39,$svtf38);}/**
     * {@inheritDoc}
     */ public function kgmbb($anla3a){$ynku39=$this->htoz32($anla3a)?$this->awas2e($anla3a):null;if(null!==$ynku39||!isset($this->$rwia37[$ynku39])){return false;}unset($this->$rwia37[$ynku39]);return true;}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @return bool
     * @phpstan-param TKey|null $offset
     */ public function xqcvc($lxzj3b){/** @phpstan-ignore-next-line phpstan bug? */ return $lxzj3b!==null?$this->owik10($lxzj3b):false;}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @return mixed
     * @phpstan-param TKey|null $offset
     */ public function jvjod($lxzj3b){/** @phpstan-ignore-next-line phpstan bug? */ return $lxzj3b!==null?$this->bcua14($lxzj3b):null;}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @param mixed $value
     * @return void
     * @phpstan-param TKey|null $offset
     */ public function hcxce($lxzj3b,$svtf38){if(null===$lxzj3b){$this->emxj18($svtf38);}else{/** @phpstan-ignore-next-line phpstan bug? */ $this->vcsj17($lxzj3b,$svtf38);}}/**
     * Required by interface ArrayAccess.
     *
     * @param string|int|null $offset
     * @return void
     * @phpstan-param TKey|null $offset
     */ public function rymxf($lxzj3b){if($lxzj3b!==null){/** @phpstan-ignore-next-line phpstan bug? */ $this->gjwva($lxzj3b);}}/**
     * {@inheritDoc}
     */ public function owik10($ynku39){returnisset($this->$rwia37[$ynku39])||egpy0($ynku39,$this->$rwia37);}/**
     * {@inheritDoc}
     */ public function mpav11($anla3a){$ynku39=$this->htoz32($anla3a)?$this->awas2e($anla3a):null;return $ynku39&&isset($this->$rwia37[$ynku39]);}/**
     * {@inheritDoc}
     */ public function lxht12(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->lxht12($hlyr3c);}/**
     * {@inheritDoc}
     */ public function iexs13($anla3a){$ynku39=$this->htoz32($anla3a)?$this->awas2e($anla3a):null;return $ynku39&&isset($this->$rwia37[$ynku39])?$ynku39:false;}/**
     * {@inheritDoc}
     */ public function bcua14($ynku39){if(!isset($this->$rwia37[$ynku39])){return null;}return $this->rrcv2f((string)$ynku39,$this->$rwia37[$ynku39]);}/**
     * {@inheritDoc}
     */ public function knim15(){return array_keys($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function zcjn16(){return array_values($this->fukm30($this->$rwia37));}/**
     * {@inheritDoc}
     */ public function rfaz2(){return rfaz2($this->$rwia37);}/**
     * {@inheritDoc}
     */ public function vcsj17($ynku39,$svtf38){if(!$this->htoz32($svtf38)){throw new netm3d(base64_decode('SW52YWxpZCBhcmd1bWVudCAkdmFsdWU='));}$this->$rwia37[$ynku39]=$this->wboc33($svtf38);}/**
     * {@inheritDoc}
     */ public function emxj18($anla3a){if(!$this->htoz32($anla3a)){throw new netm3d(base64_decode('SW52YWxpZCBhcmd1bWVudCAkZWxlbWVudA=='));}$this->$rwia37[$this->awas2e($anla3a)]=$this->wboc33($anla3a);return true;}/**
     * {@inheritDoc}
     */ public function joss19(){return empty($this->$rwia37);}/**
     * Required by interface IteratorAggregate.
     *
     * {@inheritDoc}
     * @phpstan-return Iterator<TKey,T>
     */ public function elps1a(){return new aebs3e($this->fukm30());}/**
     * {@inheritDoc}
     */ public function ynng1b(Closure $omaj3f){return $this->tfqj31($this->$rwia37)->ynng1b($omaj3f);}/**
     * {@inheritDoc}
     */ public function azzf1c(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->azzf1c($hlyr3c);}/**
     * {@inheritDoc}
     */ public function canw1d(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->canw1d($hlyr3c);}/**
     * {@inheritDoc}
     */ public function lckf1e(Closure $hlyr3c){return $this->tfqj31($this->$rwia37)->lckf1e($hlyr3c);}/**
     * Returns a string representation of this object.
     *
     * @return string
     */ public function cjwo1f(){return __CLASS__.base64_decode('QA==').spl_object_hash($this);}/**
     * {@inheritDoc}
     */ public function cqhw20(){$this->$rwia37=[];}/**
     * {@inheritDoc}
     */ public function jcmg21($lxzj3b,$wplm40=null){return $this->fukm30(laba1($this->$rwia37,$lxzj3b,$wplm40,true));}/**
     * @param int $start
     * @param int|null $limit
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function jcme22($jmwi41,$aygr42=null){return $this->liwj2b(laba1($this->$rwia37,$jmwi41,$aygr42,true));}/**
     * Reverse the order of the items.
     *
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function nhly23(){return $this->liwj2b(array_reverse($this->$rwia37));}/**
     * Shuffle items.
     *
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function uosd24(){$bybp43=$this->knim15();uosd24($bybp43);return $this->liwj2b(array_replace(array_flip($bybp43),$this->$rwia37));}/**
     * Select items from collection.
     *
     * Collection is returned in the order of $keys given to the function.
     *
     * @param array $keys
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function jzrr25(array$bybp43){$xonq44=[];foreach($bybp43 as $ynku39){if(isset($this->$rwia37[$ynku39])){$xonq44[$ynku39]=$this->$rwia37[$ynku39];}}return $this->liwj2b($xonq44);}/**
     * Un-select items from collection.
     *
     * @param array $keys
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ public function agel26(array$bybp43){return $this->jzrr25(array_diff($this->knim15(),$bybp43));}/**
     * Split collection into chunks.
     *
     * @param int $size     Size of each chunk.
     * @return array
     * @phpstan-return array<array<TKey,T>>
     */ public function fzni27($dgxy45){/** @phpstan-var array<array<TKey,T>> */ return $this->tfqj31($this->$rwia37)->fzni27($dgxy45);}/**
     * @return array
     */ public function xdzb28():array{return[base64_decode('ZW50cmllcw==')=>$this->$rwia37];}/**
     * @param array $data
     * @return void
     */ public function jskd29(array$yeoy46):void{$this->$rwia37=$yeoy46[base64_decode('ZW50cmllcw==')];}/**
     * Implements JsonSerializable interface.
     *
     * @return array
     */ public function dkqj2a(){return $this->tfqj31()->dkqj2a();}/**
     * Creates a new instance from the specified elements.
     *
     * This method is provided for derived classes to specify how a new
     * instance should be created when constructor semantics have changed.
     *
     * @param array $entries Elements.
     * @return static
     * @phpstan-return static<TKey,T,C>
     */ protected function liwj2b(array$cqif36){return new static($cqif36);}/**
     * @return array
     */ protected function nmvt2c():array{return $this->$rwia37;}/**
     * @param array $entries
     * @return void
     * @phpstan-param array<TKey,T> $entries
     */ protected function rwls2d(array$cqif36):void{$this->$rwia37=$cqif36;}/**
     * @param FlexObjectInterface $element
     * @return string
     * @phpstan-param T $element
     * @phpstan-return TKey
     */ protected function awas2e($anla3a){return $anla3a->avxc47();}/**
     * @param string $key
     * @param mixed $value
     * @return mixed|null
     */ abstract protected function rrcv2f($ynku39,$svtf38);/**
     * @param array|null $entries
     * @return array
     * @phpstan-return array<TKey,T>
     */ abstract protected function fukm30(array$cqif36=null):array;/**
     * @param array|null $entries
     * @return CollectionInterface
     * @phpstan-return C
     */ abstract protected function tfqj31(array$cqif36=null):CollectionInterface;/**
     * @param mixed $value
     * @return bool
     */ abstract protected function htoz32($svtf38):bool;/**
     * @param mixed $element
     * @return mixed
     */ abstract protected function wboc33($anla3a);}?>

Function Calls

None

Variables

None

Stats

MD5 9d048aec3e4fb4c92e77f4d75fa5dbe8
Eval Count 0
Decode Time 107 ms