<commit_before><?php
declare(strict_types=1);
namespace Camoo\Sms;

/**
 * Class Constants
 *
 */
class Constants
{
    const CLIENT_VERSION = '3.1.3';
    const CLIENT_TIMEOUT = 10; // 10 sec
    const MIN_PHP_VERSION = 70100;
    const DS = '/';
    const END_POINT_URL = 'https://api.camoo.cm';
    const END_POINT_VERSION = 'v1';
    const APP_NAMESPACE = '\\Camoo\\Sms\\';
    const RESOURCE_VIEW = 'view';
    const RESOURCE_BALANCE = 'balance';
    const RESOURCE_ADD = 'topup';
    const RESPONSE_FORMAT = 'json';
    const ERROR_PHP_VERSION = 'Your PHP-Version belongs to a release that is no longer supported. You should upgrade your PHP version as soon as possible, as it may be exposed to unpatched security vulnerabilities';
    const SMS_MAX_RECIPIENTS = 50;
    const CLEAR_OBJECT = [\Camoo\Sms\Base::class, 'clear'];
    const MAP_MOBILE =[\Camoo\Sms\Lib\Utils::class,'mapMobile'];
    const PERSONLIZE_MSG_KEYS = ['%NAME%'];

    public static $asCredentialKeyWords = ['api_key', 'api_secret'];

    /**
    * @return string
    */
    public static function getPhpVersion() : string
    {
        if (!defined('PHP_VERSION_ID')) {
            $version = explode('.', PHP_VERSION);
            define('PHP_VERSION_ID', $version[0] * 10000 + $version[1] * 100 + $version[2]);
        }

        if (PHP_VERSION_ID < static::MIN_PHP_VERSION) {
            trigger_error(static::ERROR_PHP_VERSION, E_USER_ERROR);
        }

        return 'PHP/' . PHP_VERSION_ID;
    }

    public static function getSMSPath() : string
    {
        return dirname(__DIR__) .DIRECTORY_SEPARATOR;
    }
}
<commit_msg>Support external linter with PHP7.0<commit_after><?php
declare(strict_types=1);
namespace Camoo\Sms;

/**
 * Class Constants
 *
 */
class Constants
{
    const CLIENT_VERSION = '3.1.3';
    const CLIENT_TIMEOUT = 10; // 10 sec
    const MIN_PHP_VERSION = 70000;
    const DS = '/';
    const END_POINT_URL = 'https://api.camoo.cm';
    const END_POINT_VERSION = 'v1';
    const APP_NAMESPACE = '\\Camoo\\Sms\\';
    const RESOURCE_VIEW = 'view';
    const RESOURCE_BALANCE = 'balance';
    const RESOURCE_ADD = 'topup';
    const RESPONSE_FORMAT = 'json';
    const ERROR_PHP_VERSION = 'Your PHP-Version belongs to a release that is no longer supported. You should upgrade your PHP version as soon as possible, as it may be exposed to unpatched security vulnerabilities';
    const SMS_MAX_RECIPIENTS = 50;
    const CLEAR_OBJECT = [\Camoo\Sms\Base::class, 'clear'];
    const MAP_MOBILE =[\Camoo\Sms\Lib\Utils::class,'mapMobile'];
    const PERSONLIZE_MSG_KEYS = ['%NAME%'];

    public static $asCredentialKeyWords = ['api_key', 'api_secret'];

    /**
    * @return string
    */
    public static function getPhpVersion() : string
    {
        if (!defined('PHP_VERSION_ID')) {
            $version = explode('.', PHP_VERSION);
            define('PHP_VERSION_ID', $version[0] * 10000 + $version[1] * 100 + $version[2]);
        }

        if (PHP_VERSION_ID < static::MIN_PHP_VERSION) {
            trigger_error(static::ERROR_PHP_VERSION, E_USER_ERROR);
        }

        return 'PHP/' . PHP_VERSION_ID;
    }

    public static function getSMSPath() : string
    {
        return dirname(__DIR__) .DIRECTORY_SEPARATOR;
    }
}

{'fraction_non_alphanumeric': 0.12584615384615386, 'fraction_numerical': 0.01723076923076923, 'mean_word_length': 3.033498759305211, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1729980', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1046, 'n_words': 256}