Completed
Push — develop ( 316159...00443b )
by Zack
20:22
created
vendor/symfony/console/Helper/HelperSet.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
  *
20 20
  * @author Fabien Potencier <[email protected]>
21 21
  */
22
-class HelperSet implements \IteratorAggregate
23
-{
22
+class HelperSet implements \IteratorAggregate {
24 23
     /**
25 24
      * @var Helper[]
26 25
      */
@@ -30,15 +29,13 @@  discard block
 block discarded – undo
30 29
     /**
31 30
      * @param Helper[] $helpers An array of helper
32 31
      */
33
-    public function __construct(array $helpers = [])
34
-    {
32
+    public function __construct(array $helpers = []) {
35 33
         foreach ($helpers as $alias => $helper) {
36 34
             $this->set($helper, \is_int($alias) ? null : $alias);
37 35
         }
38 36
     }
39 37
 
40
-    public function set(HelperInterface $helper, string $alias = null)
41
-    {
38
+    public function set(HelperInterface $helper, string $alias = null) {
42 39
         $this->helpers[$helper->getName()] = $helper;
43 40
         if (null !== $alias) {
44 41
             $this->helpers[$alias] = $helper;
@@ -52,8 +49,7 @@  discard block
 block discarded – undo
52 49
      *
53 50
      * @return bool true if the helper is defined, false otherwise
54 51
      */
55
-    public function has(string $name)
56
-    {
52
+    public function has(string $name) {
57 53
         return isset($this->helpers[$name]);
58 54
     }
59 55
 
@@ -64,8 +60,7 @@  discard block
 block discarded – undo
64 60
      *
65 61
      * @throws InvalidArgumentException if the helper is not defined
66 62
      */
67
-    public function get(string $name)
68
-    {
63
+    public function get(string $name) {
69 64
         if (!$this->has($name)) {
70 65
             throw new InvalidArgumentException(sprintf('The helper "%s" is not defined.', $name));
71 66
         }
@@ -73,8 +68,7 @@  discard block
 block discarded – undo
73 68
         return $this->helpers[$name];
74 69
     }
75 70
 
76
-    public function setCommand(Command $command = null)
77
-    {
71
+    public function setCommand(Command $command = null) {
78 72
         $this->command = $command;
79 73
     }
80 74
 
@@ -83,8 +77,7 @@  discard block
 block discarded – undo
83 77
      *
84 78
      * @return Command A Command instance
85 79
      */
86
-    public function getCommand()
87
-    {
80
+    public function getCommand() {
88 81
         return $this->command;
89 82
     }
90 83
 
@@ -92,8 +85,7 @@  discard block
 block discarded – undo
92 85
      * @return \Traversable<Helper>
93 86
      */
94 87
     #[\ReturnTypeWillChange]
95
-    public function getIterator()
96
-    {
88
+    public function getIterator() {
97 89
         return new \ArrayIterator($this->helpers);
98 90
     }
99 91
 }
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/DebugFormatterHelper.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
  *
19 19
  * @author Fabien Potencier <[email protected]>
20 20
  */
21
-class DebugFormatterHelper extends Helper
22
-{
21
+class DebugFormatterHelper extends Helper {
23 22
     private $colors = ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white', 'default'];
24 23
     private $started = [];
25 24
     private $count = -1;
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
      *
30 29
      * @return string
31 30
      */
32
-    public function start(string $id, string $message, string $prefix = 'RUN')
33
-    {
31
+    public function start(string $id, string $message, string $prefix = 'RUN') {
34 32
         $this->started[$id] = ['border' => ++$this->count % \count($this->colors)];
35 33
 
36 34
         return sprintf("%s<bg=blue;fg=white> %s </> <fg=blue>%s</>\n", $this->getBorder($id), $prefix, $message);
@@ -41,8 +39,7 @@  discard block
 block discarded – undo
41 39
      *
42 40
      * @return string
43 41
      */
44
-    public function progress(string $id, string $buffer, bool $error = false, string $prefix = 'OUT', string $errorPrefix = 'ERR')
45
-    {
42
+    public function progress(string $id, string $buffer, bool $error = false, string $prefix = 'OUT', string $errorPrefix = 'ERR') {
46 43
         $message = '';
47 44
 
48 45
         if ($error) {
@@ -77,8 +74,7 @@  discard block
 block discarded – undo
77 74
      *
78 75
      * @return string
79 76
      */
80
-    public function stop(string $id, string $message, bool $successful, string $prefix = 'RES')
81
-    {
77
+    public function stop(string $id, string $message, bool $successful, string $prefix = 'RES') {
82 78
         $trailingEOL = isset($this->started[$id]['out']) || isset($this->started[$id]['err']) ? "\n" : '';
83 79
 
84 80
         if ($successful) {
@@ -100,8 +96,7 @@  discard block
 block discarded – undo
100 96
     /**
101 97
      * {@inheritdoc}
102 98
      */
103
-    public function getName()
104
-    {
99
+    public function getName() {
105 100
         return 'debug_formatter';
106 101
     }
107 102
 }
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/Helper.php 1 patch
Braces   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -19,23 +19,20 @@  discard block
 block discarded – undo
19 19
  *
20 20
  * @author Fabien Potencier <[email protected]>
21 21
  */
22
-abstract class Helper implements HelperInterface
23
-{
22
+abstract class Helper implements HelperInterface {
24 23
     protected $helperSet = null;
25 24
 
26 25
     /**
27 26
      * {@inheritdoc}
28 27
      */
29
-    public function setHelperSet(HelperSet $helperSet = null)
30
-    {
28
+    public function setHelperSet(HelperSet $helperSet = null) {
31 29
         $this->helperSet = $helperSet;
32 30
     }
33 31
 
34 32
     /**
35 33
      * {@inheritdoc}
36 34
      */
37
-    public function getHelperSet()
38
-    {
35
+    public function getHelperSet() {
39 36
         return $this->helperSet;
40 37
     }
41 38
 
@@ -46,8 +43,7 @@  discard block
 block discarded – undo
46 43
      *
47 44
      * @return int The length of the string
48 45
      */
49
-    public static function strlen(?string $string)
50
-    {
46
+    public static function strlen(?string $string) {
51 47
         trigger_deprecation('symfony/console', '5.3', 'Method "%s()" is deprecated and will be removed in Symfony 6.0. Use Helper::width() or Helper::length() instead.', __METHOD__);
52 48
 
53 49
         return self::width($string);
@@ -96,8 +92,7 @@  discard block
 block discarded – undo
96 92
      *
97 93
      * @return string The string subset
98 94
      */
99
-    public static function substr(?string $string, int $from, int $length = null)
100
-    {
95
+    public static function substr(?string $string, int $from, int $length = null) {
101 96
         $string ?? $string = '';
102 97
 
103 98
         if (false === $encoding = mb_detect_encoding($string, null, true)) {
@@ -107,8 +102,7 @@  discard block
 block discarded – undo
107 102
         return mb_substr($string, $from, $length, $encoding);
108 103
     }
109 104
 
110
-    public static function formatTime($secs)
111
-    {
105
+    public static function formatTime($secs) {
112 106
         static $timeFormats = [
113 107
             [0, '< 1 sec'],
114 108
             [1, '1 sec'],
@@ -136,8 +130,7 @@  discard block
 block discarded – undo
136 130
         }
137 131
     }
138 132
 
139
-    public static function formatMemory(int $memory)
140
-    {
133
+    public static function formatMemory(int $memory) {
141 134
         if ($memory >= 1024 * 1024 * 1024) {
142 135
             return sprintf('%.1f GiB', $memory / 1024 / 1024 / 1024);
143 136
         }
@@ -156,15 +149,13 @@  discard block
 block discarded – undo
156 149
     /**
157 150
      * @deprecated since Symfony 5.3
158 151
      */
159
-    public static function strlenWithoutDecoration(OutputFormatterInterface $formatter, ?string $string)
160
-    {
152
+    public static function strlenWithoutDecoration(OutputFormatterInterface $formatter, ?string $string) {
161 153
         trigger_deprecation('symfony/console', '5.3', 'Method "%s()" is deprecated and will be removed in Symfony 6.0. Use Helper::removeDecoration() instead.', __METHOD__);
162 154
 
163 155
         return self::width(self::removeDecoration($formatter, $string));
164 156
     }
165 157
 
166
-    public static function removeDecoration(OutputFormatterInterface $formatter, ?string $string)
167
-    {
158
+    public static function removeDecoration(OutputFormatterInterface $formatter, ?string $string) {
168 159
         $isDecorated = $formatter->isDecorated();
169 160
         $formatter->setDecorated(false);
170 161
         // remove <...> formatting
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/FormatterHelper.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,15 +18,13 @@  discard block
 block discarded – undo
18 18
  *
19 19
  * @author Fabien Potencier <[email protected]>
20 20
  */
21
-class FormatterHelper extends Helper
22
-{
21
+class FormatterHelper extends Helper {
23 22
     /**
24 23
      * Formats a message within a section.
25 24
      *
26 25
      * @return string The format section
27 26
      */
28
-    public function formatSection(string $section, string $message, string $style = 'info')
29
-    {
27
+    public function formatSection(string $section, string $message, string $style = 'info') {
30 28
         return sprintf('<%s>[%s]</%s> %s', $style, $section, $style, $message);
31 29
     }
32 30
 
@@ -37,8 +35,7 @@  discard block
 block discarded – undo
37 35
      *
38 36
      * @return string The formatter message
39 37
      */
40
-    public function formatBlock($messages, string $style, bool $large = false)
41
-    {
38
+    public function formatBlock($messages, string $style, bool $large = false) {
42 39
         if (!\is_array($messages)) {
43 40
             $messages = [$messages];
44 41
         }
@@ -71,8 +68,7 @@  discard block
 block discarded – undo
71 68
      *
72 69
      * @return string
73 70
      */
74
-    public function truncate(string $message, int $length, string $suffix = '...')
75
-    {
71
+    public function truncate(string $message, int $length, string $suffix = '...') {
76 72
         $computedLength = $length - self::width($suffix);
77 73
 
78 74
         if ($computedLength > self::width($message)) {
@@ -85,8 +81,7 @@  discard block
 block discarded – undo
85 81
     /**
86 82
      * {@inheritdoc}
87 83
      */
88
-    public function getName()
89
-    {
84
+    public function getName() {
90 85
         return 'formatter';
91 86
     }
92 87
 }
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/SymfonyQuestionHelper.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,13 +23,11 @@  discard block
 block discarded – undo
23 23
  *
24 24
  * @author Kevin Bond <[email protected]>
25 25
  */
26
-class SymfonyQuestionHelper extends QuestionHelper
27
-{
26
+class SymfonyQuestionHelper extends QuestionHelper {
28 27
     /**
29 28
      * {@inheritdoc}
30 29
      */
31
-    protected function writePrompt(OutputInterface $output, Question $question)
32
-    {
30
+    protected function writePrompt(OutputInterface $output, Question $question) {
33 31
         $text = OutputFormatter::escapeTrailingBackslash($question->getQuestion());
34 32
         $default = $question->getDefault();
35 33
 
@@ -86,8 +84,7 @@  discard block
 block discarded – undo
86 84
     /**
87 85
      * {@inheritdoc}
88 86
      */
89
-    protected function writeError(OutputInterface $output, \Exception $error)
90
-    {
87
+    protected function writeError(OutputInterface $output, \Exception $error) {
91 88
         if ($output instanceof SymfonyStyle) {
92 89
             $output->newLine();
93 90
             $output->error($error->getMessage());
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/TableRows.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,12 +14,10 @@
 block discarded – undo
14 14
 /**
15 15
  * @internal
16 16
  */
17
-class TableRows implements \IteratorAggregate
18
-{
17
+class TableRows implements \IteratorAggregate {
19 18
     private $generator;
20 19
 
21
-    public function __construct(callable $generator)
22
-    {
20
+    public function __construct(callable $generator) {
23 21
         $this->generator = $generator;
24 22
     }
25 23
 
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/ProgressBar.php 1 patch
Braces   +16 added lines, -32 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @author Fabien Potencier <[email protected]>
25 25
  * @author Chris Jones <[email protected]>
26 26
  */
27
-final class ProgressBar
28
-{
27
+final class ProgressBar {
29 28
     public const FORMAT_VERBOSE = 'verbose';
30 29
     public const FORMAT_VERY_VERBOSE = 'very_verbose';
31 30
     public const FORMAT_DEBUG = 'debug';
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
     /**
67 66
      * @param int $max Maximum steps (0 if unknown)
68 67
      */
69
-    public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 1 / 25)
70
-    {
68
+    public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 1 / 25) {
71 69
         if ($output instanceof ConsoleOutputInterface) {
72 70
             $output = $output->getErrorOutput();
73 71
         }
@@ -169,13 +167,11 @@  discard block
 block discarded – undo
169 167
      * @param string $message The text to associate with the placeholder
170 168
      * @param string $name    The name of the placeholder
171 169
      */
172
-    public function setMessage(string $message, string $name = 'message')
173
-    {
170
+    public function setMessage(string $message, string $name = 'message') {
174 171
         $this->messages[$name] = $message;
175 172
     }
176 173
 
177
-    public function getMessage(string $name = 'message')
178
-    {
174
+    public function getMessage(string $name = 'message') {
179 175
         return $this->messages[$name];
180 176
     }
181 177
 
@@ -227,8 +223,7 @@  discard block
 block discarded – undo
227 223
         return round((time() - $this->startTime) / $this->step * ($this->max - $this->step));
228 224
     }
229 225
 
230
-    public function setBarWidth(int $size)
231
-    {
226
+    public function setBarWidth(int $size) {
232 227
         $this->barWidth = max(1, $size);
233 228
     }
234 229
 
@@ -237,8 +232,7 @@  discard block
 block discarded – undo
237 232
         return $this->barWidth;
238 233
     }
239 234
 
240
-    public function setBarCharacter(string $char)
241
-    {
235
+    public function setBarCharacter(string $char) {
242 236
         $this->barChar = $char;
243 237
     }
244 238
 
@@ -251,8 +245,7 @@  discard block
 block discarded – undo
251 245
         return $this->barChar;
252 246
     }
253 247
 
254
-    public function setEmptyBarCharacter(string $char)
255
-    {
248
+    public function setEmptyBarCharacter(string $char) {
256 249
         $this->emptyBarChar = $char;
257 250
     }
258 251
 
@@ -261,8 +254,7 @@  discard block
 block discarded – undo
261 254
         return $this->emptyBarChar;
262 255
     }
263 256
 
264
-    public function setProgressCharacter(string $char)
265
-    {
257
+    public function setProgressCharacter(string $char) {
266 258
         $this->progressChar = $char;
267 259
     }
268 260
 
@@ -271,8 +263,7 @@  discard block
 block discarded – undo
271 263
         return $this->progressChar;
272 264
     }
273 265
 
274
-    public function setFormat(string $format)
275
-    {
266
+    public function setFormat(string $format) {
276 267
         $this->format = null;
277 268
         $this->internalFormat = $format;
278 269
     }
@@ -282,8 +273,7 @@  discard block
 block discarded – undo
282 273
      *
283 274
      * @param int|null $freq The frequency in steps
284 275
      */
285
-    public function setRedrawFrequency(?int $freq)
286
-    {
276
+    public function setRedrawFrequency(?int $freq) {
287 277
         $this->redrawFreq = null !== $freq ? max(1, $freq) : null;
288 278
     }
289 279
 
@@ -320,8 +310,7 @@  discard block
 block discarded – undo
320 310
      *
321 311
      * @param int|null $max Number of steps to complete the bar (0 if indeterminate), null to leave unchanged
322 312
      */
323
-    public function start(int $max = null)
324
-    {
313
+    public function start(int $max = null) {
325 314
         $this->startTime = time();
326 315
         $this->step = 0;
327 316
         $this->percent = 0.0;
@@ -338,21 +327,18 @@  discard block
 block discarded – undo
338 327
      *
339 328
      * @param int $step Number of steps to advance
340 329
      */
341
-    public function advance(int $step = 1)
342
-    {
330
+    public function advance(int $step = 1) {
343 331
         $this->setProgress($this->step + $step);
344 332
     }
345 333
 
346 334
     /**
347 335
      * Sets whether to overwrite the progressbar, false for new line.
348 336
      */
349
-    public function setOverwrite(bool $overwrite)
350
-    {
337
+    public function setOverwrite(bool $overwrite) {
351 338
         $this->overwrite = $overwrite;
352 339
     }
353 340
 
354
-    public function setProgress(int $step)
355
-    {
341
+    public function setProgress(int $step) {
356 342
         if ($this->max && $step > $this->max) {
357 343
             $this->max = $step;
358 344
         } elseif ($step < 0) {
@@ -384,8 +370,7 @@  discard block
 block discarded – undo
384 370
         }
385 371
     }
386 372
 
387
-    public function setMaxSteps(int $max)
388
-    {
373
+    public function setMaxSteps(int $max) {
389 374
         $this->format = null;
390 375
         $this->max = max(0, $max);
391 376
         $this->stepWidth = $this->max ? Helper::width((string) $this->max) : 4;
@@ -444,8 +429,7 @@  discard block
 block discarded – undo
444 429
         $this->overwrite('');
445 430
     }
446 431
 
447
-    private function setRealFormat(string $format)
448
-    {
432
+    private function setRealFormat(string $format) {
449 433
         // try to use the _nomax variant if available
450 434
         if (!$this->max && null !== self::getFormatDefinition($format.'_nomax')) {
451 435
             $this->format = self::getFormatDefinition($format.'_nomax');
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/TableCellStyle.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
 /**
17 17
  * @author Yewhen Khoptynskyi <[email protected]>
18 18
  */
19
-class TableCellStyle
20
-{
19
+class TableCellStyle {
21 20
     public const DEFAULT_ALIGN = 'left';
22 21
 
23 22
     private $options = [
@@ -40,8 +39,7 @@  discard block
 block discarded – undo
40 39
         'right' => \STR_PAD_LEFT,
41 40
     ];
42 41
 
43
-    public function __construct(array $options = [])
44
-    {
42
+    public function __construct(array $options = []) {
45 43
         if ($diff = array_diff(array_keys($options), array_keys($this->options))) {
46 44
             throw new InvalidArgumentException(sprintf('The TableCellStyle does not support the following options: \'%s\'.', implode('\', \'', $diff)));
47 45
         }
@@ -63,8 +61,7 @@  discard block
 block discarded – undo
63 61
      *
64 62
      * @return string[]
65 63
      */
66
-    public function getTagOptions()
67
-    {
64
+    public function getTagOptions() {
68 65
         return array_filter(
69 66
             $this->getOptions(),
70 67
             function ($key) {
@@ -74,8 +71,7 @@  discard block
 block discarded – undo
74 71
         );
75 72
     }
76 73
 
77
-    public function getPadByAlign()
78
-    {
74
+    public function getPadByAlign() {
79 75
         return $this->alignMap[$this->getOptions()['align']];
80 76
     }
81 77
 
Please login to merge, or discard this patch.
vendor/symfony/console/Helper/TableStyle.php 1 patch
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
  * @author Саша Стаменковић <[email protected]>
22 22
  * @author Dany Maillard <[email protected]>
23 23
  */
24
-class TableStyle
25
-{
24
+class TableStyle {
26 25
     private $paddingChar = ' ';
27 26
     private $horizontalOutsideBorderChar = '-';
28 27
     private $horizontalInsideBorderChar = '-';
@@ -53,8 +52,7 @@  discard block
 block discarded – undo
53 52
      *
54 53
      * @return $this
55 54
      */
56
-    public function setPaddingChar(string $paddingChar)
57
-    {
55
+    public function setPaddingChar(string $paddingChar) {
58 56
         if (!$paddingChar) {
59 57
             throw new LogicException('The padding char must not be empty.');
60 58
         }
@@ -69,8 +67,7 @@  discard block
 block discarded – undo
69 67
      *
70 68
      * @return string
71 69
      */
72
-    public function getPaddingChar()
73
-    {
70
+    public function getPaddingChar() {
74 71
         return $this->paddingChar;
75 72
     }
76 73
 
@@ -196,8 +193,7 @@  discard block
 block discarded – undo
196 193
      *
197 194
      * @return string
198 195
      */
199
-    public function getCrossingChar()
200
-    {
196
+    public function getCrossingChar() {
201 197
         return $this->crossingChar;
202 198
     }
203 199
 
@@ -229,8 +225,7 @@  discard block
 block discarded – undo
229 225
      *
230 226
      * @return $this
231 227
      */
232
-    public function setCellHeaderFormat(string $cellHeaderFormat)
233
-    {
228
+    public function setCellHeaderFormat(string $cellHeaderFormat) {
234 229
         $this->cellHeaderFormat = $cellHeaderFormat;
235 230
 
236 231
         return $this;
@@ -241,8 +236,7 @@  discard block
 block discarded – undo
241 236
      *
242 237
      * @return string
243 238
      */
244
-    public function getCellHeaderFormat()
245
-    {
239
+    public function getCellHeaderFormat() {
246 240
         return $this->cellHeaderFormat;
247 241
     }
248 242
 
@@ -251,8 +245,7 @@  discard block
 block discarded – undo
251 245
      *
252 246
      * @return $this
253 247
      */
254
-    public function setCellRowFormat(string $cellRowFormat)
255
-    {
248
+    public function setCellRowFormat(string $cellRowFormat) {
256 249
         $this->cellRowFormat = $cellRowFormat;
257 250
 
258 251
         return $this;
@@ -263,8 +256,7 @@  discard block
 block discarded – undo
263 256
      *
264 257
      * @return string
265 258
      */
266
-    public function getCellRowFormat()
267
-    {
259
+    public function getCellRowFormat() {
268 260
         return $this->cellRowFormat;
269 261
     }
270 262
 
@@ -273,8 +265,7 @@  discard block
 block discarded – undo
273 265
      *
274 266
      * @return $this
275 267
      */
276
-    public function setCellRowContentFormat(string $cellRowContentFormat)
277
-    {
268
+    public function setCellRowContentFormat(string $cellRowContentFormat) {
278 269
         $this->cellRowContentFormat = $cellRowContentFormat;
279 270
 
280 271
         return $this;
@@ -285,8 +276,7 @@  discard block
 block discarded – undo
285 276
      *
286 277
      * @return string
287 278
      */
288
-    public function getCellRowContentFormat()
289
-    {
279
+    public function getCellRowContentFormat() {
290 280
         return $this->cellRowContentFormat;
291 281
     }
292 282
 
@@ -295,8 +285,7 @@  discard block
 block discarded – undo
295 285
      *
296 286
      * @return $this
297 287
      */
298
-    public function setBorderFormat(string $borderFormat)
299
-    {
288
+    public function setBorderFormat(string $borderFormat) {
300 289
         $this->borderFormat = $borderFormat;
301 290
 
302 291
         return $this;
@@ -307,8 +296,7 @@  discard block
 block discarded – undo
307 296
      *
308 297
      * @return string
309 298
      */
310
-    public function getBorderFormat()
311
-    {
299
+    public function getBorderFormat() {
312 300
         return $this->borderFormat;
313 301
     }
314 302
 
@@ -317,8 +305,7 @@  discard block
 block discarded – undo
317 305
      *
318 306
      * @return $this
319 307
      */
320
-    public function setPadType(int $padType)
321
-    {
308
+    public function setPadType(int $padType) {
322 309
         if (!\in_array($padType, [\STR_PAD_LEFT, \STR_PAD_RIGHT, \STR_PAD_BOTH], true)) {
323 310
             throw new InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).');
324 311
         }
@@ -333,8 +320,7 @@  discard block
 block discarded – undo
333 320
      *
334 321
      * @return int
335 322
      */
336
-    public function getPadType()
337
-    {
323
+    public function getPadType() {
338 324
         return $this->padType;
339 325
     }
340 326
 
Please login to merge, or discard this patch.