Checks/fixes so the artTitle input is valid.

@param string &$artTitle Article title.

@throws KlarnaException
@return void
421071
private function _checkArtTitle(&$artTitle)
    {
        if (!is_string($artTitle)) {
            $artTitle = strval($artTitle);
        }
        if (!isset($artTitle) || strlen($artTitle) == 0) {
            throw new Klarna_ArgumentNotSetException("artTitle", 50059);
        }
    }
173154
private function _checkArtNo(&$artNo)
    {
        if (is_numeric($artNo) && !is_string($artNo)) {
            //Convert artNo to string if integer.
            $artNo = strval($artNo);
        }
        if (!isset($artNo) || strlen($artNo) == 0 || (!is_string($artNo))) {
            throw new Klarna_ArgumentNotSetException("artNo");
        }
    }
163324
public void setTitleText(final String title, final Serializable... args) {
		ValidationErrorsModel model = getOrCreateComponentModel();
		model.title = I18nUtilities.asMessage(title, args);
	}
217099
public function setTitle($title, $both = true)
    {
        $this->data['_head_title'] = strip_tags($title);

        if ($both && !isset($this->data['_page_title'])) {
            $this->setPageTitle($title);
        }
    }
968117
protected function onBeforeWrite() {
        parent::onBeforeWrite();
        
        //If the title is not present make one from the translated singular name and the Kapost Reference ID
        $title=$this->Title;
        if(empty($title)) {
            $this->Title=$this->i18n_singular_name().': '.$this->KapostRefID;
        }
    }
74239
public function setBodyTitle($title)
    {
        $this->getResponse()->getTheme()->setBodyTitle($title);
        $this->_title = $title;
    }
351508
protected function _setTitleAttr($title, array $options = [])
    {
        if (!Arr::key('title', $options)) {
            $options['title'] = strip_tags($title);
        }

        return $options;
    }
1179512
public function setTitle($title)
    {
        if (strlen($title) == 0) {
            throw new \InvalidArgumentException(sprintf('Channel title should not be empty'));
        }

        $this->title = $title;

        return $this;
    }
1059563
public function setProcessTitle(string $title = null)
    {
        if ($title === null) {
            return;
        }

        if (strlen($title) === 0) {
            throw new \InvalidArgumentException('Process title cannot be empty');
        }

        // @codeCoverageIgnoreStart
        if (!function_exists('cli_set_process_title')) {
            $this->getLogger()->warning("function [cli_set_process_title] does not exists");

            return;
        }
        // @codeCoverageIgnoreEnd

        try {
            cli_set_process_title($title);
        } catch (\Throwable $e) {
            if ($e->getCode() === 2) {
                $this->getLogger()->warning($e->getMessage() . ". Probably, permission denied to set process title. Try again with privileged user");
            } else {
                throw $e;
            }
        }

    }
567174
protected function setPageTitle($title) {

        $this->pageTitle = $title;

        $args = array('class' => 'title');
        $titleTag = \MUtil_Html::create('h3', $title, $args);

        $this->html->append($titleTag);
    }
770777
public static function setTitle(string $title): bool
    {
        if (!$title || 'Darwin' === \PHP_OS) {
            return false;
        }

        if (\function_exists('cli_set_process_title')) {
            \cli_set_process_title($title);
        } elseif (\function_exists('setproctitle')) {
            \setproctitle($title);
        }

        if ($error = \error_get_last()) {
            throw new \RuntimeException($error['message']);
        }

        return false;
    }
1047260
@Override
    public void setTitle(String title)  {
        addField(ConfigureNodeFields.title, FormField.Type.text_single);
        setAnswer(ConfigureNodeFields.title.getFieldName(), title);
    }
1244311
public function setTitle($title = '')
    {
        if ('' == $title) {
            $title = 'GrowlNotify';
        }

        if (!is_string($title)) {
            throw new BuildException(
                '"title" attribute is invalid.' .
                ' Expect to be a string, actual is ' . gettype($title)
            );
        }

        $this->title = $title;
    }
697560
@Override
    public void setTitle(String title) {
        this.checkContextStatus();
        this.servletRequest.setAttribute(IPortletRenderer.ATTRIBUTE__PORTLET_TITLE, title);
    }
528976
private function addTitle($title)
    {
        $this->seoPage->addTitle($title);
        $this->seoPage->addMeta('name', 'title', $title);
    }
402973
public function setTitle( $title, $mode = 'set', $separator = ' | ' )
	{
		if( $mode == 'append' || $mode === 1 )
			$title	= $this->title.$separator.$title;
		else if( $mode == 'prepend' || $mode === -1 )
			$title	= $title.$separator.$this->title;
		$this->title	= $title;
	}
473545
public function set_title($title) {
        $title = format_string($title);
        $title = strip_tags($title);
        $title = str_replace('"', '&quot;', $title);
        $this->_title = $title;
    }