Passed
Push — master ( c4f4b2...52e931 )
by Kacper
03:28
created
bin/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     protected function getCommandName(InputInterface $input)
35 35
     {
36 36
         $command = $input->getFirstArgument();
37
-        if(!$command && !$input->hasParameterOption('--help')) {
37
+        if (!$command && !$input->hasParameterOption('--help')) {
38 38
             return 'list';
39 39
         } elseif ($this->has($command)) {
40 40
             return $command;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     protected function getDefaultInputDefinition()
57 57
     {
58 58
         $input = parent::getDefaultInputDefinition();
59
-        $input->setOptions(array_filter($input->getOptions(), function (InputOption $option) {
59
+        $input->setOptions(array_filter($input->getOptions(), function(InputOption $option) {
60 60
             return $option->getShortcut() != 'q';
61 61
         }));
62 62
         $input->addOption(new InputOption('no-output', 's', InputOption::VALUE_NONE, 'Disables output, useful for debug'));
Please login to merge, or discard this patch.
bin/Commands/FormattersCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $formatters = KeyLighter::get()->registeredFormatters();
41 41
         $table = new Table($output);
42 42
 
43
-        if(!$input->getOption('headerless')) {
43
+        if (!$input->getOption('headerless')) {
44 44
             $table->setHeaders(['Name', 'Formatter']);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
bin/Commands/LanguagesCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
 
47 47
         $table = new Table($output);
48 48
 
49
-        if(!$input->getOption('headerless')) {
49
+        if (!$input->getOption('headerless')) {
50 50
             $table->setHeaders([ucfirst($input->getArgument('by')), $input->getOption('classes') ? 'Class name' : 'Language']);
51 51
         }
52 52
 
53 53
         $table->setRows(array_map(function($language) {
54 54
             return [
55
-                implode(', ', array_map(function ($f) { return "<comment>{$f}</comment>"; }, $language['aliases'])),
55
+                implode(', ', array_map(function($f) { return "<comment>{$f}</comment>"; }, $language['aliases'])),
56 56
                 $language['class']
57 57
             ];
58 58
         }, $input->getOption('no-group') ? $this->processNonGrouped($languages) : $this->processGrouped($languages)));
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
 
64 64
     protected function processGrouped($languages) {
65 65
         $result = [];
66
-        foreach($languages as $alias => $class) {
67
-            if(!isset($result[$class])) {
66
+        foreach ($languages as $alias => $class) {
67
+            if (!isset($result[$class])) {
68 68
                 $result[$class] = ['aliases' => [], 'class' => $class];
69 69
             }
70 70
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     protected function processNonGrouped($languages) {
78 78
         $result = [];
79
-        foreach($languages as $alias => $class) {
79
+        foreach ($languages as $alias => $class) {
80 80
             $result[] = ['aliases' => [$alias], 'class' => $class];
81 81
         }
82 82
 
Please login to merge, or discard this patch.
bin/VerboseOutput.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
         $parsed    = $this->parse($tokenized);
69 69
         $formatted = $this->format($parsed);
70 70
 
71
-        if($this->wants('time')) {
71
+        if ($this->wants('time')) {
72 72
             $this->_output->writeln(sprintf(
73 73
                 '<info>Overall:</info> %.4fs, %s chars/s',
74 74
                 array_sum($this->_times), number_format(strlen($this->_source) / array_sum($this->_times))
75 75
             ));
76 76
         }
77 77
 
78
-        if($this->wants('detailed-time')) {
78
+        if ($this->wants('detailed-time')) {
79 79
             $this->_slashed('Times             [s]', array_map(function($t) {
80 80
                 return number_format($t, 5);
81 81
             }, $this->_times));
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
             }, $this->_times));
85 85
         }
86 86
 
87
-        if($this->wants('count')) {
87
+        if ($this->wants('count')) {
88 88
             $this->_slashed('Token count', array_map('number_format', $this->_counts));
89 89
         }
90 90
 
91
-        if($this->wants('density')) {
91
+        if ($this->wants('density')) {
92 92
             $this->_slashed('Token density [tokens/kB]', array_map(function($c) {
93 93
                 return number_format($c / strlen($this->_source) * 1024, 1);
94 94
             }, $this->_counts));
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
     protected function tokenize()
106 106
     {
107
-        $tokens = $this->benchmark(function () {
107
+        $tokens = $this->benchmark(function() {
108 108
             return $this->_language->tokenize($this->_source);
109 109
         }, $this->_times['tokenization']);
110 110
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
     protected function parse(Tokens $tokens)
135 135
     {
136
-        $tokens = $this->benchmark(function () use ($tokens) {
136
+        $tokens = $this->benchmark(function() use ($tokens) {
137 137
             return $this->_language->parse($tokens);
138 138
         }, $this->_times['parsing']);
139 139
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
     protected function format(Tokens $tokens)
149 149
     {
150
-        return $this->benchmark(function () use ($tokens) {
150
+        return $this->benchmark(function() use ($tokens) {
151 151
             return $this->_formatter->format($tokens);
152 152
         }, $this->_times['formatting']);
153 153
     }
@@ -156,10 +156,10 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $this->_output->writeln(sprintf(
158 158
             "$message %s: %s",
159
-            implode(' / ', array_map(function ($f) {
159
+            implode(' / ', array_map(function($f) {
160 160
                 return "<comment>{$f}</comment>";
161 161
             }, array_keys($data))),
162
-            implode(' / ', array_map(function ($f) {
162
+            implode(' / ', array_map(function($f) {
163 163
                 return "<info>{$f}</info>";
164 164
             }, array_values($data)))
165 165
         ));
Please login to merge, or discard this patch.
bin/Commands/HighlightCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,26 +47,26 @@
 block discarded – undo
47 47
 
48 48
     protected function execute(InputInterface $input, OutputInterface $output)
49 49
     {
50
-        if(!empty($input->getOption('debug')) && $output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) {
50
+        if (!empty($input->getOption('debug')) && $output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) {
51 51
             $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
52 52
         }
53 53
 
54 54
         $output->writeln($this->getApplication()->getLongVersion()."\n", Output::VERBOSITY_VERBOSE);
55 55
         $formatter = KeyLighter::get()->getFormatter($input->getOption('format')) ?: KeyLighter::get()->getDefaultFormatter();
56 56
 
57
-        foreach($input->getArgument('path') as $filename) {
57
+        foreach ($input->getArgument('path') as $filename) {
58 58
             $this->process($input, $output, $filename, $formatter);
59 59
         }
60 60
     }
61 61
 
62 62
     protected function content($path)
63 63
     {
64
-        if(!($file = @fopen($path, 'r'))) {
64
+        if (!($file = @fopen($path, 'r'))) {
65 65
             return false;
66 66
         }
67 67
 
68 68
         $content = '';
69
-        while(!feof($file)) {
69
+        while (!feof($file)) {
70 70
             $content .= fgets($file);
71 71
         }
72 72
         fclose($file);
Please login to merge, or discard this patch.
bin/Commands/Dev/GenerateAliasesCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
 {
27 27
     protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29
-        if($input->getOption('dry')) {
29
+        if ($input->getOption('dry')) {
30 30
             $output->writeln($this->generate($output));
31 31
         } else {
32 32
             file_put_contents(
33
-                __DIR__ . '/../../../Config/aliases.php',
33
+                __DIR__.'/../../../Config/aliases.php',
34 34
                 '<?php return '.$this->generate($output).';'
35 35
             );
36 36
         }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     protected function generate(OutputInterface $output)
49 49
     {
50
-        $dir = __DIR__ . '/../../../Language'.DIRECTORY_SEPARATOR;
50
+        $dir = __DIR__.'/../../../Language'.DIRECTORY_SEPARATOR;
51 51
         $iterator = new \RecursiveIteratorIterator(
52 52
             new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS),
53 53
             \RecursiveIteratorIterator::LEAVES_ONLY
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             ), OutputInterface::VERBOSITY_VERBOSE);
66 66
 
67 67
 
68
-            if($metadata = $this->process($output, $class)) {
68
+            if ($metadata = $this->process($output, $class)) {
69 69
                 $result[] = $metadata;
70 70
             }
71 71
         }
Please login to merge, or discard this patch.
Config/aliases.php 1 patch
Spacing   +100 added lines, -100 removed lines patch added patch discarded remove patch
@@ -1,38 +1,38 @@  discard block
 block discarded – undo
1
-<?php return array (
1
+<?php return array(
2 2
   0 => 
3
-  array (
3
+  array(
4 4
     0 => 'Kadet\\Highlighter\\Language\\C',
5 5
     'name' => 
6
-    array (
6
+    array(
7 7
       0 => 'c',
8 8
     ),
9 9
     'mime' => 
10
-    array (
10
+    array(
11 11
       0 => 'text/x-csrc',
12 12
       1 => 'text/x-chdr',
13 13
     ),
14 14
     'extension' => 
15
-    array (
15
+    array(
16 16
       0 => '*.c',
17 17
       1 => '*.h',
18 18
       2 => '*.idc',
19 19
     ),
20 20
   ),
21 21
   1 => 
22
-  array (
22
+  array(
23 23
     0 => 'Kadet\\Highlighter\\Language\\Cpp',
24 24
     'name' => 
25
-    array (
25
+    array(
26 26
       0 => 'cpp',
27 27
       1 => 'c++',
28 28
     ),
29 29
     'mime' => 
30
-    array (
30
+    array(
31 31
       0 => 'text/x-c++src',
32 32
       1 => 'text/x-c++hdr',
33 33
     ),
34 34
     'extension' => 
35
-    array (
35
+    array(
36 36
       0 => '*.cpp',
37 37
       1 => '*.hpp',
38 38
       2 => '*.hxx',
@@ -42,259 +42,259 @@  discard block
 block discarded – undo
42 42
     ),
43 43
   ),
44 44
   2 => 
45
-  array (
45
+  array(
46 46
     0 => 'Kadet\\Highlighter\\Language\\CSharp',
47 47
     'name' => 
48
-    array (
48
+    array(
49 49
       0 => 'CSharp',
50 50
       1 => 'C#',
51 51
     ),
52 52
     'mime' => 
53
-    array (
53
+    array(
54 54
       0 => 'text/x-csharp',
55 55
     ),
56 56
     'extension' => 
57
-    array (
57
+    array(
58 58
       0 => '*.cs',
59 59
     ),
60 60
   ),
61 61
   3 => 
62
-  array (
62
+  array(
63 63
     0 => 'Kadet\\Highlighter\\Language\\Css\\Less',
64 64
     'name' => 
65
-    array (
65
+    array(
66 66
       0 => 'less',
67 67
     ),
68 68
     'mime' => 
69
-    array (
69
+    array(
70 70
       0 => 'text/x-less',
71 71
     ),
72 72
     'extension' => 
73
-    array (
73
+    array(
74 74
       0 => '*.less',
75 75
     ),
76 76
   ),
77 77
   4 => 
78
-  array (
78
+  array(
79 79
     0 => 'Kadet\\Highlighter\\Language\\Css\\Sass',
80 80
     'name' => 
81
-    array (
81
+    array(
82 82
       0 => 'sass',
83 83
     ),
84 84
     'mime' => 
85
-    array (
85
+    array(
86 86
       0 => 'text/x-sass',
87 87
     ),
88 88
     'extension' => 
89
-    array (
89
+    array(
90 90
       0 => '*.sass',
91 91
     ),
92 92
   ),
93 93
   5 => 
94
-  array (
94
+  array(
95 95
     0 => 'Kadet\\Highlighter\\Language\\Css\\Scss',
96 96
     'name' => 
97
-    array (
97
+    array(
98 98
       0 => 'scss',
99 99
     ),
100 100
     'mime' => 
101
-    array (
101
+    array(
102 102
       0 => 'text/x-scss',
103 103
     ),
104 104
     'extension' => 
105
-    array (
105
+    array(
106 106
       0 => '*.scss',
107 107
     ),
108 108
   ),
109 109
   6 => 
110
-  array (
110
+  array(
111 111
     0 => 'Kadet\\Highlighter\\Language\\Css',
112 112
     'name' => 
113
-    array (
113
+    array(
114 114
       0 => 'css',
115 115
     ),
116 116
     'mime' => 
117
-    array (
117
+    array(
118 118
       0 => 'text/css',
119 119
     ),
120 120
     'extension' => 
121
-    array (
121
+    array(
122 122
       0 => '*.css',
123 123
     ),
124 124
   ),
125 125
   7 => 
126
-  array (
126
+  array(
127 127
     0 => 'Kadet\\Highlighter\\Language\\Go',
128 128
     'name' => 
129
-    array (
129
+    array(
130 130
       0 => 'go',
131 131
       1 => 'golang',
132 132
     ),
133 133
     'mime' => 
134
-    array (
134
+    array(
135 135
       0 => 'text/x-go',
136 136
       1 => 'application/x-go',
137 137
       2 => 'text/x-golang',
138 138
       3 => 'application/x-golang',
139 139
     ),
140 140
     'extension' => 
141
-    array (
141
+    array(
142 142
       0 => '*.go',
143 143
     ),
144 144
   ),
145 145
   8 => 
146
-  array (
146
+  array(
147 147
     0 => 'Kadet\\Highlighter\\Language\\Html',
148 148
     'name' => 
149
-    array (
149
+    array(
150 150
       0 => 'html',
151 151
     ),
152 152
     'mime' => 
153
-    array (
153
+    array(
154 154
       0 => 'text/html',
155 155
     ),
156 156
     'extension' => 
157
-    array (
157
+    array(
158 158
       0 => '*.html',
159 159
       1 => '*.htm',
160 160
     ),
161 161
   ),
162 162
   9 => 
163
-  array (
163
+  array(
164 164
     0 => 'Kadet\\Highlighter\\Language\\Http',
165 165
     'name' => 
166
-    array (
166
+    array(
167 167
       0 => 'http',
168 168
     ),
169 169
   ),
170 170
   10 => 
171
-  array (
171
+  array(
172 172
     0 => 'Kadet\\Highlighter\\Language\\Ini',
173 173
     'name' => 
174
-    array (
174
+    array(
175 175
       0 => 'ini',
176 176
     ),
177 177
     'mime' => 
178
-    array (
178
+    array(
179 179
       0 => 'text/x-ini',
180 180
       1 => 'text/inf',
181 181
     ),
182 182
     'extension' => 
183
-    array (
183
+    array(
184 184
       0 => '*.ini',
185 185
       1 => '*.cfg',
186 186
       2 => '*.inf',
187 187
     ),
188 188
   ),
189 189
   11 => 
190
-  array (
190
+  array(
191 191
     0 => 'Kadet\\Highlighter\\Language\\Java',
192 192
     'name' => 
193
-    array (
193
+    array(
194 194
       0 => 'java',
195 195
     ),
196 196
     'mime' => 
197
-    array (
197
+    array(
198 198
       0 => 'text/x-java',
199 199
     ),
200 200
     'extension' => 
201
-    array (
201
+    array(
202 202
       0 => '*.java',
203 203
     ),
204 204
   ),
205 205
   12 => 
206
-  array (
206
+  array(
207 207
     0 => 'Kadet\\Highlighter\\Language\\JavaScript',
208 208
     'name' => 
209
-    array (
209
+    array(
210 210
       0 => 'js',
211 211
       1 => 'jscript',
212 212
       2 => 'javascript',
213 213
     ),
214 214
     'mime' => 
215
-    array (
215
+    array(
216 216
       0 => 'application/javascript',
217 217
       1 => 'application/x-javascript',
218 218
       2 => 'text/x-javascript',
219 219
       3 => 'text/javascript',
220 220
     ),
221 221
     'extension' => 
222
-    array (
222
+    array(
223 223
       0 => '*.js',
224 224
       1 => '*.jsx',
225 225
     ),
226 226
   ),
227 227
   13 => 
228
-  array (
228
+  array(
229 229
     0 => 'Kadet\\Highlighter\\Language\\Latex',
230 230
     'name' => 
231
-    array (
231
+    array(
232 232
       0 => 'tex',
233 233
       1 => 'latex',
234 234
     ),
235 235
     'mime' => 
236
-    array (
236
+    array(
237 237
       0 => 'application/x-tex',
238 238
       1 => 'application/x-latex',
239 239
     ),
240 240
     'extension' => 
241
-    array (
241
+    array(
242 242
       0 => '*.tex',
243 243
       1 => '*.aux',
244 244
       2 => '*.toc',
245 245
     ),
246 246
   ),
247 247
   14 => 
248
-  array (
248
+  array(
249 249
     0 => 'Kadet\\Highlighter\\Language\\Markdown',
250 250
     'name' => 
251
-    array (
251
+    array(
252 252
       0 => 'markdown',
253 253
       1 => 'md',
254 254
     ),
255 255
     'mime' => 
256
-    array (
256
+    array(
257 257
       0 => 'text/markdown',
258 258
     ),
259 259
     'extension' => 
260
-    array (
260
+    array(
261 261
       0 => '*.markdown',
262 262
       1 => '*.md',
263 263
     ),
264 264
   ),
265 265
   15 => 
266
-  array (
266
+  array(
267 267
     0 => 'Kadet\\Highlighter\\Language\\Perl',
268 268
     'name' => 
269
-    array (
269
+    array(
270 270
       0 => 'perl',
271 271
     ),
272 272
     'mime' => 
273
-    array (
273
+    array(
274 274
       0 => 'text/x-perl',
275 275
       1 => 'application/x-perl',
276 276
     ),
277 277
     'extension' => 
278
-    array (
278
+    array(
279 279
       0 => '*.pl',
280 280
       1 => '*.pm',
281 281
       2 => '*.t',
282 282
     ),
283 283
   ),
284 284
   16 => 
285
-  array (
285
+  array(
286 286
     0 => 'Kadet\\Highlighter\\Language\\Php',
287 287
     'name' => 
288
-    array (
288
+    array(
289 289
       0 => 'php',
290 290
     ),
291 291
     'mime' => 
292
-    array (
292
+    array(
293 293
       0 => 'text/x-php',
294 294
       1 => 'application/x-php',
295 295
     ),
296 296
     'extension' => 
297
-    array (
297
+    array(
298 298
       0 => '*.php',
299 299
       1 => '*.phtml',
300 300
       2 => '*.inc',
@@ -302,85 +302,85 @@  discard block
 block discarded – undo
302 302
     ),
303 303
   ),
304 304
   17 => 
305
-  array (
305
+  array(
306 306
     0 => 'Kadet\\Highlighter\\Language\\PlainText',
307 307
     'name' => 
308
-    array (
308
+    array(
309 309
       0 => 'plaintext',
310 310
       1 => 'text',
311 311
       2 => 'none',
312 312
     ),
313 313
     'mime' => 
314
-    array (
314
+    array(
315 315
       0 => 'text/plain',
316 316
     ),
317 317
   ),
318 318
   18 => 
319
-  array (
319
+  array(
320 320
     0 => 'Kadet\\Highlighter\\Language\\PowerShell',
321 321
     'name' => 
322
-    array (
322
+    array(
323 323
       0 => 'powershell',
324 324
       1 => 'posh',
325 325
     ),
326 326
     'mime' => 
327
-    array (
327
+    array(
328 328
       0 => 'text/x-powershell',
329 329
       1 => 'application/x-powershell',
330 330
     ),
331 331
     'extension' => 
332
-    array (
332
+    array(
333 333
       0 => '*.ps1',
334 334
       1 => '*.psm1',
335 335
       2 => '*.psd1',
336 336
     ),
337 337
   ),
338 338
   19 => 
339
-  array (
339
+  array(
340 340
     0 => 'Kadet\\Highlighter\\Language\\Python\\Django',
341 341
     'name' => 
342
-    array (
342
+    array(
343 343
       0 => 'django',
344 344
       1 => 'jinja',
345 345
     ),
346 346
     'mime' => 
347
-    array (
347
+    array(
348 348
       0 => 'application/x-django-templating',
349 349
       1 => 'application/x-jinja',
350 350
     ),
351 351
   ),
352 352
   20 => 
353
-  array (
353
+  array(
354 354
     0 => 'Kadet\\Highlighter\\Language\\Python',
355 355
     'name' => 
356
-    array (
356
+    array(
357 357
       0 => 'python',
358 358
       1 => 'py',
359 359
     ),
360 360
     'mime' => 
361
-    array (
361
+    array(
362 362
       0 => 'text/x-python',
363 363
       1 => 'application/x-python',
364 364
     ),
365 365
     'extension' => 
366
-    array (
366
+    array(
367 367
       0 => '*.py',
368 368
     ),
369 369
   ),
370 370
   21 => 
371
-  array (
371
+  array(
372 372
     0 => 'Kadet\\Highlighter\\Language\\Ruby',
373 373
     'name' => 
374
-    array (
374
+    array(
375 375
       0 => 'ruby',
376 376
     ),
377 377
     'mime' => 
378
-    array (
378
+    array(
379 379
       0 => 'text/x-ruby',
380 380
       1 => 'application/x-ruby',
381 381
     ),
382 382
     'extension' => 
383
-    array (
383
+    array(
384 384
       0 => '*.rb',
385 385
       1 => '*.rbw',
386 386
       2 => 'Rakefile',
@@ -392,22 +392,22 @@  discard block
 block discarded – undo
392 392
     ),
393 393
   ),
394 394
   22 => 
395
-  array (
395
+  array(
396 396
     0 => 'Kadet\\Highlighter\\Language\\Shell',
397 397
     'name' => 
398
-    array (
398
+    array(
399 399
       0 => 'shell',
400 400
       1 => 'bash',
401 401
       2 => 'zsh',
402 402
       3 => 'sh',
403 403
     ),
404 404
     'mime' => 
405
-    array (
405
+    array(
406 406
       0 => 'text/x-shellscript',
407 407
       1 => 'application/x-shellscript',
408 408
     ),
409 409
     'extension' => 
410
-    array (
410
+    array(
411 411
       0 => '*.sh',
412 412
       1 => '*.zsh',
413 413
       2 => '*.bash',
@@ -423,48 +423,48 @@  discard block
 block discarded – undo
423 423
     ),
424 424
   ),
425 425
   23 => 
426
-  array (
426
+  array(
427 427
     0 => 'Kadet\\Highlighter\\Language\\Sql\\MySql',
428 428
     'name' => 
429
-    array (
429
+    array(
430 430
       0 => 'mysql',
431 431
     ),
432 432
     'mime' => 
433
-    array (
433
+    array(
434 434
       0 => 'text/x-mysql',
435 435
     ),
436 436
   ),
437 437
   24 => 
438
-  array (
438
+  array(
439 439
     0 => 'Kadet\\Highlighter\\Language\\Sql',
440 440
     'name' => 
441
-    array (
441
+    array(
442 442
       0 => 'sql',
443 443
     ),
444 444
     'mime' => 
445
-    array (
445
+    array(
446 446
       0 => 'text/x-sql',
447 447
     ),
448 448
     'extension' => 
449
-    array (
449
+    array(
450 450
       0 => '*.sql',
451 451
     ),
452 452
   ),
453 453
   25 => 
454
-  array (
454
+  array(
455 455
     0 => 'Kadet\\Highlighter\\Language\\Xml',
456 456
     'name' => 
457
-    array (
457
+    array(
458 458
       0 => 'xml',
459 459
       1 => 'xaml',
460 460
     ),
461 461
     'mime' => 
462
-    array (
462
+    array(
463 463
       0 => 'application/xml',
464 464
       1 => 'text/xml',
465 465
     ),
466 466
     'extension' => 
467
-    array (
467
+    array(
468 468
       0 => '*.xml',
469 469
       1 => '*.xaml',
470 470
     ),
Please login to merge, or discard this patch.
Language/Java.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,6 +48,6 @@
 block discarded – undo
48 48
         return [
49 49
             'name'      => ['java'],
50 50
             'mime'      => ['text/x-java'],
51
-            'extension' => ['*.java']        ];
51
+            'extension' => ['*.java']];
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
bin/Commands/Dev/GenerateTableCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 {
27 27
     protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29
-        if($input->getOption('dry')) {
29
+        if ($input->getOption('dry')) {
30 30
             $output->writeln($this->generate());
31 31
         } else {
32
-            $path = __DIR__ . '/../../../Docs/languages.md';
32
+            $path = __DIR__.'/../../../Docs/languages.md';
33 33
 
34 34
             $output->writeln("<info>Opening file ./Docs/languages.md ...</info>", OutputInterface::VERBOSITY_VERBOSE);
35 35
             $content = file_get_contents($path);
@@ -54,19 +54,19 @@  discard block
 block discarded – undo
54 54
     protected function generate()
55 55
     {
56 56
         $result = [];
57
-        foreach(['name', 'mime', 'extension'] as $what) {
58
-            foreach(KeyLighter::get()->registeredLanguages($what, true) as $name => $class) {
57
+        foreach (['name', 'mime', 'extension'] as $what) {
58
+            foreach (KeyLighter::get()->registeredLanguages($what, true) as $name => $class) {
59 59
                 $result[$class][$what][] = $name;
60 60
             }
61 61
         }
62 62
 
63
-        $return  =  'Class | Name | MIME | Extension'.PHP_EOL;
64
-        $return .=  '------|------|------|----------'.PHP_EOL;
65
-        foreach($result as $class => $aliases) {
63
+        $return  = 'Class | Name | MIME | Extension'.PHP_EOL;
64
+        $return .= '------|------|------|----------'.PHP_EOL;
65
+        foreach ($result as $class => $aliases) {
66 66
             $return .= '`'.$class.'` | ';
67 67
             $return .= (isset($aliases['name']) ? '`'.implode('`, `', $aliases['name']).'`' : 'none').' | ';
68 68
             $return .= (isset($aliases['mime']) ? '`'.implode('`, `', $aliases['mime']).'`' : 'none').' | ';
69
-            $return .= (isset($aliases['extension']) ? '`'.implode('`, `', $aliases['extension']).'`' : 'none'). PHP_EOL;
69
+            $return .= (isset($aliases['extension']) ? '`'.implode('`, `', $aliases['extension']).'`' : 'none').PHP_EOL;
70 70
         }
71 71
 
72 72
         return $return;
Please login to merge, or discard this patch.