<commit_before><?php
namespace Sender;

use Sender\SmsClass;
use Sender\Config\Config as ConfigClass;
use Sender\ExceptionClass\ParameterException;

/**
* This Class provide Promotional SMS APIs
*
* @package    Msg91 SMS&OTP package
* @author     VenkatS <<EMAIL>>
* @link       https://github.com/venkatsamuthiram/deliver
* @license
*/

class PromotionalSms
{
    private $promoAuthKey;
    public function __construct($authkey = null)
    {
       $this->promoAuthKey = $authkey;
    }
    /**
    *  Send promotional SMS MSG91 Service
    * @param  $mobileNumber  string 954845**54
    * @param  $data array
    *
    * @return response array(Json format)
    *
    * @throws error missing parameters or return empty
    */
    public static function sendPromotional($mobileNumber, $data)
    {
        $checkAuth = Validation::checkAuthKey($this->promoAuthKey);
        if (!$checkAuth) {
           // Get Envirionment variable and config file values
           $config          = new ConfigClass();
           $container       = $config->getDefaults(); 
        }
        $sendData = array(
            'authkey'     => $checkAuth ? $this->promoAuthKey : $container['common']['otpAuthKey'],<commit_msg>scrutinizer-ci bug code optimized<commit_after><?php
namespace Sender;

use Sender\SmsClass;
use Sender\Config\Config as ConfigClass;
use Sender\ExceptionClass\ParameterException;

/**
* This Class provide Promotional SMS APIs
*
* @package    Msg91 SMS&OTP package
* @author     VenkatS <<EMAIL>>
* @link       https://github.com/venkatsamuthiram/deliver
* @license
*/

class PromotionalSms
{
    private $promoAuthKey;
    public function __construct($authkey = null)
    {
       $this->promoAuthKey = $authkey;
    }
    /**
    *  Send promotional SMS MSG91 Service
    * @param  $mobileNumber  string 954845**54
    * @param  $data array
    *
    * @return array(Json format)
    *
    * @throws error missing parameters or return empty
    */
    public static function sendPromotional($mobileNumber, $data)
    {
        $checkAuth = Validation::checkAuthKey($this->promoAuthKey);
        if (!$checkAuth) {
           // Get Envirionment variable and config file values
           $config          = new ConfigClass();
           $container       = $config->getDefaults(); 
        }
        $sendData = array(
            'authkey'     => $checkAuth ? $this->promoAuthKey : $container['common']['otpAuthKey'],
{'fraction_non_alphanumeric': 0.11330861145447053, 'fraction_numerical': 0.009888751545117428, 'mean_word_length': 2.7353846153846155, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, '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': '1052070', 'n_tokens_mistral': 751, 'n_tokens_neox': 717, 'n_words': 175}