return $this->configuration = Configuration::
fromRegex($mode);
} if (preg_match('/^[1-9][0-9]*$/',
(string) $mode)) { return $this->configuration = Configuration::
fromNumber($mode);
} if (!
$mode) { return $this->configuration = Configuration::
fromNumber(0
);
} return $this->configuration = Configuration::
fromUrlEncodedString((string) $mode);
} /**
* @param string $str
* @param bool $red
*
* @return string
*/
private static function colorize($str,
$red) { if (!self::
hasColorSupport()) {