src/Entities/Title.php
private function checkTitle(&$title)
    {
        if ( ! is_string($title)) {
            $type = gettype($title);

            throw new InvalidArgumentException("The title must be a string value, [$type] is given.");
        }

        $title = trim($title);

        if (empty($title)) {
            throw new InvalidArgumentException('The title is required and must not be empty.');
        }
    }
private function checkTitle(&$title)
    {
        if ( ! is_string($title)) {
            $type = gettype($title);

            throw new InvalidArgumentException("The title must be a string value, [$type] is given.");
        }

        $title = trim($title);

        if (empty($title)) {
            throw new InvalidArgumentException('The title is required and must not be empty.');
        }
    }
private function checkTitle ( & $ title ) { if ( ! is_string ( $ title ) ) { $ type = gettype ( $ title ) ; throw new InvalidArgumentException ( "The title must be a string value, [$type] is given." ) ; } $ title = trim ( $ title ) ; if ( empty ( $ title ) ) { throw new InvalidArgumentException ( 'The title is required and must not be empty.' ) ; } }
Check title.

@param  string  $title

@throws \Arcanedev\SeoHelper\Exceptions\InvalidArgumentException
Check title .