Passed
Pull Request — master (#5)
by
unknown
08:17
created
vendor/symfony/console/Question/ConfirmationQuestion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $default = $this->getDefault();
42 42
         $regex = $this->trueAnswerRegex;
43 43
 
44
-        return function ($answer) use ($default, $regex) {
44
+        return function($answer) use ($default, $regex) {
45 45
             if (\is_bool($answer)) {
46 46
                 return $answer;
47 47
             }
Please login to merge, or discard this patch.
vendor/symfony/service-contracts/Test/ServiceLocatorTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
     public function testHas()
28 28
     {
29 29
         $locator = $this->getServiceLocator([
30
-            'foo' => function () { return 'bar'; },
31
-            'bar' => function () { return 'baz'; },
32
-            function () { return 'dummy'; },
30
+            'foo' => function() { return 'bar'; },
31
+            'bar' => function() { return 'baz'; },
32
+            function() { return 'dummy'; },
33 33
         ]);
34 34
 
35 35
         $this->assertTrue($locator->has('foo'));
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     public function testGet()
41 41
     {
42 42
         $locator = $this->getServiceLocator([
43
-            'foo' => function () { return 'bar'; },
44
-            'bar' => function () { return 'baz'; },
43
+            'foo' => function() { return 'bar'; },
44
+            'bar' => function() { return 'baz'; },
45 45
         ]);
46 46
 
47 47
         $this->assertSame('bar', $locator->get('foo'));
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $i = 0;
54 54
         $locator = $this->getServiceLocator([
55
-            'foo' => function () use (&$i) {
55
+            'foo' => function() use (&$i) {
56 56
                 ++$i;
57 57
 
58 58
                 return 'bar';
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.');
72 72
         }
73 73
         $locator = $this->getServiceLocator([
74
-            'foo' => function () use (&$locator) { return $locator->get('bar'); },
74
+            'foo' => function() use (&$locator) { return $locator->get('bar'); },
75 75
         ]);
76 76
 
77 77
         $locator->get('foo');
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
         $this->expectException('Psr\Container\ContainerExceptionInterface');
83 83
         $this->expectExceptionMessage('Circular reference detected for service "bar", path: "bar -> baz -> bar".');
84 84
         $locator = $this->getServiceLocator([
85
-            'foo' => function () use (&$locator) { return $locator->get('bar'); },
86
-            'bar' => function () use (&$locator) { return $locator->get('baz'); },
87
-            'baz' => function () use (&$locator) { return $locator->get('bar'); },
85
+            'foo' => function() use (&$locator) { return $locator->get('bar'); },
86
+            'bar' => function() use (&$locator) { return $locator->get('baz'); },
87
+            'baz' => function() use (&$locator) { return $locator->get('bar'); },
88 88
         ]);
89 89
 
90 90
         $locator->get('foo');
Please login to merge, or discard this patch.
vendor/sebastian/global-state/src/CodeExporter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
         foreach ($snapshot->constants() as $name => $value) {
25 25
             $result .= \sprintf(
26
-                'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n",
26
+                'if (!defined(\'%s\')) define(\'%s\', %s);'."\n",
27 27
                 $name,
28 28
                 $name,
29 29
                 $this->exportVariable($value)
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function globalVariables(Snapshot $snapshot): string
37 37
     {
38
-        $result = '$GLOBALS = [];' . PHP_EOL;
38
+        $result = '$GLOBALS = [];'.PHP_EOL;
39 39
 
40 40
         foreach ($snapshot->globalVariables() as $name => $value) {
41 41
             $result .= \sprintf(
42
-                '$GLOBALS[%s] = %s;' . PHP_EOL,
42
+                '$GLOBALS[%s] = %s;'.PHP_EOL,
43 43
                 $this->exportVariable($name),
44 44
                 $this->exportVariable($value)
45 45
             );
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         foreach ($snapshot->iniSettings() as $key => $value) {
56 56
             $result .= \sprintf(
57
-                '@ini_set(%s, %s);' . "\n",
57
+                '@ini_set(%s, %s);'."\n",
58 58
                 $this->exportVariable($key),
59 59
                 $this->exportVariable($value)
60 60
             );
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             return \var_export($variable, true);
71 71
         }
72 72
 
73
-        return 'unserialize(' . \var_export(\serialize($variable), true) . ')';
73
+        return 'unserialize('.\var_export(\serialize($variable), true).')';
74 74
     }
75 75
 
76 76
     private function arrayOnlyContainsScalars(array $array): bool
Please login to merge, or discard this patch.
vendor/sebastian/global-state/tests/CodeExporterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $exporter = new CodeExporter;
32 32
 
33 33
         $this->assertEquals(
34
-            '$GLOBALS = [];' . PHP_EOL . '$GLOBALS[\'foo\'] = \'bar\';' . PHP_EOL,
34
+            '$GLOBALS = [];'.PHP_EOL.'$GLOBALS[\'foo\'] = \'bar\';'.PHP_EOL,
35 35
             $exporter->globalVariables($snapshot)
36 36
         );
37 37
     }
Please login to merge, or discard this patch.
vendor/sebastian/global-state/tests/SnapshotTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function testStaticAttributes()
37 37
     {
38 38
         $this->blacklist->method('isStaticAttributeBlacklisted')->willReturnCallback(
39
-            function ($class) {
39
+            function($class) {
40 40
                 return $class !== SnapshotClass::class;
41 41
             }
42 42
         );
Please login to merge, or discard this patch.
vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public static function init()
29 29
     {
30 30
         self::$dom                 = new DomDocument();
31
-        self::$closure             = function () {};
31
+        self::$closure             = function() {};
32 32
         self::$arrayObject         = new ArrayObject([1, 2, 3]);
33 33
         self::$snapshotDomDocument = new SnapshotDomDocument();
34 34
         self::$resource            = \fopen('php://memory', 'r');
Please login to merge, or discard this patch.
vendor/sebastian/exporter/src/Exporter.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
 
103 103
             if (\function_exists('mb_strlen')) {
104 104
                 if (\mb_strlen($string) > 40) {
105
-                    $string = \mb_substr($string, 0, 30) . '...' . \mb_substr($string, -7);
105
+                    $string = \mb_substr($string, 0, 30).'...'.\mb_substr($string, -7);
106 106
                 }
107 107
             } else {
108 108
                 if (\strlen($string) > 40) {
109
-                    $string = \substr($string, 0, 30) . '...' . \substr($string, -7);
109
+                    $string = \substr($string, 0, 30).'...'.\substr($string, -7);
110 110
                 }
111 111
             }
112 112
 
@@ -224,10 +224,10 @@  discard block
 block discarded – undo
224 224
         if (\is_string($value)) {
225 225
             // Match for most non printable chars somewhat taking multibyte chars into account
226 226
             if (\preg_match('/[^\x09-\x0d\x1b\x20-\xff]/', $value)) {
227
-                return 'Binary String: 0x' . \bin2hex($value);
227
+                return 'Binary String: 0x'.\bin2hex($value);
228 228
             }
229 229
 
230
-            return "'" .
230
+            return "'".
231 231
             \str_replace(
232 232
                 '<lf>',
233 233
                 "\n",
@@ -236,11 +236,11 @@  discard block
 block discarded – undo
236 236
                     ['\r\n<lf>', '\n\r<lf>', '\r<lf>', '\n<lf>'],
237 237
                     $value
238 238
                 )
239
-            ) .
239
+            ).
240 240
             "'";
241 241
         }
242 242
 
243
-        $whitespace = \str_repeat(' ', (int)(4 * $indentation));
243
+        $whitespace = \str_repeat(' ', (int) (4 * $indentation));
244 244
 
245 245
         if (!$processed) {
246 246
             $processed = new Context;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
         if (\is_array($value)) {
250 250
             if (($key = $processed->contains($value)) !== false) {
251
-                return 'Array &' . $key;
251
+                return 'Array &'.$key;
252 252
             }
253 253
 
254 254
             $array  = $value;
@@ -258,14 +258,14 @@  discard block
 block discarded – undo
258 258
             if (\count($array) > 0) {
259 259
                 foreach ($array as $k => $v) {
260 260
                     $values .= \sprintf(
261
-                        '%s    %s => %s' . "\n",
261
+                        '%s    %s => %s'."\n",
262 262
                         $whitespace,
263 263
                         $this->recursiveExport($k, $indentation),
264 264
                         $this->recursiveExport($value[$k], $indentation + 1, $processed)
265 265
                     );
266 266
                 }
267 267
 
268
-                $values = "\n" . $values . $whitespace;
268
+                $values = "\n".$values.$whitespace;
269 269
             }
270 270
 
271 271
             return \sprintf('Array &%s (%s)', $key, $values);
@@ -285,14 +285,14 @@  discard block
 block discarded – undo
285 285
             if (\count($array) > 0) {
286 286
                 foreach ($array as $k => $v) {
287 287
                     $values .= \sprintf(
288
-                        '%s    %s => %s' . "\n",
288
+                        '%s    %s => %s'."\n",
289 289
                         $whitespace,
290 290
                         $this->recursiveExport($k, $indentation),
291 291
                         $this->recursiveExport($v, $indentation + 1, $processed)
292 292
                     );
293 293
                 }
294 294
 
295
-                $values = "\n" . $values . $whitespace;
295
+                $values = "\n".$values.$whitespace;
296 296
             }
297 297
 
298 298
             return \sprintf('%s Object &%s (%s)', $class, $hash, $values);
Please login to merge, or discard this patch.
vendor/sebastian/exporter/tests/ExporterTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,8 +341,8 @@
 block discarded – undo
341 341
 
342 342
         try {
343 343
             $this->assertSame(
344
-              "'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくや...しゑひもせす'",
345
-              $this->trimNewline($this->exporter->shortenedExport('いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす'))
344
+                "'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくや...しゑひもせす'",
345
+                $this->trimNewline($this->exporter->shortenedExport('いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす'))
346 346
             );
347 347
         } catch (\Exception $e) {
348 348
             \mb_internal_encoding($oldMbInternalEncoding);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 EOF
155 155
             ],
156 156
             [
157
-                \chr(0) . \chr(1) . \chr(2) . \chr(3) . \chr(4) . \chr(5),
157
+                \chr(0).\chr(1).\chr(2).\chr(3).\chr(4).\chr(5),
158 158
                 'Binary String: 0x000102030405'
159 159
             ],
160 160
             [
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 'Binary String: 0x0e0f101112131415161718191a1b1c1d1e1f'
163 163
             ],
164 164
             [
165
-                \chr(0x00) . \chr(0x09),
165
+                \chr(0x00).\chr(0x09),
166 166
                 'Binary String: 0x0009'
167 167
             ],
168 168
             [
Please login to merge, or discard this patch.
vendor/sebastian/environment/src/Console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * @var int
16 16
      */
17
-    public const STDIN  = 0;
17
+    public const STDIN = 0;
18 18
 
19 19
     /**
20 20
      * @var int
Please login to merge, or discard this patch.