Completed
Push — develop ( 316159...00443b )
by Zack
20:22
created
vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Normalizer extends Symfony\Polyfill\Intl\Normalizer\Normalizer
4
-{
3
+class Normalizer extends Symfony\Polyfill\Intl\Normalizer\Normalizer {
5 4
     /**
6 5
      * @deprecated since ICU 56 and removed in PHP 8
7 6
      */
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/ProcessHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
  *
24 24
  * @final
25 25
  */
26
-class ProcessHelper extends Helper
27
-{
26
+class ProcessHelper extends Helper {
28 27
     /**
29 28
      * Runs an external process.
30 29
      *
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/ProgressIndicator.php 1 patch
Braces   +11 added lines, -22 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * @author Kevin Bond <[email protected]>
20 20
  */
21
-class ProgressIndicator
22
-{
21
+class ProgressIndicator {
23 22
     private $output;
24 23
     private $startTime;
25 24
     private $format;
@@ -37,8 +36,7 @@  discard block
 block discarded – undo
37 36
      * @param int        $indicatorChangeInterval Change interval in milliseconds
38 37
      * @param array|null $indicatorValues         Animated indicator characters
39 38
      */
40
-    public function __construct(OutputInterface $output, string $format = null, int $indicatorChangeInterval = 100, array $indicatorValues = null)
41
-    {
39
+    public function __construct(OutputInterface $output, string $format = null, int $indicatorChangeInterval = 100, array $indicatorValues = null) {
42 40
         $this->output = $output;
43 41
 
44 42
         if (null === $format) {
@@ -64,8 +62,7 @@  discard block
 block discarded – undo
64 62
     /**
65 63
      * Sets the current indicator message.
66 64
      */
67
-    public function setMessage(?string $message)
68
-    {
65
+    public function setMessage(?string $message) {
69 66
         $this->message = $message;
70 67
 
71 68
         $this->display();
@@ -74,8 +71,7 @@  discard block
 block discarded – undo
74 71
     /**
75 72
      * Starts the indicator output.
76 73
      */
77
-    public function start(string $message)
78
-    {
74
+    public function start(string $message) {
79 75
         if ($this->started) {
80 76
             throw new LogicException('Progress indicator already started.');
81 77
         }
@@ -92,8 +88,7 @@  discard block
 block discarded – undo
92 88
     /**
93 89
      * Advances the indicator.
94 90
      */
95
-    public function advance()
96
-    {
91
+    public function advance() {
97 92
         if (!$this->started) {
98 93
             throw new LogicException('Progress indicator has not yet been started.');
99 94
         }
@@ -119,8 +114,7 @@  discard block
 block discarded – undo
119 114
      *
120 115
      * @param $message
121 116
      */
122
-    public function finish(string $message)
123
-    {
117
+    public function finish(string $message) {
124 118
         if (!$this->started) {
125 119
             throw new LogicException('Progress indicator has not yet been started.');
126 120
         }
@@ -136,8 +130,7 @@  discard block
 block discarded – undo
136 130
      *
137 131
      * @return string|null A format string
138 132
      */
139
-    public static function getFormatDefinition(string $name)
140
-    {
133
+    public static function getFormatDefinition(string $name) {
141 134
         if (!self::$formats) {
142 135
             self::$formats = self::initFormats();
143 136
         }
@@ -150,8 +143,7 @@  discard block
 block discarded – undo
150 143
      *
151 144
      * This method also allow you to override an existing placeholder.
152 145
      */
153
-    public static function setPlaceholderFormatterDefinition(string $name, callable $callable)
154
-    {
146
+    public static function setPlaceholderFormatterDefinition(string $name, callable $callable) {
155 147
         if (!self::$formatters) {
156 148
             self::$formatters = self::initPlaceholderFormatters();
157 149
         }
@@ -164,8 +156,7 @@  discard block
 block discarded – undo
164 156
      *
165 157
      * @return callable|null A PHP callable
166 158
      */
167
-    public static function getPlaceholderFormatterDefinition(string $name)
168
-    {
159
+    public static function getPlaceholderFormatterDefinition(string $name) {
169 160
         if (!self::$formatters) {
170 161
             self::$formatters = self::initPlaceholderFormatters();
171 162
         }
@@ -173,8 +164,7 @@  discard block
 block discarded – undo
173 164
         return self::$formatters[$name] ?? null;
174 165
     }
175 166
 
176
-    private function display()
177
-    {
167
+    private function display() {
178 168
         if (OutputInterface::VERBOSITY_QUIET === $this->output->getVerbosity()) {
179 169
             return;
180 170
         }
@@ -205,8 +195,7 @@  discard block
 block discarded – undo
205 195
     /**
206 196
      * Overwrites a previous message to the output.
207 197
      */
208
-    private function overwrite(string $message)
209
-    {
198
+    private function overwrite(string $message) {
210 199
         if ($this->output->isDecorated()) {
211 200
             $this->output->write("\x0D\x1B[2K");
212 201
             $this->output->write($message);
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/DescriptorHelper.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,15 +24,13 @@  discard block
 block discarded – undo
24 24
  *
25 25
  * @author Jean-François Simon <[email protected]>
26 26
  */
27
-class DescriptorHelper extends Helper
28
-{
27
+class DescriptorHelper extends Helper {
29 28
     /**
30 29
      * @var DescriptorInterface[]
31 30
      */
32 31
     private $descriptors = [];
33 32
 
34
-    public function __construct()
35
-    {
33
+    public function __construct() {
36 34
         $this
37 35
             ->register('txt', new TextDescriptor())
38 36
             ->register('xml', new XmlDescriptor())
@@ -50,8 +48,7 @@  discard block
 block discarded – undo
50 48
      *
51 49
      * @throws InvalidArgumentException when the given format is not supported
52 50
      */
53
-    public function describe(OutputInterface $output, ?object $object, array $options = [])
54
-    {
51
+    public function describe(OutputInterface $output, ?object $object, array $options = []) {
55 52
         $options = array_merge([
56 53
             'raw_text' => false,
57 54
             'format' => 'txt',
@@ -70,8 +67,7 @@  discard block
 block discarded – undo
70 67
      *
71 68
      * @return $this
72 69
      */
73
-    public function register(string $format, DescriptorInterface $descriptor)
74
-    {
70
+    public function register(string $format, DescriptorInterface $descriptor) {
75 71
         $this->descriptors[$format] = $descriptor;
76 72
 
77 73
         return $this;
@@ -80,8 +76,7 @@  discard block
 block discarded – undo
80 76
     /**
81 77
      * {@inheritdoc}
82 78
      */
83
-    public function getName()
84
-    {
79
+    public function getName() {
85 80
         return 'descriptor';
86 81
     }
87 82
 }
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/Dumper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,15 +19,13 @@
 block discarded – undo
19 19
 /**
20 20
  * @author Roland Franssen <[email protected]>
21 21
  */
22
-final class Dumper
23
-{
22
+final class Dumper {
24 23
     private $output;
25 24
     private $dumper;
26 25
     private $cloner;
27 26
     private $handler;
28 27
 
29
-    public function __construct(OutputInterface $output, CliDumper $dumper = null, ClonerInterface $cloner = null)
30
-    {
28
+    public function __construct(OutputInterface $output, CliDumper $dumper = null, ClonerInterface $cloner = null) {
31 29
         $this->output = $output;
32 30
         $this->dumper = $dumper;
33 31
         $this->cloner = $cloner;
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/QuestionHelper.php 1 patch
Braces   +15 added lines, -27 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
  *
32 32
  * @author Fabien Potencier <[email protected]>
33 33
  */
34
-class QuestionHelper extends Helper
35
-{
34
+class QuestionHelper extends Helper {
36 35
     private $inputStream;
37 36
     private static $shell;
38 37
     private static $stty = true;
@@ -45,8 +44,7 @@  discard block
 block discarded – undo
45 44
      *
46 45
      * @throws RuntimeException If there is no data to read in the input stream
47 46
      */
48
-    public function ask(InputInterface $input, OutputInterface $output, Question $question)
49
-    {
47
+    public function ask(InputInterface $input, OutputInterface $output, Question $question) {
50 48
         if ($output instanceof ConsoleOutputInterface) {
51 49
             $output = $output->getErrorOutput();
52 50
         }
@@ -83,16 +81,14 @@  discard block
 block discarded – undo
83 81
     /**
84 82
      * {@inheritdoc}
85 83
      */
86
-    public function getName()
87
-    {
84
+    public function getName() {
88 85
         return 'question';
89 86
     }
90 87
 
91 88
     /**
92 89
      * Prevents usage of stty.
93 90
      */
94
-    public static function disableStty()
95
-    {
91
+    public static function disableStty() {
96 92
         self::$stty = false;
97 93
     }
98 94
 
@@ -103,8 +99,7 @@  discard block
 block discarded – undo
103 99
      *
104 100
      * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden
105 101
      */
106
-    private function doAsk(OutputInterface $output, Question $question)
107
-    {
102
+    private function doAsk(OutputInterface $output, Question $question) {
108 103
         $this->writePrompt($output, $question);
109 104
 
110 105
         $inputStream = $this->inputStream ?: \STDIN;
@@ -153,8 +148,7 @@  discard block
 block discarded – undo
153 148
     /**
154 149
      * @return mixed
155 150
      */
156
-    private function getDefaultAnswer(Question $question)
157
-    {
151
+    private function getDefaultAnswer(Question $question) {
158 152
         $default = $question->getDefault();
159 153
 
160 154
         if (null === $default) {
@@ -183,8 +177,7 @@  discard block
 block discarded – undo
183 177
     /**
184 178
      * Outputs the question prompt.
185 179
      */
186
-    protected function writePrompt(OutputInterface $output, Question $question)
187
-    {
180
+    protected function writePrompt(OutputInterface $output, Question $question) {
188 181
         $message = $question->getQuestion();
189 182
 
190 183
         if ($question instanceof ChoiceQuestion) {
@@ -201,8 +194,7 @@  discard block
 block discarded – undo
201 194
     /**
202 195
      * @return string[]
203 196
      */
204
-    protected function formatChoiceQuestionChoices(ChoiceQuestion $question, string $tag)
205
-    {
197
+    protected function formatChoiceQuestionChoices(ChoiceQuestion $question, string $tag) {
206 198
         $messages = [];
207 199
 
208 200
         $maxWidth = max(array_map('self::width', array_keys($choices = $question->getChoices())));
@@ -219,8 +211,7 @@  discard block
 block discarded – undo
219 211
     /**
220 212
      * Outputs an error message.
221 213
      */
222
-    protected function writeError(OutputInterface $output, \Exception $error)
223
-    {
214
+    protected function writeError(OutputInterface $output, \Exception $error) {
224 215
         if (null !== $this->getHelperSet() && $this->getHelperSet()->has('formatter')) {
225 216
             $message = $this->getHelperSet()->get('formatter')->formatBlock($error->getMessage(), 'error');
226 217
         } else {
@@ -263,7 +254,8 @@  discard block
 block discarded – undo
263 254
             if (false === $c || ('' === $ret && '' === $c && null === $question->getDefault())) {
264 255
                 shell_exec(sprintf('stty %s', $sttyMode));
265 256
                 throw new MissingInputException('Aborted.');
266
-            } elseif ("\177" === $c) { // Backspace Character
257
+            } elseif ("\177" === $c) {
258
+// Backspace Character
267 259
                 if (0 === $numMatches && 0 !== $i) {
268 260
                     --$i;
269 261
                     $cursor->moveLeft(s($fullChoice)->slice(-1)->width(false));
@@ -450,8 +442,7 @@  discard block
 block discarded – undo
450 442
      *
451 443
      * @throws \Exception In case the max number of attempts has been reached and no valid response has been given
452 444
      */
453
-    private function validateAttempts(callable $interviewer, OutputInterface $output, Question $question)
454
-    {
445
+    private function validateAttempts(callable $interviewer, OutputInterface $output, Question $question) {
455 446
         $error = null;
456 447
         $attempts = $question->getMaxAttempts();
457 448
 
@@ -506,8 +497,7 @@  discard block
 block discarded – undo
506 497
      *
507 498
      * @return string|false The input received, false in case input could not be read
508 499
      */
509
-    private function readInput($inputStream, Question $question)
510
-    {
500
+    private function readInput($inputStream, Question $question) {
511 501
         if (!$question->isMultiline()) {
512 502
             $cp = $this->setIOCodepage();
513 503
             $ret = fgets($inputStream, 4096);
@@ -556,8 +546,7 @@  discard block
 block discarded – undo
556 546
      *
557 547
      * @return string|false
558 548
      */
559
-    private function resetIOCodepage(int $cp, $input)
560
-    {
549
+    private function resetIOCodepage(int $cp, $input) {
561 550
         if (0 !== $cp) {
562 551
             sapi_windows_cp_set($cp);
563 552
 
@@ -577,8 +566,7 @@  discard block
 block discarded – undo
577 566
      *
578 567
      * @return resource|null The cloned resource, null in case it could not be cloned
579 568
      */
580
-    private function cloneInputStream($inputStream)
581
-    {
569
+    private function cloneInputStream($inputStream) {
582 570
         $streamMetaData = stream_get_meta_data($inputStream);
583 571
         $seekable = $streamMetaData['seekable'] ?? false;
584 572
         $mode = $streamMetaData['mode'] ?? 'rb';
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/Table.php 1 patch
Braces   +22 added lines, -44 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@  discard block
 block discarded – undo
27 27
  * @author Max Grigorian <[email protected]>
28 28
  * @author Dany Maillard <[email protected]>
29 29
  */
30
-class Table
31
-{
30
+class Table {
32 31
     private const SEPARATOR_TOP = 0;
33 32
     private const SEPARATOR_TOP_BOTTOM = 1;
34 33
     private const SEPARATOR_MID = 2;
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
 
90 89
     private $rendered = false;
91 90
 
92
-    public function __construct(OutputInterface $output)
93
-    {
91
+    public function __construct(OutputInterface $output) {
94 92
         $this->output = $output;
95 93
 
96 94
         if (!self::$styles) {
@@ -103,8 +101,7 @@  discard block
 block discarded – undo
103 101
     /**
104 102
      * Sets a style definition.
105 103
      */
106
-    public static function setStyleDefinition(string $name, TableStyle $style)
107
-    {
104
+    public static function setStyleDefinition(string $name, TableStyle $style) {
108 105
         if (!self::$styles) {
109 106
             self::$styles = self::initStyles();
110 107
         }
@@ -117,8 +114,7 @@  discard block
 block discarded – undo
117 114
      *
118 115
      * @return TableStyle
119 116
      */
120
-    public static function getStyleDefinition(string $name)
121
-    {
117
+    public static function getStyleDefinition(string $name) {
122 118
         if (!self::$styles) {
123 119
             self::$styles = self::initStyles();
124 120
         }
@@ -137,8 +133,7 @@  discard block
 block discarded – undo
137 133
      *
138 134
      * @return $this
139 135
      */
140
-    public function setStyle($name)
141
-    {
136
+    public function setStyle($name) {
142 137
         $this->style = $this->resolveStyle($name);
143 138
 
144 139
         return $this;
@@ -149,8 +144,7 @@  discard block
 block discarded – undo
149 144
      *
150 145
      * @return TableStyle
151 146
      */
152
-    public function getStyle()
153
-    {
147
+    public function getStyle() {
154 148
         return $this->style;
155 149
     }
156 150
 
@@ -161,8 +155,7 @@  discard block
 block discarded – undo
161 155
      *
162 156
      * @return $this
163 157
      */
164
-    public function setColumnStyle(int $columnIndex, $name)
165
-    {
158
+    public function setColumnStyle(int $columnIndex, $name) {
166 159
         $this->columnStyles[$columnIndex] = $this->resolveStyle($name);
167 160
 
168 161
         return $this;
@@ -175,8 +168,7 @@  discard block
 block discarded – undo
175 168
      *
176 169
      * @return TableStyle
177 170
      */
178
-    public function getColumnStyle(int $columnIndex)
179
-    {
171
+    public function getColumnStyle(int $columnIndex) {
180 172
         return $this->columnStyles[$columnIndex] ?? $this->getStyle();
181 173
     }
182 174
 
@@ -185,8 +177,7 @@  discard block
 block discarded – undo
185 177
      *
186 178
      * @return $this
187 179
      */
188
-    public function setColumnWidth(int $columnIndex, int $width)
189
-    {
180
+    public function setColumnWidth(int $columnIndex, int $width) {
190 181
         $this->columnWidths[$columnIndex] = $width;
191 182
 
192 183
         return $this;
@@ -197,8 +188,7 @@  discard block
 block discarded – undo
197 188
      *
198 189
      * @return $this
199 190
      */
200
-    public function setColumnWidths(array $widths)
201
-    {
191
+    public function setColumnWidths(array $widths) {
202 192
         $this->columnWidths = [];
203 193
         foreach ($widths as $index => $width) {
204 194
             $this->setColumnWidth($index, $width);
@@ -226,8 +216,7 @@  discard block
 block discarded – undo
226 216
         return $this;
227 217
     }
228 218
 
229
-    public function setHeaders(array $headers)
230
-    {
219
+    public function setHeaders(array $headers) {
231 220
         $headers = array_values($headers);
232 221
         if (!empty($headers) && !\is_array($headers[0])) {
233 222
             $headers = [$headers];
@@ -238,15 +227,13 @@  discard block
 block discarded – undo
238 227
         return $this;
239 228
     }
240 229
 
241
-    public function setRows(array $rows)
242
-    {
230
+    public function setRows(array $rows) {
243 231
         $this->rows = [];
244 232
 
245 233
         return $this->addRows($rows);
246 234
     }
247 235
 
248
-    public function addRows(array $rows)
249
-    {
236
+    public function addRows(array $rows) {
250 237
         foreach ($rows as $row) {
251 238
             $this->addRow($row);
252 239
         }
@@ -254,8 +241,7 @@  discard block
 block discarded – undo
254 241
         return $this;
255 242
     }
256 243
 
257
-    public function addRow($row)
258
-    {
244
+    public function addRow($row) {
259 245
         if ($row instanceof TableSeparator) {
260 246
             $this->rows[] = $row;
261 247
 
@@ -290,8 +276,7 @@  discard block
 block discarded – undo
290 276
         return $this;
291 277
     }
292 278
 
293
-    public function setRow($column, array $row)
294
-    {
279
+    public function setRow($column, array $row) {
295 280
         $this->rows[$column] = $row;
296 281
 
297 282
         return $this;
@@ -331,8 +316,7 @@  discard block
 block discarded – undo
331 316
      *     | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
332 317
      *     +---------------+-----------------------+------------------+
333 318
      */
334
-    public function render()
335
-    {
319
+    public function render() {
336 320
         $divider = new TableSeparator();
337 321
         if ($this->horizontal) {
338 322
             $rows = [];
@@ -407,8 +391,7 @@  discard block
 block discarded – undo
407 391
      *
408 392
      *     +-----+-----------+-------+
409 393
      */
410
-    private function renderRowSeparator(int $type = self::SEPARATOR_MID, string $title = null, string $titleFormat = null)
411
-    {
394
+    private function renderRowSeparator(int $type = self::SEPARATOR_MID, string $title = null, string $titleFormat = null) {
412 395
         if (0 === $count = $this->numberOfColumns) {
413 396
             return;
414 397
         }
@@ -472,8 +455,7 @@  discard block
 block discarded – undo
472 455
      *
473 456
      *     | 9971-5-0210-0 | A Tale of Two Cities  | Charles Dickens  |
474 457
      */
475
-    private function renderRow(array $row, string $cellFormat, string $firstCellFormat = null)
476
-    {
458
+    private function renderRow(array $row, string $cellFormat, string $firstCellFormat = null) {
477 459
         $rowContent = $this->renderColumnSeparator(self::BORDER_OUTSIDE);
478 460
         $columns = $this->getRowColumns($row);
479 461
         $last = \count($columns) - 1;
@@ -545,8 +527,7 @@  discard block
 block discarded – undo
545 527
     /**
546 528
      * Calculate number of columns for this table.
547 529
      */
548
-    private function calculateNumberOfColumns(array $rows)
549
-    {
530
+    private function calculateNumberOfColumns(array $rows) {
550 531
         $columns = [0];
551 532
         foreach ($rows as $row) {
552 533
             if ($row instanceof TableSeparator) {
@@ -683,8 +664,7 @@  discard block
 block discarded – undo
683 664
     /**
684 665
      * fill cells for a row that contains colspan > 1.
685 666
      */
686
-    private function fillCells(iterable $row)
687
-    {
667
+    private function fillCells(iterable $row) {
688 668
         $newRow = [];
689 669
 
690 670
         foreach ($row as $column => $cell) {
@@ -745,8 +725,7 @@  discard block
 block discarded – undo
745 725
     /**
746 726
      * Calculates columns widths.
747 727
      */
748
-    private function calculateColumnsWidth(iterable $rows)
749
-    {
728
+    private function calculateColumnsWidth(iterable $rows) {
750 729
         for ($column = 0; $column < $this->numberOfColumns; ++$column) {
751 730
             $lengths = [];
752 731
             foreach ($rows as $row) {
@@ -797,8 +776,7 @@  discard block
 block discarded – undo
797 776
     /**
798 777
      * Called after rendering to cleanup cache data.
799 778
      */
800
-    private function cleanup()
801
-    {
779
+    private function cleanup() {
802 780
         $this->effectiveColumnWidths = [];
803 781
         $this->numberOfColumns = null;
804 782
     }
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/TableSeparator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,10 +16,8 @@
 block discarded – undo
16 16
  *
17 17
  * @author Fabien Potencier <[email protected]>
18 18
  */
19
-class TableSeparator extends TableCell
20
-{
21
-    public function __construct(array $options = [])
22
-    {
19
+class TableSeparator extends TableCell {
20
+    public function __construct(array $options = []) {
23 21
         parent::__construct('', $options);
24 22
     }
25 23
 }
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/InputAwareHelper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,15 +19,13 @@
 block discarded – undo
19 19
  *
20 20
  * @author Wouter J <[email protected]>
21 21
  */
22
-abstract class InputAwareHelper extends Helper implements InputAwareInterface
23
-{
22
+abstract class InputAwareHelper extends Helper implements InputAwareInterface {
24 23
     protected $input;
25 24
 
26 25
     /**
27 26
      * {@inheritdoc}
28 27
      */
29
-    public function setInput(InputInterface $input)
30
-    {
28
+    public function setInput(InputInterface $input) {
31 29
         $this->input = $input;
32 30
     }
33 31
 }
Please login to merge, or discard this patch.