/*
* This file is part of Psy Shell.
*
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
protected static $onlyControlCharsRx = '/^[\x00-\x1F\x7F]+$/';
protected static $controlCharsRx = '/([\x00-\x1F\x7F]+)/';
- protected static $controlCharsMap = array(
+ protected static $controlCharsMap = [
"\0" => '\0',
"\t" => '\t',
"\n" => '\n',
"\f" => '\f',
"\r" => '\r',
"\033" => '\e',
- );
+ ];
public function __construct(OutputFormatter $formatter, $forceArrayIndexes = false)
{
}
}
- protected function style($style, $value, $attr = array())
+ protected function style($style, $value, $attr = [])
{
if ('ref' === $style) {
$value = strtr($value, '@', '#');