Check title.

@param  string  $title

@throws \Arcanedev\SeoHelper\Exceptions\InvalidArgumentException
540273
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.');
        }
    }
172095
public function title($title)
    {
        if ($this->isNotSetOrEmpty($title)) {
            throw CouldNotCreateButton::titleNotProvided();
        } elseif (mb_strlen($title) > 20) {
            throw CouldNotCreateButton::titleLimitExceeded($title);
        }

        $this->payload['title'] = $title;

        return $this;
    }
505287
public function setTitle($title) {
		if (is_array($title) && empty($title)) {
			$this->title = new \stdClass;
		} else {
			$this->title = $title;
		}

		return $this;
	}
426510
public function setTitle($title) {
        $this->title = $title;
        \LaraPageHead::addMetaProperty('og:title', $title);
        \LaraPageHead::addMetaName('twitter:title', $title);

        return $this;
    }
829592
protected function setTitle($title)
    {
        self::writeFullTag(
            $title,
            'title',
            false,
            'news:title',
            $this->validator,
            'validateTitle',
            $this->exception,
            'Provided title is not a valid value.'
        );

        return $this;
    }
922222
public function title($title = null)
    {
        if ($title === null) {
            return $this->title;
        }

        $title = $this->plain($title);

        if (empty($this->metas['title'])) {
            $this->metas['title'] = $title;
        }

        return $this->title = $title;
    }
74239
public function setBodyTitle($title)
    {
        $this->getResponse()->getTheme()->setBodyTitle($title);
        $this->_title = $title;
    }
234425
public function setTitle($title)
	{
		if ( $title == $this->getTitle() ) { return; }

		$this->_values['title'] = (string) $title;
		$this->setModified();
	}
1134556
public function setTitle($title, $subtitle = null)
    {
        $this->title = $title;
        $this->subtitle = $subtitle;
    }
47447
protected static function detectTitle(array $title)
    {
        $assignment = $title['assignment'];
        if ($assignment === null) {
            return;
        }

        $where = array_merge(
            Utils\Utils::arrayWhitelist($title, [
                'assignment',
                'our_number',
                'due',
            ]),
            [
                'ORDER' => [
                    'stamp' => 'DESC',
                    'id' => 'DESC',
                ],
            ]
        );

        $ids = Models\Title::dump($where, 'id');
        if (empty($ids)) {
            return;
        }
        return $ids[0];
    }
1058612
public function updateTitle($title)
    {
        $app = Application::getFacadeApplication();
        $this->fvTitle = $title;
        $this->save();
        $this->logVersionUpdate(self::UT_TITLE);
        $fve = new FileVersionEvent($this);
        $app->make(EventDispatcherInterface::class)->dispatch('on_file_version_update_title', $fve);
    }
654797
private function setTitle(string $title): FullNameEmbeddableInterface
    {
        $this->notifyEmbeddablePrefixedProperties(
            'title',
            $this->title,
            $title
        );
        $this->title = $title;

        return $this;
    }
914919
public function title($title)
    {
        if (mb_strlen($title) > 80) {
            throw CouldNotCreateCard::titleLimitExceeded($title);
        }

        $this->payload['title'] = $title;

        return $this;
    }
1100343
public function Title($Title = NULL, $Subtitle = NULL) {
      if (!is_null($Title))
         $this->SetData('Title', $Title);
      
      if (!is_null($Subtitle))
         $this->SetData('_Subtitle', $Subtitle);
      
      return $this->Data('Title');
   }
900793
public function setTitle($title)
    {
        $this->title = $title;
        $this->normalizedTitle = UrlUtil::normalize($title);
        return $this;
    }
813765
protected function getUnifiedTitle($title)
    {
        $title = mb_strtolower($title, 'utf8');
        $title = preg_replace('/\W+/u', ' ', $title);

        return trim($title);
    }
836585
public function rename($title)
    {
        if ($this->title !== $title) {
            $oldTitle = $this->title;
            $this->title = $title;

            $this->raise(new Renamed($this, $oldTitle));
        }

        return $this;
    }