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 /** * This file is part of the LidaaTwigBundle package. */ namespace Lidaa\TwigB..
Decoded Output download
<?php
/**
* This file is part of the LidaaTwigBundle package.
*/
namespace Lidaa\TwigBundle\Extension;
use Lidaa\TwigBundle\Helper\HelperFactoryInterface;
/**
* NumberExtension
*
* @author Lidaa <[email protected]>
*/
class NumberExtension extends \Twig_Extension
{
private $helper;
public function __construct(HelperFactoryInterface $helper)
{
$this->helper = $helper('number');
}
public function getFunctions()
{
$fonctions = array();
$fonctions['to_percent'] = new \Twig_Function_Method($this, 'toPercent');
$fonctions['to_readable_size'] = new \Twig_Function_Method($this, 'toReadableSize');
$fonctions['number_currency'] = new \Twig_Function_Method($this, 'NumberCurrency');
$fonctions['number_scientific'] = new \Twig_Function_Method($this, 'NumberScientific');
$fonctions['localized_number'] = new \Twig_Function_Method($this, 'localizedNumber');
$fonctions['localized_spellout'] = new \Twig_Function_Method($this, 'localizedSpellout');
return $fonctions;
}
public function localizedSpellout($number, $locale = null)
{
return $this->helper->localizedSpellout($number, $locale);
}
public function localizedNumber($number, $locale = null)
{
return $this->helper->localizedNumber($number, $locale);
}
public function NumberCurrency($number, $symbol = 'EUR', $locale = null)
{
return $this->helper->NumberCurrency($number, $symbol, $locale);
}
public function NumberScientific($number, $locale = null)
{
return $this->helper->NumberScientific($number, $locale);
}
public function toPercent($number)
{
return $this->helper->toPercent($number);
}
public function toReadableSize($number)
{
return $this->helper->toReadableSize($number);
}
public function getName()
{
return 'lidaa.number';
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the LidaaTwigBundle package.
*/
namespace Lidaa\TwigBundle\Extension;
use Lidaa\TwigBundle\Helper\HelperFactoryInterface;
/**
* NumberExtension
*
* @author Lidaa <[email protected]>
*/
class NumberExtension extends \Twig_Extension
{
private $helper;
public function __construct(HelperFactoryInterface $helper)
{
$this->helper = $helper('number');
}
public function getFunctions()
{
$fonctions = array();
$fonctions['to_percent'] = new \Twig_Function_Method($this, 'toPercent');
$fonctions['to_readable_size'] = new \Twig_Function_Method($this, 'toReadableSize');
$fonctions['number_currency'] = new \Twig_Function_Method($this, 'NumberCurrency');
$fonctions['number_scientific'] = new \Twig_Function_Method($this, 'NumberScientific');
$fonctions['localized_number'] = new \Twig_Function_Method($this, 'localizedNumber');
$fonctions['localized_spellout'] = new \Twig_Function_Method($this, 'localizedSpellout');
return $fonctions;
}
public function localizedSpellout($number, $locale = null)
{
return $this->helper->localizedSpellout($number, $locale);
}
public function localizedNumber($number, $locale = null)
{
return $this->helper->localizedNumber($number, $locale);
}
public function NumberCurrency($number, $symbol = 'EUR', $locale = null)
{
return $this->helper->NumberCurrency($number, $symbol, $locale);
}
public function NumberScientific($number, $locale = null)
{
return $this->helper->NumberScientific($number, $locale);
}
public function toPercent($number)
{
return $this->helper->toPercent($number);
}
public function toReadableSize($number)
{
return $this->helper->toReadableSize($number);
}
public function getName()
{
return 'lidaa.number';
}
}
Function Calls
| None |
Stats
| MD5 | 43f3b419c5164ef07e5e71e1b566e73f |
| Eval Count | 0 |
| Decode Time | 153 ms |