Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Security/tests/PermissionManagerTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@
 block discarded – undo
91 91
         self::assertEquals($allowRule, $manager->getRule(static::ROLE, static::PERMISSION));
92 92
 
93 93
         // test pattern permission
94
-        self::assertEquals($manager, $manager->associate(static::ROLE, static::PERMISSION . '.*', AllowRule::class));
95
-        self::assertEquals($allowRule, $manager->getRule(static::ROLE, static::PERMISSION . '.' . static::PERMISSION));
94
+        self::assertEquals($manager, $manager->associate(static::ROLE, static::PERMISSION.'.*', AllowRule::class));
95
+        self::assertEquals($allowRule, $manager->getRule(static::ROLE, static::PERMISSION.'.'.static::PERMISSION));
96 96
 
97 97
         self::assertEquals($manager, $manager->deassociate(static::ROLE, static::PERMISSION));
98 98
         self::assertEquals($forbidRule, $manager->getRule(static::ROLE, static::PERMISSION));
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,8 @@
 block discarded – undo
70 70
 
71 71
         $this->rules->method('has')->willReturn(true);
72 72
         $this->rules->method('get')
73
-            ->willReturnCallback(static function (...$args) use (&$series) {
73
+            ->willReturnCallback(static function (...$args) use (&$series)
74
+            {
74 75
                 [$expectedArgs, $return] = \array_shift($series);
75 76
                 self::assertSame($expectedArgs, $args);
76 77
 
Please login to merge, or discard this patch.
src/Translator/tests/LoaderTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function testHasLocale(): void
19 19
     {
20 20
         $loader = new CatalogueLoader(new TranslatorConfig([
21
-            'directory' => __DIR__ . '/fixtures/locales/',
21
+            'directory' => __DIR__.'/fixtures/locales/',
22 22
         ]));
23 23
 
24 24
         self::assertTrue($loader->hasLocale('ru'));
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
         self::assertFalse($loader->hasLocale('FR'));
28 28
 
29 29
         $loader = new CatalogueLoader(new TranslatorConfig([
30
-            'directory' => __DIR__ . '/fixtures/locales/',
31
-            'directories' => [__DIR__ . '/fixtures/additional'],
30
+            'directory' => __DIR__.'/fixtures/locales/',
31
+            'directories' => [__DIR__.'/fixtures/additional'],
32 32
         ]));
33 33
 
34 34
         self::assertTrue($loader->hasLocale('ru'));
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function testGetLocales(): void
41 41
     {
42 42
         $loader = new CatalogueLoader(new TranslatorConfig([
43
-            'directory' => __DIR__ . '/fixtures/locales/',
43
+            'directory' => __DIR__.'/fixtures/locales/',
44 44
         ]));
45 45
 
46 46
         $compared = $loader->getLocales();
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
     public function testGetLocalesWithAdditionalDirectories(): void
55 55
     {
56 56
         $loader = new CatalogueLoader(new TranslatorConfig([
57
-            'directory' => __DIR__ . '/fixtures/locales/',
58
-            'directories' => [__DIR__ . '/fixtures/additional'],
57
+            'directory' => __DIR__.'/fixtures/locales/',
58
+            'directories' => [__DIR__.'/fixtures/additional'],
59 59
         ]));
60 60
 
61 61
         $compared = $loader->getLocales();
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public function testLoadCatalogue(): void
70 70
     {
71 71
         $loader = new CatalogueLoader(new TranslatorConfig([
72
-            'directory' => __DIR__ . '/fixtures/locales/',
72
+            'directory' => __DIR__.'/fixtures/locales/',
73 73
             'loaders'   => [
74 74
                 'php' => PhpFileLoader::class,
75 75
                 'po'  => PoFileLoader::class,
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
     public function testLoadCatalogueWithAdditionalDirectories(): void
106 106
     {
107 107
         $loader = new CatalogueLoader(new TranslatorConfig([
108
-            'directory' => __DIR__ . '/fixtures/locales/',
109
-            'directories' => [__DIR__ . '/fixtures/additional'],
108
+            'directory' => __DIR__.'/fixtures/locales/',
109
+            'directories' => [__DIR__.'/fixtures/additional'],
110 110
             'loaders'   => [
111 111
                 'php' => PhpFileLoader::class,
112 112
                 'po'  => PoFileLoader::class,
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
     public function testApplicationTranslationShouldOverrideAdditionalTranslations(): void
128 128
     {
129 129
         $loader = new CatalogueLoader(new TranslatorConfig([
130
-            'directory' => __DIR__ . '/fixtures/locales/',
131
-            'directories' => [__DIR__ . '/fixtures/additional'],
130
+            'directory' => __DIR__.'/fixtures/locales/',
131
+            'directories' => [__DIR__.'/fixtures/additional'],
132 132
             'loaders'   => [
133 133
                 'php' => PhpFileLoader::class,
134 134
                 'po'  => PoFileLoader::class,
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     public function testLoadCatalogueNoLoader(): void
146 146
     {
147 147
         $loader = new CatalogueLoader(new TranslatorConfig([
148
-            'directory' => __DIR__ . '/fixtures/locales/',
148
+            'directory' => __DIR__.'/fixtures/locales/',
149 149
             'loaders'   => [
150 150
                 'php' => PhpFileLoader::class,
151 151
             ],
Please login to merge, or discard this patch.
src/Encrypter/tests/EncrypterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         self::assertNotSame('test string', $encrypted);
54 54
         self::assertEquals('test string', $encrypter->decrypt($encrypted));
55 55
 
56
-        $encrypter->decrypt('badData.' . $encrypted);
56
+        $encrypter->decrypt('badData.'.$encrypted);
57 57
     }
58 58
 
59 59
     public function testBadKey(): void
Please login to merge, or discard this patch.
src/Boot/tests/Environment/DebugModeTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
 
35 35
         self::assertSame($expected, $enum);
36 36
 
37
-        if ($enum === DebugMode::Enabled) {
37
+        if ($enum === DebugMode::Enabled){
38 38
             self::assertTrue($enum->isEnabled());
39
-        } else {
39
+        }else{
40 40
             self::assertFalse($enum->isEnabled());
41 41
         }
42 42
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,12 @@
 block discarded – undo
34 34
 
35 35
         self::assertSame($expected, $enum);
36 36
 
37
-        if ($enum === DebugMode::Enabled) {
37
+        if ($enum === DebugMode::Enabled)
38
+        {
38 39
             self::assertTrue($enum->isEnabled());
39
-        } else {
40
+        }
41
+        else
42
+        {
40 43
             self::assertFalse($enum->isEnabled());
41 44
         }
42 45
     }
Please login to merge, or discard this patch.
src/Files/tests/DirectoriesTest.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,8 @@  discard block
 block discarded – undo
130 130
         self::assertTrue($files->exists($directory));
131 131
         self::assertTrue($files->isDirectory($directory));
132 132
 
133
-        foreach ($filenames as $filename) {
133
+        foreach ($filenames as $filename)
134
+        {
134 135
             self::assertFalse($files->exists($filename));
135 136
             $files->write($filename, 'random-data');
136 137
             self::assertTrue($files->exists($filename));
@@ -144,7 +145,8 @@  discard block
 block discarded – undo
144 145
         self::assertFalse($files->exists($directory));
145 146
         self::assertFalse($files->isDirectory($directory));
146 147
 
147
-        foreach ($filenames as $filename) {
148
+        foreach ($filenames as $filename)
149
+        {
148 150
             self::assertFalse($files->exists($filename));
149 151
         }
150 152
     }
@@ -175,7 +177,8 @@  discard block
 block discarded – undo
175 177
         self::assertTrue($files->exists($directory));
176 178
         self::assertTrue($files->isDirectory($directory));
177 179
 
178
-        foreach ($filenames as $filename) {
180
+        foreach ($filenames as $filename)
181
+        {
179 182
             self::assertFalse($files->exists($filename));
180 183
             $files->write($filename, 'random-data');
181 184
             self::assertTrue($files->exists($filename));
@@ -189,7 +192,8 @@  discard block
 block discarded – undo
189 192
         self::assertFalse($files->exists($directory));
190 193
         self::assertFalse($files->isDirectory($directory));
191 194
 
192
-        foreach ($filenames as $filename) {
195
+        foreach ($filenames as $filename)
196
+        {
193 197
             self::assertFalse($files->exists($filename));
194 198
         }
195 199
     }
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public function testEnsureDirectory(): void
14 14
     {
15 15
         $files = new Files();
16
-        $directory = self::FIXTURE_DIRECTORY . 'directory/';
16
+        $directory = self::FIXTURE_DIRECTORY.'directory/';
17 17
 
18 18
         self::assertFalse($files->exists($directory));
19 19
         self::assertFalse($files->isDirectory($directory));
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function testEnsureExistedDirectory(): void
28 28
     {
29 29
         $files = new Files();
30
-        $directory = self::FIXTURE_DIRECTORY . 'directory/';
30
+        $directory = self::FIXTURE_DIRECTORY.'directory/';
31 31
 
32 32
         self::assertFalse($files->exists($directory));
33 33
         self::assertFalse($files->isDirectory($directory));
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public function testEnsureNestedDirectory(): void
47 47
     {
48 48
         $files = new Files();
49
-        $directory = self::FIXTURE_DIRECTORY . 'directory/sub/other';
49
+        $directory = self::FIXTURE_DIRECTORY.'directory/sub/other';
50 50
 
51 51
         self::assertFalse($files->exists($directory));
52 52
         self::assertFalse($files->isDirectory($directory));
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function testEnsureNestedDirectoryNoRecursivePermissions(): void
61 61
     {
62 62
         $files = new Files();
63
-        $directory = self::FIXTURE_DIRECTORY . 'directory/sub/other';
63
+        $directory = self::FIXTURE_DIRECTORY.'directory/sub/other';
64 64
 
65 65
         self::assertFalse($files->exists($directory));
66 66
         self::assertFalse($files->isDirectory($directory));
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
     public function testEnsureExistedNestedDirectory(): void
75 75
     {
76 76
         $files = new Files();
77
-        $directory = self::FIXTURE_DIRECTORY . 'directory/sub/other';
77
+        $directory = self::FIXTURE_DIRECTORY.'directory/sub/other';
78 78
 
79 79
         self::assertFalse($files->exists($directory));
80 80
         self::assertFalse($files->isDirectory($directory));
81 81
 
82
-        \mkdir(self::FIXTURE_DIRECTORY . 'directory');
83
-        \mkdir(self::FIXTURE_DIRECTORY . 'directory/sub');
84
-        \mkdir(self::FIXTURE_DIRECTORY . 'directory/sub/other');
82
+        \mkdir(self::FIXTURE_DIRECTORY.'directory');
83
+        \mkdir(self::FIXTURE_DIRECTORY.'directory/sub');
84
+        \mkdir(self::FIXTURE_DIRECTORY.'directory/sub/other');
85 85
 
86 86
         self::assertTrue($files->exists($directory));
87 87
         self::assertTrue($files->isDirectory($directory));
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
     public function testDeleteDirectoryContent(): void
96 96
     {
97 97
         $files = new Files();
98
-        $baseDirectory = self::FIXTURE_DIRECTORY . 'directory/';
99
-        $directory = $baseDirectory . 'sub/other';
98
+        $baseDirectory = self::FIXTURE_DIRECTORY.'directory/';
99
+        $directory = $baseDirectory.'sub/other';
100 100
 
101 101
         $filenames = [
102
-            $baseDirectory . 'test.file',
103
-            $directory . 'other.file',
104
-            $directory . '.sample',
102
+            $baseDirectory.'test.file',
103
+            $directory.'other.file',
104
+            $directory.'.sample',
105 105
         ];
106 106
 
107 107
         self::assertFalse($files->exists($baseDirectory));
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         self::assertTrue($files->exists($directory));
119 119
         self::assertTrue($files->isDirectory($directory));
120 120
 
121
-        foreach ($filenames as $filename) {
121
+        foreach ($filenames as $filename){
122 122
             self::assertFalse($files->exists($filename));
123 123
             $files->write($filename, 'random-data');
124 124
             self::assertTrue($files->exists($filename));
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         self::assertFalse($files->exists($directory));
133 133
         self::assertFalse($files->isDirectory($directory));
134 134
 
135
-        foreach ($filenames as $filename) {
135
+        foreach ($filenames as $filename){
136 136
             self::assertFalse($files->exists($filename));
137 137
         }
138 138
     }
@@ -140,13 +140,13 @@  discard block
 block discarded – undo
140 140
     public function testDeleteDirectory(): void
141 141
     {
142 142
         $files = new Files();
143
-        $baseDirectory = self::FIXTURE_DIRECTORY . 'directory/';
144
-        $directory = $baseDirectory . 'sub/other';
143
+        $baseDirectory = self::FIXTURE_DIRECTORY.'directory/';
144
+        $directory = $baseDirectory.'sub/other';
145 145
 
146 146
         $filenames = [
147
-            $baseDirectory . 'test.file',
148
-            $directory . 'other.file',
149
-            $directory . '.sample',
147
+            $baseDirectory.'test.file',
148
+            $directory.'other.file',
149
+            $directory.'.sample',
150 150
         ];
151 151
 
152 152
         self::assertFalse($files->exists($baseDirectory));
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         self::assertTrue($files->exists($directory));
164 164
         self::assertTrue($files->isDirectory($directory));
165 165
 
166
-        foreach ($filenames as $filename) {
166
+        foreach ($filenames as $filename){
167 167
             self::assertFalse($files->exists($filename));
168 168
             $files->write($filename, 'random-data');
169 169
             self::assertTrue($files->exists($filename));
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         self::assertFalse($files->exists($directory));
178 178
         self::assertFalse($files->isDirectory($directory));
179 179
 
180
-        foreach ($filenames as $filename) {
180
+        foreach ($filenames as $filename){
181 181
             self::assertFalse($files->exists($filename));
182 182
         }
183 183
     }
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
 
189 189
         $files = new Files();
190 190
 
191
-        $files->write(self::FIXTURE_DIRECTORY . 'test', 'data');
192
-        $files->deleteDirectory(self::FIXTURE_DIRECTORY . 'test');
191
+        $files->write(self::FIXTURE_DIRECTORY.'test', 'data');
192
+        $files->deleteDirectory(self::FIXTURE_DIRECTORY.'test');
193 193
     }
194 194
 
195 195
     public function testGetFiles(): void
Please login to merge, or discard this patch.
src/Files/tests/IOTest.php 2 patches
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $files = new Files();
29 29
 
30
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
30
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
31 31
         self::assertFalse($files->exists($filename));
32 32
 
33 33
         $files->write($filename, 'some-data');
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $files = new Files();
42 42
 
43
-        $directory = self::FIXTURE_DIRECTORY . '/directory/abc/';
44
-        $filename = $directory . 'test.txt';
43
+        $directory = self::FIXTURE_DIRECTORY.'/directory/abc/';
44
+        $filename = $directory.'test.txt';
45 45
 
46 46
         self::assertFalse($files->exists($directory));
47 47
         self::assertFalse($files->exists($filename));
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $files = new Files();
61 61
 
62
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
62
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
63 63
         self::assertFalse($files->exists($filename));
64 64
 
65 65
         $files->write($filename, 'some-data');
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         $files = new Files();
77 77
 
78
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
78
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
79 79
         self::assertFalse($files->exists($filename));
80 80
 
81 81
         $files->read($filename);
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
         $this->expectException(FileNotFoundException::class);
95 95
 
96 96
         $files = new Files();
97
-        $files->getPermissions(self::FIXTURE_DIRECTORY . '/missing');
97
+        $files->getPermissions(self::FIXTURE_DIRECTORY.'/missing');
98 98
     }
99 99
 
100 100
     public function testAppend(): void
101 101
     {
102 102
         $files = new Files();
103 103
 
104
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
104
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
105 105
         self::assertFalse($files->exists($filename));
106 106
 
107 107
         $files->append($filename, 'some-data');
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
     {
118 118
         $files = new Files();
119 119
 
120
-        $directory = self::FIXTURE_DIRECTORY . '/directory/abc/';
121
-        $filename = $directory . 'test.txt';
120
+        $directory = self::FIXTURE_DIRECTORY.'/directory/abc/';
121
+        $filename = $directory.'test.txt';
122 122
 
123 123
         self::assertFalse($files->exists($directory));
124 124
         self::assertFalse($files->exists($filename));
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $files = new Files();
141 141
 
142
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
142
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
143 143
 
144 144
         self::assertFalse($files->exists($filename));
145 145
         $files->touch($filename);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     public function testDelete(): void
150 150
     {
151 151
         $files = new Files();
152
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
152
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
153 153
 
154 154
         self::assertFalse($files->exists($filename));
155 155
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     public function testDeleteMissingFile(): void
164 164
     {
165 165
         $files = new Files();
166
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
166
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
167 167
 
168 168
         self::assertFalse($files->exists($filename));
169 169
         $files->delete($filename);
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
     public function testCopy(): void
173 173
     {
174 174
         $files = new Files();
175
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
176
-        $destination = self::FIXTURE_DIRECTORY . '/new.txt';
175
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
176
+        $destination = self::FIXTURE_DIRECTORY.'/new.txt';
177 177
 
178 178
         self::assertFalse($files->exists($filename));
179 179
         $files->write($filename, 'some-data');
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
         $this->expectException(FileNotFoundException::class);
197 197
 
198 198
         $files = new Files();
199
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
200
-        $destination = self::FIXTURE_DIRECTORY . '/new.txt';
199
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
200
+        $destination = self::FIXTURE_DIRECTORY.'/new.txt';
201 201
 
202 202
         self::assertFalse($files->exists($filename));
203 203
         $files->copy($filename, $destination);
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
     public function testMove(): void
207 207
     {
208 208
         $files = new Files();
209
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
210
-        $destination = self::FIXTURE_DIRECTORY . '/new.txt';
209
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
210
+        $destination = self::FIXTURE_DIRECTORY.'/new.txt';
211 211
 
212 212
         self::assertFalse($files->exists($filename));
213 213
         $files->write($filename, 'some-data');
@@ -230,8 +230,8 @@  discard block
 block discarded – undo
230 230
         $this->expectException(FileNotFoundException::class);
231 231
 
232 232
         $files = new Files();
233
-        $filename = self::FIXTURE_DIRECTORY . '/test.txt';
234
-        $destination = self::FIXTURE_DIRECTORY . '/new.txt';
233
+        $filename = self::FIXTURE_DIRECTORY.'/test.txt';
234
+        $destination = self::FIXTURE_DIRECTORY.'/new.txt';
235 235
 
236 236
         self::assertFalse($files->exists($filename));
237 237
         $files->move($filename, $destination);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         self::assertFalse($files->isDirectory($directory));
50 50
 
51
-        $files->write($filename, 'some-data', FilesInterface::READONLY, true);
51
+        $files->write($filename, 'some-data', FilesInterface::readonly, true);
52 52
 
53 53
         self::assertTrue($files->isDirectory($directory));
54 54
         self::assertTrue($files->exists($filename));
Please login to merge, or discard this patch.
src/Console/tests/SignatureTest.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
   -o, --id[=ID]         Id option description. (multiple values allowed)
120 120
   -Q, --quit            Quit option description.
121 121
       --naf[=NAF]       Naf option description. [default: "default"]
122
-HELP, $core->run(command: 'help', input: ['command_name' => 'foo:bar'])->getOutput()->fetch());
122
+help, $core->run(command: 'help', input: ['command_name' => 'foo:bar'])->getOutput()->fetch());
123 123
     }
124 124
 
125 125
     public function testDescriptionFromConstant(): void
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     {
14 14
         $core = $this->getCore(
15 15
             $this->getStaticLocator([
16
-                new class extends Command {
16
+                new class extends Command{
17 17
                     protected const SIGNATURE = 'foo:bar {arg?} {--o|option}';
18 18
 
19 19
                     public function perform(): int
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
                         $argument = $this->argument('arg');
22 22
                         $option = $this->option('option');
23 23
 
24
-                        if ($argument) {
25
-                            $this->write('argument : ' . $argument);
24
+                        if ($argument){
25
+                            $this->write('argument : '.$argument);
26 26
                         }
27 27
 
28
-                        if ($option) {
29
-                            $this->write('option : ' . $option);
28
+                        if ($option){
29
+                            $this->write('option : '.$option);
30 30
                         }
31 31
 
32 32
                         return 1;
@@ -50,20 +50,20 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $core = $this->getCore(
52 52
             $this->getStaticLocator([
53
-                new class extends Command {
53
+                new class extends Command{
54 54
                     protected const SIGNATURE = 'foo:bar {arg[]?} {--o|option[]=}';
55 55
 
56 56
                     public function perform(): int
57 57
                     {
58
-                        $argument = (array) $this->argument('arg');
59
-                        $option = (array) $this->option('option');
58
+                        $argument = (array)$this->argument('arg');
59
+                        $option = (array)$this->option('option');
60 60
 
61
-                        if ($argument) {
62
-                            $this->write('argument : ' . \implode(',', $argument));
61
+                        if ($argument){
62
+                            $this->write('argument : '.\implode(',', $argument));
63 63
                         }
64 64
 
65
-                        if ($option) {
66
-                            $this->write('option : ' . \implode(',', $option));
65
+                        if ($option){
66
+                            $this->write('option : '.\implode(',', $option));
67 67
                         }
68 68
 
69 69
                         return 1;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $core = $this->getCore(
90 90
             $this->getStaticLocator([
91
-                new class extends Command {
91
+                new class extends Command{
92 92
                     protected const SIGNATURE = 'foo:bar
93 93
                                     {foo : Foo arg description. }
94 94
                                     {bar=default : Bar arg description. }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     {
127 127
         $core = $this->getCore(
128 128
             $this->getStaticLocator([
129
-                new class extends Command {
129
+                new class extends Command{
130 130
                     protected const SIGNATURE = 'foo:bar';
131 131
                     protected const DESCRIPTION = 'baz';
132 132
 
Please login to merge, or discard this patch.
Braces   +16 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,7 +13,8 @@  discard block
 block discarded – undo
13 13
     {
14 14
         $core = $this->getCore(
15 15
             $this->getStaticLocator([
16
-                new class extends Command {
16
+                new class extends Command
17
+                {
17 18
                     protected const SIGNATURE = 'foo:bar {arg?} {--o|option}';
18 19
 
19 20
                     public function perform(): int
@@ -21,11 +22,13 @@  discard block
 block discarded – undo
21 22
                         $argument = $this->argument('arg');
22 23
                         $option = $this->option('option');
23 24
 
24
-                        if ($argument) {
25
+                        if ($argument)
26
+                        {
25 27
                             $this->write('argument : ' . $argument);
26 28
                         }
27 29
 
28
-                        if ($option) {
30
+                        if ($option)
31
+                        {
29 32
                             $this->write('option : ' . $option);
30 33
                         }
31 34
 
@@ -50,7 +53,8 @@  discard block
 block discarded – undo
50 53
     {
51 54
         $core = $this->getCore(
52 55
             $this->getStaticLocator([
53
-                new class extends Command {
56
+                new class extends Command
57
+                {
54 58
                     protected const SIGNATURE = 'foo:bar {arg[]?} {--o|option[]=}';
55 59
 
56 60
                     public function perform(): int
@@ -58,11 +62,13 @@  discard block
 block discarded – undo
58 62
                         $argument = (array) $this->argument('arg');
59 63
                         $option = (array) $this->option('option');
60 64
 
61
-                        if ($argument) {
65
+                        if ($argument)
66
+                        {
62 67
                             $this->write('argument : ' . \implode(',', $argument));
63 68
                         }
64 69
 
65
-                        if ($option) {
70
+                        if ($option)
71
+                        {
66 72
                             $this->write('option : ' . \implode(',', $option));
67 73
                         }
68 74
 
@@ -88,7 +94,8 @@  discard block
 block discarded – undo
88 94
     {
89 95
         $core = $this->getCore(
90 96
             $this->getStaticLocator([
91
-                new class extends Command {
97
+                new class extends Command
98
+                {
92 99
                     protected const SIGNATURE = 'foo:bar
93 100
                                     {foo : Foo arg description. }
94 101
                                     {bar=default : Bar arg description. }
@@ -126,7 +133,8 @@  discard block
 block discarded – undo
126 133
     {
127 134
         $core = $this->getCore(
128 135
             $this->getStaticLocator([
129
-                new class extends Command {
136
+                new class extends Command
137
+                {
130 138
                     protected const SIGNATURE = 'foo:bar';
131 139
                     protected const DESCRIPTION = 'baz';
132 140
 
Please login to merge, or discard this patch.
src/Router/tests/Loader/Configurator/RoutingConfiguratorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
         self::assertCount(0, $routes->getCollection());
19 19
 
20
-        $routes->import(\dirname(__DIR__, 2) . '/Fixtures/file.php');
20
+        $routes->import(\dirname(__DIR__, 2).'/Fixtures/file.php');
21 21
 
22 22
         self::assertCount(3, $routes->getCollection());
23 23
     }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         self::assertCount(0, $routes->getCollection());
30 30
 
31
-        $routes->import(\dirname(__DIR__, 2) . '/Fixtures/file.php', 'php');
31
+        $routes->import(\dirname(__DIR__, 2).'/Fixtures/file.php', 'php');
32 32
 
33 33
         self::assertCount(3, $routes->getCollection());
34 34
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         self::assertCount(0, $routes->getCollection());
41 41
 
42
-        $routes->import(\dirname(__DIR__, 2) . '/Fixtures/file.php', 'yaml');
42
+        $routes->import(\dirname(__DIR__, 2).'/Fixtures/file.php', 'yaml');
43 43
 
44 44
         self::assertCount(0, $routes->getCollection());
45 45
     }
Please login to merge, or discard this patch.
src/Router/tests/Loader/PhpFileLoaderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
     {
30 30
         $loader = new PhpFileLoader($this->container, $this->container);
31 31
 
32
-        $routes = $loader->load(\dirname(__DIR__) . '/Fixtures/file.php');
32
+        $routes = $loader->load(\dirname(__DIR__).'/Fixtures/file.php');
33 33
         self::assertInstanceOf(RouteCollection::class, $routes);
34 34
         self::assertCount(3, $routes);
35 35
 
36 36
         $this->expectException(LoaderLoadException::class);
37
-        $loader->load(\dirname(__DIR__) . '/Fixtures/unknown.php');
37
+        $loader->load(\dirname(__DIR__).'/Fixtures/unknown.php');
38 38
     }
39 39
 
40 40
     public function testSupports(): void
Please login to merge, or discard this patch.