Completed
Push — master ( 6990bf...2bc697 )
by
unknown
09:23
created
Language/Assembler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                 new Rule(new CommentMatcher([';'], []), ['priority' => 2])
55 55
             ],
56 56
 
57
-            'variable.register' => new Rule(new RegexMatcher('/\b(' . implode('|', $this->registers) . ')\b/i')),
57
+            'variable.register' => new Rule(new RegexMatcher('/\b('.implode('|', $this->registers).')\b/i')),
58 58
             'number' => new Rule(new RegexMatcher('/\b(-?[0-9][0-9a-fA-F]*[tTdDhHOoqQbByY]?)\b/i')),
59 59
             'operator' => [
60 60
                 'punctuation' => new Rule(new RegexMatcher('/(,)/'), ['priority' => 0]),
Please login to merge, or discard this patch.
Language/CommonFeatures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public static function strings(array $strings, array $options = [])
32 32
     {
33
-        return array_map(function ($matcher) use ($options) {
33
+        return array_map(function($matcher) use ($options) {
34 34
             return new Rule(
35 35
                 $matcher instanceof MatcherInterface ? $matcher : new SubStringMatcher($matcher),
36 36
                 array_replace(['factory' => new TokenFactory(ContextualToken::class)], $options)
Please login to merge, or discard this patch.
Language/Perl.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             'string.nowdoc'  => new Rule(
62 62
                 new RegexMatcher('/<<\s*\'(\w+)\';(?P<string>.*?)\R\1/sm', [
63 63
                     'string' => Token::NAME,
64
-                          0  => 'keyword.nowdoc'
64
+                            0  => 'keyword.nowdoc'
65 65
                 ]),
66 66
                 ['context' => ['!comment']]
67 67
             ),
Please login to merge, or discard this patch.
Parser/TokenFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      *
49 49
      * @return false|Token|null
50 50
      */
51
-    public function create($name, $params = [ ])
51
+    public function create($name, $params = [])
52 52
     {
53 53
         if ($name !== null) {
54 54
             $name = $this->getName($name);
Please login to merge, or discard this patch.
Parser/Token/TerminatorToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
     protected function processEnd(Context $context, Language $language, Result $result, TokenIterator $tokens)
47 47
     {
48
-        $closing = array_filter($context->stack, function ($name) {
48
+        $closing = array_filter($context->stack, function($name) {
49 49
             return in_array($name, $this->closes);
50 50
         });
51 51
 
Please login to merge, or discard this patch.
Parser/Validator/Validator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function setRules($rules)
48 48
     {
49 49
         if (empty($rules)) {
50
-            $this->_rules = [ 'none' => Validator::CONTEXT_IN_ONE_OF ];
50
+            $this->_rules = ['none' => Validator::CONTEXT_IN_ONE_OF];
51 51
         } else {
52 52
             foreach ($rules as $key => $rule) {
53 53
                 list($plain, $type)   = $this->_parse($rule);
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
     private function _clean($rule, &$required)
60 60
     {
61 61
         if (strpos($rule, '.') !== false) {
62
-            $parents = array_filter(array_keys($required), function ($key) use ($rule) {
63
-                return fnmatch($key . '.*', $rule);
62
+            $parents = array_filter(array_keys($required), function($key) use ($rule) {
63
+                return fnmatch($key.'.*', $rule);
64 64
             });
65 65
 
66 66
             foreach ($parents as $remove) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     {
165 165
         static $validator;
166 166
         if (!$validator) {
167
-            $validator = new DelegateValidator(function () {
167
+            $validator = new DelegateValidator(function() {
168 168
                 return true;
169 169
             });
170 170
         }
Please login to merge, or discard this patch.
Parser/UnprocessedTokens.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         foreach (array_keys($this->_pending) as $position) {
64 64
             uasort(
65 65
                 $this->_tokens[$position],
66
-                Token::class . '::compare'
66
+                Token::class.'::compare'
67 67
             );
68 68
         }
69 69
         $this->_pending = [];
Please login to merge, or discard this patch.
bin/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     protected function getDefaultInputDefinition()
68 68
     {
69 69
         $input = parent::getDefaultInputDefinition();
70
-        $input->setOptions(array_filter($input->getOptions(), function (InputOption $option) {
70
+        $input->setOptions(array_filter($input->getOptions(), function(InputOption $option) {
71 71
             return $option->getShortcut() != 'q';
72 72
         }));
73 73
         $input->addOption(new InputOption('no-output', 's', InputOption::VALUE_NONE, 'Disables output, useful for debug'));
Please login to merge, or discard this patch.
bin/VerboseOutput.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         if ($this->wants('detailed-time')) {
86
-            $this->_slashed('Times             [s]', array_map(function ($t) {
86
+            $this->_slashed('Times             [s]', array_map(function($t) {
87 87
                 return number_format($t, 5);
88 88
             }, $this->_times));
89
-            $this->_slashed('Performance [chars/s]', array_map(function ($t) {
89
+            $this->_slashed('Performance [chars/s]', array_map(function($t) {
90 90
                 return number_format(strlen($this->_source) / $t);
91 91
             }, $this->_times));
92 92
         }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         }
97 97
 
98 98
         if ($this->wants('density')) {
99
-            $this->_slashed('Token density [tokens/kB]', array_map(function ($c) {
99
+            $this->_slashed('Token density [tokens/kB]', array_map(function($c) {
100 100
                 return number_format($c / strlen($this->_source) * 1024, 1);
101 101
             }, $this->_counts));
102 102
         }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     protected function tokenize()
113 113
     {
114
-        $tokens = $this->benchmark(function () {
114
+        $tokens = $this->benchmark(function() {
115 115
             return $this->_language->tokenize($this->_source);
116 116
         }, $this->_times['tokenization']);
117 117
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
     protected function parse(Tokens $tokens)
142 142
     {
143
-        $tokens = $this->benchmark(function () use ($tokens) {
143
+        $tokens = $this->benchmark(function() use ($tokens) {
144 144
             return $this->_language->parse($tokens);
145 145
         }, $this->_times['parsing']);
146 146
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
     protected function format(Tokens $tokens)
156 156
     {
157
-        return $this->benchmark(function () use ($tokens) {
157
+        return $this->benchmark(function() use ($tokens) {
158 158
             return $this->_formatter->format($tokens);
159 159
         }, $this->_times['formatting']);
160 160
     }
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $this->_output->writeln(sprintf(
165 165
             "$message %s: %s",
166
-            implode(' / ', array_map(function ($f) {
166
+            implode(' / ', array_map(function($f) {
167 167
                 return "<comment>{$f}</comment>";
168 168
             }, array_keys($data))),
169
-            implode(' / ', array_map(function ($f) {
169
+            implode(' / ', array_map(function($f) {
170 170
                 return "<info>{$f}</info>";
171 171
             }, array_values($data)))
172 172
         ));
Please login to merge, or discard this patch.