src/Helpers/Meta.php
private function checkNameProperty(&$nameProperty)
    {
        if ( ! is_string($nameProperty)) {
            throw new InvalidArgumentException(
                'The meta name property is must be a string value, '.gettype($nameProperty).' is given.'
            );
        }

        $name    = Str::slug($nameProperty);
        $allowed = ['charset', 'http-equiv', 'itemprop', 'name', 'property'];

        if ( ! in_array($name, $allowed)) {
            throw new InvalidArgumentException(
                "The meta name property [$name] is not supported, ".
                "the allowed name properties are ['".implode("', '", $allowed)."']."
            );
        }

        $nameProperty = $name;
    }
private function checkNameProperty(&$nameProperty)
    {
        if ( ! is_string($nameProperty)) {
            throw new InvalidArgumentException(
                'The meta name property is must be a string value, '.gettype($nameProperty).' is given.'
            );
        }

        $name    = Str::slug($nameProperty);
        $allowed = ['charset', 'http-equiv', 'itemprop', 'name', 'property'];

        if ( ! in_array($name, $allowed)) {
            throw new InvalidArgumentException(
                "The meta name property [$name] is not supported, ".
                "the allowed name properties are ['".implode("', '", $allowed)."']."
            );
        }

        $nameProperty = $name;
    }
private function checkNameProperty ( & $ nameProperty ) { if ( ! is_string ( $ nameProperty ) ) { throw new InvalidArgumentException ( 'The meta name property is must be a string value, ' . gettype ( $ nameProperty ) . ' is given.' ) ; } $ name = Str :: slug ( $ nameProperty ) ; $ allowed = [ 'charset' , 'http-equiv' , 'itemprop' , 'name' , 'property' ] ; if ( ! in_array ( $ name , $ allowed ) ) { throw new InvalidArgumentException ( "The meta name property [$name] is not supported, " . "the allowed name properties are ['" . implode ( "', '" , $ allowed ) . "']." ) ; } $ nameProperty = $ name ; }
Check the name property.

@param  string  $nameProperty

@throws InvalidArgumentException
Check the name property .