Returns the on empty texts for the autofilter snippets

@static boolean $warned Listen very closely. I shall tell this only once!
@return string
322366
public function getOnEmptyText()
    {
        static $warned;

        $dir = $this->getPath(false, 'index');

        if (! is_dir($dir)) {
            try {
                \MUtil_File::ensureDir($dir);

            } catch (\Zend_Exception $e) {
                $text = $e->getMessage();

                if (! $warned) {
                    $warned = true;
                    $this->addMessage($text);
                }
                return $text;
            }
        }

        return parent::getOnEmptyText();
    }
324740
public function getMessage($withWarning=false) {
		if ($withWarning) return $this->messageList->firstErrorOrWarning();
		return $this->messageList->firstErrorText();
	}
899652
public function getFirstWarning(string $messageTypeFilter = null)
    {
        $matchingWarnings = $this->filterMessages($this->warnings, $messageTypeFilter);
        reset($matchingWarnings);
        return current($matchingWarnings);
    }
1364398
public static function getDetectionRulesExtended()
    {
        static $rules;

        if (!$rules) {
            $rules = static::mergeRules(
                static::$desktopDevices, // NEW
                static::$phoneDevices,
                static::$tabletDevices,
                static::$operatingSystems,
                static::$additionalOperatingSystems, // NEW
                static::$browsers,
                static::$additionalBrowsers, // NEW
                static::$utilities
            );
        }

        return $rules;
    }
825974
public function fullMessage() {
		if($this->self)
			$str = (string)$this->self.':';
		else
			$str = (string)$this->first().':';

		foreach($this->rules as $rule)
			$str .= "\n\t".$rule;

		foreach($this->attributes as $attribute)
			$str .= "\n\t".$attribute->first();

		return $str;
	}
765154
private function getLastXMLErrorMessage()
    {
        $errorMessage = null;
        $error = libxml_get_last_error();

        if ($error !== false) {
            $errorMessage = trim($error->message);
        }

        return $errorMessage;
    }
41321
public function getCommandName($filtered = true)
    {
        if ($this->command) {
            if ($filtered) {
                return $this->filterArtisanCommand($this->command);
            } else {
                return $this->command;
            }
        }

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

        if (isset($this->callback) && is_string($this->callback)) {
            return $this->callback;
        }

        return 'Unnamed Closure';
    }
626253
public function getFullDescription()
    {
        if ($this->longDescription !== null) {
            return $this->shortDescription . "\n\n" . $this->longDescription;
        } else {
            return $this->shortDescription;
        }
    }
669134
public function filterUnReadMessagesTo($to = '')
    {
        $filteredResult = $this->filterTo($to);
        $filteredMessages = [];

        if (is_array($filteredResult) && count($filteredResult) > 0) {
            foreach ($filteredResult as $message) {
                if (isset($message['header'])) {
                    $header = $message['header'];
                    if ($header->Unseen == 'U') {
                        $filteredMessages[] = $message;
                    }
                }
            }
        }

        return $filteredMessages;
    }
956206
public function email() : Text
    {
        return $this->pipe(
            self::predicate(
                function (string $value) : bool {
                    return filter_var($value, FILTER_VALIDATE_EMAIL) !== false;
                },
                'not an email'
            )
        );
    }
950763
public function getMainScriptContents()
    {
        if (null !== ($path = $this->getMainScriptPath())) {
            $path = $this->getBasePath() . DIRECTORY_SEPARATOR . $path;

            if (false === ($contents = @file_get_contents($path))) {
                $errors = error_get_last();
                if ($errors === null) {
                    $errors = array('message' => 'failed to get contents of \''.$path.'\'');
                }

                throw new RuntimeException($errors['message']);
            }

            return preg_replace('/^#!.*\s*/', '', $contents);
        }

        return null;
    }
558648
public function ignoreEmpty()
    {
        $this->filter(function ($value) {
            return !Text::make($value)->isEmpty();
        }, Type::STRINGIFABLE);

        return $this;
    }
562625
private function getRecomText($each_recom)
    {
        $text = $each_recom->find('.recommendations-user-recs-text', 0)->plaintext;
        $text = preg_replace('/\s{2,}/', "\n", $text);

        return $text;
    }
1026496
protected function messageWasSentWithinThreshold()
    {
        $wasSentWithinThreshold = false;

        /** @var int $threshold Threshold in seconds */
        $threshold = Registry::get(\OxidEsales\Eshop\Core\ConfigFile::class)->getVar('offlineWarningInterval');
        if (file_exists($this->offlineWarningTimestampFile)) {
            $lastSentTimestamp = (int) file_get_contents($this->offlineWarningTimestampFile);
            $lastSentBefore = time() - $lastSentTimestamp;
            if ($lastSentBefore < $threshold) {
                $wasSentWithinThreshold = true;
            }
        }

        return $wasSentWithinThreshold;
    }
518634
public function getReasonPhrase()
    {
        $code = $this->getStatusCode();

        return $this->code === $code && $this->phrase
            ? $this->phrase
            : (isset($this->defaultStatuses[$code]) ? $this->defaultStatuses[$code] : '');
    }
112643
public static function get_random_notification() {
		if ( ( time() - self::get_last_active_notification_timestamp() ) < self::TIME_BETWEEN_NOTIFICATIONS * DAY_IN_SECONDS ) {
			return [];
		}

		$notifications = self::$notifications;
		$notifications = array_filter(
			$notifications,
			function ( $value ) {
				if ( isset( $value['sticky'] ) && true === $value['sticky'] ) {
					return true;
				}

				return false;
			}
		);
		// No priority notifications, use all.
		if ( empty( $notifications ) ) {
			$notifications = self::$notifications;
		}
		if ( empty( $notifications ) ) {
			return [];
		}
		$notifications = array_values( $notifications );

		return $notifications[ array_rand( $notifications, 1 ) ];

	}
776794
protected function _getPlainText()
    {
        if (empty($this->_properties['text'])) {
            return null;
        }

        //Loads the `BBCode` helper
        $BBCode = (new HelperRegistry(new View))->load('MeTools.BBCode');

        return trim(strip_tags($BBCode->remove($this->_properties['text'])));
    }