Display the splash.

@param string $text
@param bool   $hide_splash

@return void

@SuppressWarnings(PHPMD.BooleanArgumentFlag)
428439
protected function splash($text, $hide_splash = false)
    {
        if (!$hide_splash) {
            $this->line('');
            $this->line('    ___        _                     _        ');
            $this->line('   /   \ __ _ | |_  __ _  ___   ___ | |_  ___ ');
            $this->line("  / /\ // _` || __|/ _` |/ __| / _ \| __|/ __|");
            $this->line(' / /_//| (_| || |_| (_| |\__ \|  __/| |_ \__ \\');
            $this->line("/___,'  \__,_| \__|\__,_||___/ \___| \__||___/");
            $this->line('');
            $this->line('                                By H&H|Digital');
            $this->line('');
            $this->line($text);
            $this->line('');
        }
    }
968828
public function render(string $text)
    {
        $text = explode("\n", trim($text));
        $min  = PHP_INT_MAX;
        $max  = 0;
        foreach ($text as $line) {
            $len = strlen(strip_tags($line, $this->options[self::ALLOWED_TAGS]));
            if ($len > $max) {
                $max = $len;
            }
            if ($len < $min) {
                $min = $len;
            }
        }

        // excluding border
        $cols = $max + $this->options[self::PADDING_LEFT_RIGHT] * 2;

        $lines = [];

        // top margin
        for ($i = 0; $i < $this->options[self::MARGIN_TOP]; $i++) {
            $lines[] = '';
        }

        // top
        $lines[] = $this->options[self::TOP_LEFT]
            . implode('', array_fill(0, $cols, $this->options[self::HORIZONTAL_LINE]))
            . $this->options[self::TOP_RIGHT];

        // padding top
        for ($i = 0; $i < $this->options[self::PADDING_TOP_BOTTOM]; $i++) {
            $lines[] = $this->options[self::VERTICAL_LINE]
                . implode('', array_fill(0, $cols, ' '))
                . $this->options[self::VERTICAL_LINE];
        }

        // text
        for ($i = 0; $i < count($text); $i++) {
            $length = strlen(strip_tags($text[$i], $this->options[self::ALLOWED_TAGS]));
            $left   = $this->options[self::CENTERED]
                ? $this->options[self::PADDING_LEFT_RIGHT] + (int)floor(($max - $length) / 2)
                : $this->options[self::PADDING_LEFT_RIGHT];
            $right  = $this->options[self::CENTERED]
                ? $this->options[self::PADDING_LEFT_RIGHT] + (int)ceil(($max - $length) / 2)
                : $cols - $length - $this->options[self::PADDING_LEFT_RIGHT];
            $lines[] = $this->options[self::VERTICAL_LINE]
                . implode('', array_fill(0, $left, ' '))
                . $text[$i]
                . implode('', array_fill(0, $right, ' '))
                . $this->options[self::VERTICAL_LINE];
        }

        // padding bottom
        for ($i = 0; $i < $this->options[self::PADDING_TOP_BOTTOM]; $i++) {
            $lines[] = $this->options[self::VERTICAL_LINE]
                . implode('', array_fill(0, $cols, ' ')) . $this->options[self::VERTICAL_LINE];
        }

        // bottom
        $lines[] = $this->options[self::BOTTOM_LEFT]
            . implode('', array_fill(0, $cols, $this->options[self::HORIZONTAL_LINE]))
            . $this->options[self::BOTTOM_RIGHT];

        // bottom margin
        for ($i = 0; $i < $this->options[self::MARGIN_BOTTOM]; $i++) {
            $lines[] = '';
        }

        $this->stream->write(implode("\n", $lines));
    }
44463
public function addMessage($text)
	{
		$this->isValid = false;
		$this->messages[] = $this->commonComment . $text;
	}
1094582
public function addRaw($text)
	{
		$this->response[] = array(
			'message' => $text
		);

		if ($this->isInteractive())
		{
			$this->render(true);
		}
	}
402654
public void init(String text)
    {
        this.setOpaque(true);
        this.setHorizontalTextPosition(JToggleButton.LEFT);
        this.setAlignmentX(JComponent.CENTER_ALIGNMENT);
    }
1344709
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $input_tag = $this->getInputTag();
        $input_tag->display();

        if (!$this->autocomplete) {
            $nonce_tag = new SwatHtmlTag('input');
            $nonce_tag->type = 'hidden';
            $nonce_tag->name = $this->id . '_nonce';
            $nonce_tag->value = $this->getNonce();
            $nonce_tag->display();
        }
    }
