JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/billetterie/modules/mollie/src/Adapter/
Upload File :
Current File : /home/cinepatreb/billetterie/modules/mollie/src/Adapter/ToolsAdapter.php

<?php
/**
 * Mollie       https://www.mollie.nl
 *
 * @author      Mollie B.V. <info@mollie.nl>
 * @copyright   Mollie B.V.
 * @license     https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
 *
 * @see        https://github.com/mollie/PrestaShop
 * @codingStandardsIgnoreStart
 */

namespace Mollie\Adapter;

use Tools;

if (!defined('_PS_VERSION_')) {
    exit;
}

class ToolsAdapter
{
    public function strlen($str): string
    {
        return Tools::strlen($str);
    }

    public function substr($str, $start, $length = false): string
    {
        return Tools::substr($str, $start, $length);
    }

    public function displayPrice($price, $currency): string
    {
        // TODO replace all displayPrice calls with Locale::formatPrice()
        return Tools::displayPrice($price, $currency);
    }

    public function getValue(string $key, string $defaultValue = null)
    {
        $result = Tools::getValue($key, $defaultValue);

        return !empty($result) ? $result : null;
    }

    public function isSubmit(string $string): bool
    {
        return (bool) Tools::isSubmit($string);
    }
}

xxxxx1.0, XXX xxxx