Fenos\Notifynder\Builder\BuilderRules::isReadyArrToFormatInJson PHP Method

isReadyArrToFormatInJson() protected method

Check if the array passed is multidimensional.
protected isReadyArrToFormatInJson ( array $arr ) : boolean
$arr array
return boolean
    protected function isReadyArrToFormatInJson(array $arr)
    {
        if ($this->isAssociativeArr($arr)) {
            return true;
        }
        if (count($arr) > 0) {
            $error = "The 'extra' value must to be an associative array";
            throw new InvalidArgumentException($error);
        }
        return false;
    }