934593
protected function onSetText(string $text): void
    {
        parent::onSetText($text);

        $this->isInvalid = false;
        $this->value = null;

        if ($this->hasError()) {
            return;
        }

        if ($this->isEmpty()) {
            return;
        }

        if (!preg_match('/^[-+]?[0-9]+$/', $text)) {
            $this->setError('Invalid value');
            $this->isInvalid = true;

            return;
        }

        $value = intval($text);

        if ($this->minimumValue !== null && $value < $this->minimumValue || $this->maximumValue !== null && $value > $this->maximumValue) {
            $this->setError('Invalid value');
            $this->isInvalid = true;

            return;
        }

        $this->value = $value;
    }
863490
private function tag_text($text)
	{
		if($this->current_tag instanceof Node_Container_Tag)
		{
			$accepted_children = $this->bbcodes[$this->current_tag->tag()]->accepted_children();

			if(!empty($accepted_children) && !in_array('text_node', $accepted_children))
				return;
		}

		$this->current_tag->add_child(new Node_Text($text));
	}
898376
public function pushLogToSession(bool $clean): void
    {
        //====================================================================//
        // Decide if Current Logged User Needs to Be Notified or Not
        if (!$this->isAllowedNotify()) {
            return;
        }
        //====================================================================//
        // Catch Splash Errors
        if (!empty(Splash::log()->err)) {
            foreach (Splash::log()->err as $message) {
                $this->session->getFlashBag()->add('error', $message);
            }
        }
        //====================================================================//
        // Catch Splash Warnings
        if (!empty(Splash::log()->war)) {
            foreach (Splash::log()->war as $message) {
                $this->session->getFlashBag()->add('warning', $message);
            }
        }
        //====================================================================//
        // Catch Splash Messages
        if (!empty(Splash::log()->msg)) {
            foreach (Splash::log()->msg as $message) {
                $this->session->getFlashBag()->add('success', $message);
            }
        }
        //====================================================================//
        // Clear Splash Log
        if ($clean) {
            Splash::log()->cleanLog();
        }
    }
43752
public static function out(string $text, $out = STDOUT)
    {
        if (!isset($output)) {
            $output = function ($text) use ($out) {
                fwrite($out, $text);
            };
        }

        $text = str_replace("\n", PHP_EOL, $text);
        $text = Ansi::tagsToColors($text);
        fwrite($out, $text);
    }
1257558
public function parseMessage($text, $hide_smilies = 0)
    {
        if (ForumSettings::get('o_censoring') == '1') {
            $text = Utils::censor($text);
        }

        // FIXME check text length
        if ($hide_smilies) {
            $this->parser->disablePlugin('Emoticons');
        }
        if (ForumSettings::get('p_message_img_tag') !== '1' ||
            ForumSettings::get('p_sig_img_tag') !== '1' ||
            User::get()['show_img'] !== '1' ||
            User::get()['show_img_sig'] !== '1'
        ) {
            $this->parser->disablePlugin('Autoimage');
            $this->parser->disablePlugin('Autovideo');
        }

        $xml  = $this->parser->parse($text);
        $html = $this->renderer->render($xml);
        return $html;
    }
478270
function (text) {
            var self = this;
            if (!self.inPre) {
                // collapse whitespace
                text = collapseWhitespace(text);
            }
            self.append(text);
        }
930758
def set_splash(self, message):
        """"""
        if self.splash is None:
            return
        if message:
            logger.info(message)
        self.splash.show()
        self.splash.showMessage(message, Qt.AlignBottom | Qt.AlignCenter |
                                Qt.AlignAbsolute, QColor(Qt.white))
        QApplication.processEvents()
601431
protected function onSetText(string $text): void
    {
        parent::onSetText($text);

        $this->isInvalid = false;
        $this->value = null;

        if ($this->hasError()) {
            return;
        }

        if ($this->isEmpty()) {
            return;
        }

        $this->value = Url::tryParse($text);

        if ($this->value === null) {
            $this->setError('Invalid value');
            $this->isInvalid = true;
        }
    }
295997
private void showToast(@Nullable final String text) {
        if (toast != null) {
            toast.cancel();
        }

        toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);
        toast.show();
    }
1282411
public function outputLine(string $text = '', array $arguments = []): void
    {
        $this->output($text . PHP_EOL, $arguments);
    }
384341
public function th(string $text = '', array $attributes = []): void
    {
        $this->tdArray[] = Tags::th($text, $attributes);
    }