GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( ff51d8...0b78e2 )
by Anton
04:14
created
deps/vendor/symfony/process/ExecutableFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         }
76 76
         foreach ($suffixes as $suffix) {
77 77
             foreach ($dirs as $dir) {
78
-                if (@is_file($file = $dir.\DIRECTORY_SEPARATOR.$name.$suffix) && ('\\' === \DIRECTORY_SEPARATOR || @is_executable($file))) {
78
+                if (@is_file($file = $dir . \DIRECTORY_SEPARATOR . $name . $suffix) && ('\\' === \DIRECTORY_SEPARATOR || @is_executable($file))) {
79 79
                     return $file;
80 80
                 }
81 81
             }
Please login to merge, or discard this patch.
deps/vendor/symfony/service-contracts/ServiceSubscriberTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
                 $serviceId = $returnType instanceof \ReflectionNamedType ? $returnType->getName() : (string) $returnType;
61 61
 
62 62
                 if ($returnType->allowsNull()) {
63
-                    $serviceId = '?'.$serviceId;
63
+                    $serviceId = '?' . $serviceId;
64 64
                 }
65 65
 
66
-                $services[$attribute->newInstance()->key ?? self::class.'::'.$method->name] = $serviceId;
66
+                $services[$attribute->newInstance()->key ?? self::class . '::' . $method->name] = $serviceId;
67 67
                 $attributeOptIn = true;
68 68
             }
69 69
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                     trigger_deprecation('symfony/service-contracts', '2.5', 'Using "%s" in "%s" without using the "%s" attribute on any method is deprecated.', ServiceSubscriberTrait::class, self::class, SubscribedService::class);
91 91
                 }
92 92
 
93
-                $services[self::class.'::'.$method->name] = '?'.($returnType instanceof \ReflectionNamedType ? $returnType->getName() : $returnType);
93
+                $services[self::class . '::' . $method->name] = '?' . ($returnType instanceof \ReflectionNamedType ? $returnType->getName() : $returnType);
94 94
             }
95 95
         }
96 96
 
Please login to merge, or discard this patch.
deps/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
     public function testHas()
