| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | ], $options); | 
| 35 | 35 | |
| 36 | 36 |          if ($options['escape']) { | 
| 37 | -            $words = array_map(function ($word) { | |
| 37 | +            $words = array_map(function($word) { | |
| 38 | 38 | return preg_quote($word, '/'); | 
| 39 | 39 | }, $words); | 
| 40 | 40 | } | 
| @@ -52,7 +52,7 @@ | ||
| 52 | 52 | $all = []; | 
| 53 | 53 | |
| 54 | 54 |          foreach ($this->multiLine as $name => $comment) { | 
| 55 | -            $comment = array_map(function ($e) { return preg_quote($e, '/'); }, $comment); | |
| 55 | +            $comment = array_map(function($e) { return preg_quote($e, '/'); }, $comment); | |
| 56 | 56 | |
| 57 | 57 |              $all[] = [$name, "/{$comment[0]}(.*?){$comment[1]}/ms"]; | 
| 58 | 58 | } | 
| @@ -45,14 +45,14 @@ | ||
| 45 | 45 | |
| 46 | 46 | public static function rearrange(array $array, array $keys) | 
| 47 | 47 |      { | 
| 48 | -        return array_combine($keys, array_map(function ($key) use ($array) { | |
| 48 | +        return array_combine($keys, array_map(function($key) use ($array) { | |
| 49 | 49 | return $array[$key]; | 
| 50 | 50 | }, $keys)); | 
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | 53 | public static function column(array $array, $index) | 
| 54 | 54 |      { | 
| 55 | -        return array_map(function ($e) use ($index) { return $e[$index]; }, $array); | |
| 55 | +        return array_map(function($e) use ($index) { return $e[$index]; }, $array); | |
| 56 | 56 | } | 
| 57 | 57 | |
| 58 | 58 | public static function find(array $array, callable $tester) | 
| @@ -62,7 +62,7 @@ | ||
| 62 | 62 | |
| 63 | 63 | /** | 
| 64 | 64 | * @param Language|callable|string $language | 
| 65 | - * @param array[string] $aliases | |
| 65 | + * @param string[] $aliases | |
| 66 | 66 | */ | 
| 67 | 67 |      public function registerLanguage($language, $aliases) { | 
| 68 | 68 | $this->_languages = array_merge($this->_languages, array_fill_keys($aliases, $language)); | 
| @@ -113,7 +113,7 @@ | ||
| 113 | 113 | } | 
| 114 | 114 | |
| 115 | 115 | /** | 
| 116 | - * @param mixed $class | |
| 116 | + * @param string $class | |
| 117 | 117 | * | 
| 118 | 118 | * @throws \InvalidArgumentException | 
| 119 | 119 | */ | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | * @param $styles | 
| 36 | 36 | */ | 
| 37 | 37 |      public function __construct($styles = false) { | 
| 38 | - $this->_styles = $styles ?: include __DIR__.'/../Styles/Cli/Default.php'; | |
| 38 | + $this->_styles = $styles ?: include __DIR__ . '/../Styles/Cli/Default.php'; | |
| 39 | 39 | } | 
| 40 | 40 | |
| 41 | 41 | public function format(TokenIterator $tokens) | 
| @@ -55,7 +55,7 @@ discard block | ||
| 55 | 55 | |
| 56 | 56 | $last = $token->pos; | 
| 57 | 57 | } | 
| 58 | - $result .= substr($source, $last).Console::reset(); | |
| 58 | + $result .= substr($source, $last) . Console::reset(); | |
| 59 | 59 | |
| 60 | 60 | return $result; | 
| 61 | 61 | } | 
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 | 'INTERSECT', 'INTERVAL', 'INTO', 'IS', 'ITERATE', 'LANGUAGE', 'LARGE', 'LATERAL', 'LEADING', | 
| 41 | 41 | 'LEAVE', 'LEFT', 'LIKE', 'LOCAL', 'LOOP', 'MATCH', 'MEMBER', 'MERGE', 'METHOD', 'MODIFIES', | 
| 42 | 42 | 'MODULE', 'MONTH', 'MULTISET', 'NATIONAL', 'NATURAL', 'NCHAR', 'NCLOB', 'NEW', 'NO', 'NONE', 'NOT', | 
| 43 | - 'OF', 'OLD', 'ON', 'ONLY', 'OPEN', 'OR', 'ORDER', 'OUT','OUTER', 'OUTPUT', 'OVER', | |
| 43 | + 'OF', 'OLD', 'ON', 'ONLY', 'OPEN', 'OR', 'ORDER', 'OUT', 'OUTER', 'OUTPUT', 'OVER', | |
| 44 | 44 | 'OVERLAPS', 'PARAMETER', 'PARTITION', 'PRECISION', 'PREPARE', 'PRIMARY', 'PROCEDURE', 'RANGE', 'READS', | 
| 45 | 45 | 'RECURSIVE', 'REF', 'REFERENCES', 'REFERENCING', 'RELEASE', | 
| 46 | 46 | 'REPEAT', 'RESIGNAL', 'RESULT', 'RETURN', 'RETURNS', 'REVOKE', 'RIGHT', 'ROLLBACK', 'ROLLUP', 'ROW', | 
| @@ -28,7 +28,7 @@ | ||
| 28 | 28 | $js = new JavaScriptLanguage(); | 
| 29 | 29 | |
| 30 | 30 | return array_merge(parent::getRules(), [ | 
| 31 | - 'language.'.$js->getIdentifier() => [ | |
| 31 | + 'language.' . $js->getIdentifier() => [ | |
| 32 | 32 |                  new OpenRule(new RegexMatcher('/<script.*?>()/'), [ | 
| 33 | 33 |                      'factory'     => new TokenFactory('Kadet\\Highlighter\\Parser\\LanguageToken'), | 
| 34 | 34 | 'inject' => $js, | 
| @@ -59,7 +59,7 @@ | ||
| 59 | 59 |          foreach (array_keys($this->_pending) as $position) { | 
| 60 | 60 | uasort( | 
| 61 | 61 | $this->_tokens[$position], | 
| 62 | - Token::class.'::compare' | |
| 62 | + Token::class . '::compare' | |
| 63 | 63 | ); | 
| 64 | 64 | } | 
| 65 | 65 | $this->_pending = []; |