31 31
     {
32 32
         $locator = $this->getServiceLocator([
33
-            'foo' => function () { return 'bar'; },
34
-            'bar' => function () { return 'baz'; },
35
-            function () { return 'dummy'; },
33
+            'foo' => function() { return 'bar'; },
34
+            'bar' => function() { return 'baz'; },
35
+            function() { return 'dummy'; },
36 36
         ]);
37 37
 
38 38
         $this->assertTrue($locator->has('foo'));
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     public function testGet()
44 44
     {
45 45
         $locator = $this->getServiceLocator([
46
-            'foo' => function () { return 'bar'; },
47
-            'bar' => function () { return 'baz'; },
46
+            'foo' => function() { return 'bar'; },
47
+            'bar' => function() { return 'baz'; },
48 48
         ]);
49 49
 
50 50
         $this->assertSame('bar', $locator->get('foo'));
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $i = 0;
57 57
         $locator = $this->getServiceLocator([
58
-            'foo' => function () use (&$i) {
58
+            'foo' => function() use (&$i) {
59 59
                 ++$i;
60 60
 
61 61
                 return 'bar';
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.');
75 75
         }
76 76
         $locator = $this->getServiceLocator([
77
-            'foo' => function () use (&$locator) { return $locator->get('bar'); },
77
+            'foo' => function() use (&$locator) { return $locator->get('bar'); },
78 78
         ]);
79 79
 
80 80
         $locator->get('foo');
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
         $this->expectException(\Psr\Container\ContainerExceptionInterface::class);
86 86
         $this->expectExceptionMessage('Circular reference detected for service "bar", path: "bar -> baz -> bar".');
87 87
         $locator = $this->getServiceLocator([
88
-            'foo' => function () use (&$locator) { return $locator->get('bar'); },
89
-            'bar' => function () use (&$locator) { return $locator->get('baz'); },
90
-            'baz' => function () use (&$locator) { return $locator->get('bar'); },
88
+            'foo' => function() use (&$locator) { return $locator->get('bar'); },
89
+            'bar' => function() use (&$locator) { return $locator->get('baz'); },
90
+            'baz' => function() use (&$locator) { return $locator->get('bar'); },
91 91
         ]);
92 92
 
93 93
         $locator->get('foo');
Please login to merge, or discard this patch.
deps/vendor/symfony/polyfill-intl-grapheme/Grapheme.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     private const CASE_FOLD = [
41 41
         ['µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"],
42
-        ['μ', 's', 'ι',        'σ', 'β',        'θ',        'φ',        'π',        'κ',        'ρ',        'ε',        "\xE1\xB9\xA1", 'ι'],
42
+        ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'],
43 43
     ];
44 44
 
45 45
     public static function grapheme_extract($s, $size, $type = \GRAPHEME_EXTR_COUNT, $start = 0, &$next = 0)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         if (!is_scalar($s)) {
52 52
             $hasError = false;
53
-            set_error_handler(function () use (&$hasError) { $hasError = true; });
53
+            set_error_handler(function() use (&$hasError) { $hasError = true; });
54 54
             $next = substr($s, $start);
55 55
             restore_error_handler();
56 56
             if ($hasError) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $next = $start;
85 85
 
86
-        $s = preg_split('/('.SYMFONY_GRAPHEME_CLUSTER_RX.')/u', "\r\n".$s, $size + 1, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE);
86
+        $s = preg_split('/(' . SYMFONY_GRAPHEME_CLUSTER_RX . ')/u', "\r\n" . $s, $size + 1, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE);
87 87
 
88 88
         if (!isset($s[1])) {
89 89
             return false;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     public static function grapheme_strlen($s)
115 115
     {
116
-        preg_replace('/'.SYMFONY_GRAPHEME_CLUSTER_RX.'/u', '', $s, -1, $len);
116
+        preg_replace('/' . SYMFONY_GRAPHEME_CLUSTER_RX . '/u', '', $s, -1, $len);
117 117
 
118 118
         return 0 === $len && '' !== $s ? null : $len;
119 119
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             $len = 2147483647;
125 125
         }
126 126
 
127
-        preg_match_all('/'.SYMFONY_GRAPHEME_CLUSTER_RX.'/u', $s, $s);
127
+        preg_match_all('/' . SYMFONY_GRAPHEME_CLUSTER_RX . '/u', $s, $s);
128 128
 
129 129
         $slen = \count($s[0]);
130 130
         $start = (int) $start;
Please login to merge, or discard this patch.
deps/vendor/symfony/string/AbstractUnicodeString.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
             if (0x80 > $code %= 0x200000) {
64 64
                 $string .= \chr($code);
65 65
             } elseif (0x800 > $code) {
66
-                $string .= \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F);
66
+                $string .= \chr(0xC0 | $code >> 6) . \chr(0x80 | $code & 0x3F);
67 67
             } elseif (0x10000 > $code) {
68
-                $string .= \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
68
+                $string .= \chr(0xE0 | $code >> 12) . \chr(0x80 | $code >> 6 & 0x3F) . \chr(0x80 | $code & 0x3F);
69 69
             } else {
70
-                $string .= \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
70
+                $string .= \chr(0xF0 | $code >> 18) . \chr(0x80 | $code >> 12 & 0x3F) . \chr(0x80 | $code >> 6 & 0x3F) . \chr(0x80 | $code & 0x3F);
71 71
             }
72 72
         }
73 73
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             } elseif (!\function_exists('iconv')) {
143 143
                 $s = preg_replace('/[^\x00-\x7F]/u', '?', $s);
144 144
             } else {
145
-                $s = @preg_replace_callback('/[^\x00-\x7F]/u', static function ($c) {
145
+                $s = @preg_replace_callback('/[^\x00-\x7F]/u', static function($c) {
146 146
                     $c = (string) iconv('UTF-8', 'ASCII//TRANSLIT', $c[0]);
147 147
 
148 148
                     if ('' === $c && '' === iconv('UTF-8', 'ASCII//TRANSLIT', '²')) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     public function camel(): parent
163 163
     {
164 164
         $str = clone $this;
165
-        $str->string = str_replace(' ', '', preg_replace_callback('/\b./u', static function ($m) use (&$i) {
165
+        $str->string = str_replace(' ', '', preg_replace_callback('/\b./u', static function($m) use (&$i) {
166 166
             return 1 === ++$i ? ('İ' === $m[0] ? 'i̇' : mb_strtolower($m[0], 'UTF-8')) : mb_convert_case($m[0], \MB_CASE_TITLE, 'UTF-8');
167 167
         }, preg_replace('/[^\pL0-9]++/u', ' ', $this->string)));
168 168
 
@@ -207,8 +207,8 @@  discard block
 block discarded – undo
207 207
     {
208 208
         $str = clone $this;
209 209
 
210
-        $tail = null !== $lastGlue && 1 < \count($strings) ? $lastGlue.array_pop($strings) : '';
211
-        $str->string = implode($this->string, $strings).$tail;
210
+        $tail = null !== $lastGlue && 1 < \count($strings) ? $lastGlue . array_pop($strings) : '';
211
+        $str->string = implode($this->string, $strings) . $tail;
212 212
 
213 213
         if (!preg_match('//u', $str->string)) {
214 214
             throw new InvalidArgumentException('Invalid UTF-8 string.');
@@ -233,15 +233,15 @@  discard block
 block discarded – undo
233 233
             $regexp .= 'i';
234 234
         }
235 235
 
236
-        set_error_handler(static function ($t, $m) { throw new InvalidArgumentException($m); });
236
+        set_error_handler(static function($t, $m) { throw new InvalidArgumentException($m); });
237 237
 
238 238
         try {
239
-            if (false === $match($regexp.'u', $this->string, $matches, $flags | \PREG_UNMATCHED_AS_NULL, $offset)) {
239
+            if (false === $match($regexp . 'u', $this->string, $matches, $flags | \PREG_UNMATCHED_AS_NULL, $offset)) {
240 240
                 $lastError = preg_last_error();
241 241
 
242 242
                 foreach (get_defined_constants(true)['pcre'] as $k => $v) {
243 243
                     if ($lastError === $v && '_ERROR' === substr($k, -6)) {
244
-                        throw new RuntimeException('Matching failed with '.$k.'.');
244
+                        throw new RuntimeException('Matching failed with ' . $k . '.');
245 245
                     }
246 246
                 }
247 247
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             }
318 318
 
319 319
             $replace = 'preg_replace_callback';
320
-            $to = static function (array $m) use ($to): string {
320
+            $to = static function(array $m) use ($to): string {
321 321
                 $to = $to($m);
322 322
 
323 323
                 if ('' !== $to && (!\is_string($to) || !preg_match('//u', $to))) {
@@ -332,15 +332,15 @@  discard block
 block discarded – undo
332 332
             $replace = 'preg_replace';
333 333
         }
334 334
 
335
-        set_error_handler(static function ($t, $m) { throw new InvalidArgumentException($m); });
335
+        set_error_handler(static function($t, $m) { throw new InvalidArgumentException($m); });
336 336
 
337 337
         try {
338
-            if (null === $string = $replace($fromRegexp.'u', $to, $this->string)) {
338
+            if (null === $string = $replace($fromRegexp . 'u', $to, $this->string)) {
339 339
                 $lastError = preg_last_error();
340 340
 
341 341
                 foreach (get_defined_constants(true)['pcre'] as $k => $v) {
342 342
                     if ($lastError === $v && '_ERROR' === substr($k, -6)) {
343
-                        throw new RuntimeException('Matching failed with '.$k.'.');
343
+                        throw new RuntimeException('Matching failed with ' . $k . '.');
344 344
                     }
345 345
                 }
346 346
 
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
         $limit = $allWords ? -1 : 1;
380 380
 
381
-        $str->string = preg_replace_callback('/\b./u', static function (array $m): string {
381
+        $str->string = preg_replace_callback('/\b./u', static function(array $m): string {
382 382
             return mb_convert_case($m[0], \MB_CASE_TITLE, 'UTF-8');
383 383
         }, $str->string, $limit);
384 384
 
@@ -522,22 +522,22 @@  discard block
 block discarded – undo
522 522
 
523 523
         switch ($type) {
524 524
             case \STR_PAD_RIGHT:
525
-                return $this->append(str_repeat($pad->string, intdiv($freeLen, $padLen)).($len ? $pad->slice(0, $len) : ''));
525
+                return $this->append(str_repeat($pad->string, intdiv($freeLen, $padLen)) . ($len ? $pad->slice(0, $len) : ''));
526 526
 
527 527
             case \STR_PAD_LEFT:
528
-                return $this->prepend(str_repeat($pad->string, intdiv($freeLen, $padLen)).($len ? $pad->slice(0, $len) : ''));
528
+                return $this->prepend(str_repeat($pad->string, intdiv($freeLen, $padLen)) . ($len ? $pad->slice(0, $len) : ''));
529 529
 
530 530
             case \STR_PAD_BOTH:
531 531
                 $freeLen /= 2;
532 532
 
533 533
                 $rightLen = ceil($freeLen);
534 534
                 $len = $rightLen % $padLen;
535
-                $str = $this->append(str_repeat($pad->string, intdiv($rightLen, $padLen)).($len ? $pad->slice(0, $len) : ''));
535
+                $str = $this->append(str_repeat($pad->string, intdiv($rightLen, $padLen)) . ($len ? $pad->slice(0, $len) : ''));
536 536
 
537 537
                 $leftLen = floor($freeLen);
538 538
                 $len = $leftLen % $padLen;
539 539
 
540
-                return $str->prepend(str_repeat($pad->string, intdiv($leftLen, $padLen)).($len ? $pad->slice(0, $len) : ''));
540
+                return $str->prepend(str_repeat($pad->string, intdiv($leftLen, $padLen)) . ($len ? $pad->slice(0, $len) : ''));
541 541
 
542 542
             default:
543 543
                 throw new InvalidArgumentException('Invalid padding type.');
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
             }
574 574
 
575 575
             if (null === self::$tableZero) {
576
-                self::$tableZero = require __DIR__.'/Resources/data/wcswidth_table_zero.php';
576
+                self::$tableZero = require __DIR__ . '/Resources/data/wcswidth_table_zero.php';
577 577
             }
578 578
 
579 579
             if ($codePoint >= self::$tableZero[0][0] && $codePoint <= self::$tableZero[$ubound = \count(self::$tableZero) - 1][1]) {
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
             }
593 593
 
594 594
             if (null === self::$tableWide) {
595
-                self::$tableWide = require __DIR__.'/Resources/data/wcswidth_table_wide.php';
595
+                self::$tableWide = require __DIR__ . '/Resources/data/wcswidth_table_wide.php';
596 596
             }
597 597
 
598 598
             if ($codePoint >= self::$tableWide[0][0] && $codePoint <= self::$tableWide[$ubound = \count(self::$tableWide) - 1][1]) {
Please login to merge, or discard this patch.
deps/vendor/symfony/string/Slugger/AsciiSlugger.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             // If the symbols map is passed as a closure, there is no need to fallback to the parent locale
115 115
             // as the closure can just provide substitutions for all locales of interest.
116 116
             $symbolsMap = $this->symbolsMap;
117
-            array_unshift($transliterator, static function ($s) use ($symbolsMap, $locale) {
117
+            array_unshift($transliterator, static function($s) use ($symbolsMap, $locale) {
118 118
                 return $symbolsMap($s, $locale);
119 119
             });
120 120
         }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             }
134 134
             if ($map) {
135 135
                 foreach ($map as $char => $replace) {
136
-                    $unicodeString = $unicodeString->replace($char, ' '.$replace.' ');
136
+                    $unicodeString = $unicodeString->replace($char, ' ' . $replace . ' ');
137 137
                 }
138 138
             }
139 139
         }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
         // Exact locale supported, cache and return
154 154
         if ($id = self::LOCALE_TO_TRANSLITERATOR_ID[$locale] ?? null) {
155
-            return $this->transliterators[$locale] = \Transliterator::create($id.'/BGN') ?? \Transliterator::create($id);
155
+            return $this->transliterators[$locale] = \Transliterator::create($id . '/BGN') ?? \Transliterator::create($id);
156 156
         }
157 157
 
158 158
         // Locale not supported and no parent, fallback to any-latin
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         // Try to use the parent locale (ie. try "de" for "de_AT") and cache both locales
164 164
         if ($id = self::LOCALE_TO_TRANSLITERATOR_ID[$parent] ?? null) {
165
-            $transliterator = \Transliterator::create($id.'/BGN') ?? \Transliterator::create($id);
165
+            $transliterator = \Transliterator::create($id . '/BGN') ?? \Transliterator::create($id);
166 166
         }
167 167
 
168 168
         return $this->transliterators[$locale] = $this->transliterators[$parent] = $transliterator ?? null;
Please login to merge, or discard this patch.
deps/vendor/symfony/string/LazyString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
 
34 34
         $lazyString = new static();
35
-        $lazyString->value = static function () use (&$callback, &$arguments, &$value): string {
35
+        $lazyString->value = static function() use (&$callback, &$arguments, &$value): string {
36 36
             if (null !== $arguments) {
37 37
                 if (!\is_callable($callback)) {
38 38
                     $callback[0] = $callback[0]();
@@ -159,6 +159,6 @@  discard block
 block discarded – undo
159 159
             $method = '__invoke';
160 160
         }
161 161
 
162
-        return $class.'::'.$method;
162
+        return $class . '::' . $method;
163 163
     }
164 164
 }
Please login to merge, or discard this patch.
deps/vendor/symfony/string/UnicodeString.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function append(string ...$suffix): AbstractString
45 45
     {
46 46
         $str = clone $this;
47
-        $str->string = $this->string.(1 >= \count($suffix) ? ($suffix[0] ?? '') : implode('', $suffix));
47
+        $str->string = $this->string . (1 >= \count($suffix) ? ($suffix[0] ?? '') : implode('', $suffix));
48 48
         normalizer_is_normalized($str->string) ?: $str->string = normalizer_normalize($str->string);
49 49
 
50 50
         if (false === $str->string) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $rx .= '\X{65535}';
70 70
             $length -= 65535;
71 71
         }
72
-        $rx .= '\X{'.$length.'})/u';
72
+        $rx .= '\X{' . $length . '})/u';
73 73
 
74 74
         $str = clone $this;
75 75
         $chunks = [];
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     public function prepend(string ...$prefix): AbstractString
220 220
     {
221 221
         $str = clone $this;
222
-        $str->string = (1 >= \count($prefix) ? ($prefix[0] ?? '') : implode('', $prefix)).$this->string;
222
+        $str->string = (1 >= \count($prefix) ? ($prefix[0] ?? '') : implode('', $prefix)) . $this->string;
223 223
         normalizer_is_normalized($str->string) ?: $str->string = normalizer_normalize($str->string);
224 224
 
225 225
         if (false === $str->string) {
@@ -241,11 +241,11 @@  discard block
 block discarded – undo
241 241
 
242 242
             while ('' !== $tail && false !== $i = $indexOf($tail, $from)) {
243 243
                 $slice = grapheme_substr($tail, 0, $i);
244
-                $result .= $slice.$to;
244
+                $result .= $slice . $to;
245 245
                 $tail = substr($tail, \strlen($slice) + \strlen($from));
246 246
             }
247 247
 
248
-            $str->string = $result.$tail;
248
+            $str->string = $result . $tail;
249 249
             normalizer_is_normalized($str->string) ?: $str->string = normalizer_normalize($str->string);
250 250
 
251 251
             if (false === $str->string) {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         }
307 307
 
308 308
         if (null !== $flags) {
309
-            return parent::split($delimiter.'u', $limit, $flags);
309
+            return parent::split($delimiter . 'u', $limit, $flags);
310 310
         }
311 311
 
312 312
         normalizer_is_normalized($delimiter) ?: $delimiter = normalizer_normalize($delimiter);
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     public function __wakeup()
361 361
     {
362 362
         if (!\is_string($this->string)) {
363
-            throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
363
+            throw new \BadMethodCallException('Cannot unserialize ' . __CLASS__);
364 364
         }
365 365
 
366 366
         normalizer_is_normalized($this->string) ?: $this->string = normalizer_normalize($this->string);
Please login to merge, or discard this patch.
deps/vendor/symfony/string/ByteString.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
     {
215 215
         $str = clone $this;
216 216
 
217
-        $tail = null !== $lastGlue && 1 < \count($strings) ? $lastGlue.array_pop($strings) : '';
218
-        $str->string = implode($this->string, $strings).$tail;
217
+        $tail = null !== $lastGlue && 1 < \count($strings) ? $lastGlue . array_pop($strings) : '';
218
+        $str->string = implode($this->string, $strings) . $tail;
219 219
 
220 220
         return $str;
221 221
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             $regexp .= 'i';
242 242
         }
243 243
 
244
-        set_error_handler(static function ($t, $m) { throw new InvalidArgumentException($m); });
244
+        set_error_handler(static function($t, $m) { throw new InvalidArgumentException($m); });
245 245
 
246 246
         try {
247 247
             if (false === $match($regexp, $this->string, $matches, $flags | \PREG_UNMATCHED_AS_NULL, $offset)) {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
                 foreach (get_defined_constants(true)['pcre'] as $k => $v) {
251 251
                     if ($lastError === $v && '_ERROR' === substr($k, -6)) {
252
-                        throw new RuntimeException('Matching failed with '.$k.'.');
252
+                        throw new RuntimeException('Matching failed with ' . $k . '.');
253 253
                     }
254 254
                 }
255 255
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     public function prepend(string ...$prefix): parent
290 290
     {
291 291
         $str = clone $this;
292
-        $str->string = (1 >= \count($prefix) ? ($prefix[0] ?? '') : implode('', $prefix)).$str->string;
292
+        $str->string = (1 >= \count($prefix) ? ($prefix[0] ?? '') : implode('', $prefix)) . $str->string;
293 293
 
294 294
         return $str;
295 295
     }
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             $replace = $to instanceof \Closure ? 'preg_replace_callback' : 'preg_replace';
322 322
         }
323 323
 
324
-        set_error_handler(static function ($t, $m) { throw new InvalidArgumentException($m); });
324
+        set_error_handler(static function($t, $m) { throw new InvalidArgumentException($m); });
325 325
 
326 326
         try {
327 327
             if (null === $string = $replace($fromRegexp, $to, $this->string)) {
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 
330 330
                 foreach (get_defined_constants(true)['pcre'] as $k => $v) {
331 331
                     if ($lastError === $v && '_ERROR' === substr($k, -6)) {
332
-                        throw new RuntimeException('Matching failed with '.$k.'.');
332
+                        throw new RuntimeException('Matching failed with ' . $k . '.');
333 333
                     }
334 334
                 }
335 335
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
         $str = clone $this;
395 395
         $chunks = $this->ignoreCase
396
-            ? preg_split('{'.preg_quote($delimiter).'}iD', $this->string, $limit)
396
+            ? preg_split('{' . preg_quote($delimiter) . '}iD', $this->string, $limit)
397 397
             : explode($delimiter, $this->string, $limit);
398 398
 
399 399
         foreach ($chunks as &$chunk) {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
             return $u;
439 439
         }
440 440
 
441
-        set_error_handler(static function ($t, $m) { throw new InvalidArgumentException($m); });
441
+        set_error_handler(static function($t, $m) { throw new InvalidArgumentException($m); });
442 442
 
443 443
         try {
444 444
             try {
Please login to merge, or discard this patch.