Completed
Push — pull-request/8500 ( e49efc...54b484 )
by Kamil
36:05 queued 17:36
created
tests/Controller/CurrencyApiTest.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         {
79 79
             "code": "USD"
80 80
         }
81
-EOT;
81
+eot;
82 82
 
83 83
         $this->client->request('POST', '/api/v1/currencies/', [], [], static::$authorizedHeaderWithContentType, $data);
84 84
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Tests\Controller;
15 15
 
Please login to merge, or discard this patch.
tests/Controller/ZoneApiTest.php 2 patches
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 }
83 83
             ]
84 84
         }
85
-EOT;
85
+eot;
86 86
 
87 87
         $this->client->request('POST', '/api/v1/zones/country', [], [], static::$authorizedHeaderWithContentType, $data);
88 88
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                 }
213 213
             ]
214 214
         }
215
-EOT;
215
+eot;
216 216
 
217 217
         $this->client->request('PUT', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
218 218
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         {
264 264
             "name": "European Union +"
265 265
         }
266
-EOT;
266
+eot;
267 267
 
268 268
         $this->client->request('PATCH', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
269 269
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Tests\Controller;
15 15
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
150 150
         $zones = $this->loadFixturesFromFile('resources/zones.yml');
151 151
 
152
-        $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
152
+        $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
153 153
 
154 154
         $response = $this->client->getResponse();
155 155
         $this->assertResponse($response, 'zone/show_response', Response::HTTP_OK);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         $this->loadFixturesFromFile('resources/countries.yml');
189 189
         $zones = $this->loadFixturesFromFile('resources/zones.yml');
190 190
 
191
-        $this->client->request('PUT', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
191
+        $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
192 192
 
193 193
         $response = $this->client->getResponse();
194 194
         $this->assertResponse($response, 'zone/update_validation_fail_response', Response::HTTP_BAD_REQUEST);
@@ -216,12 +216,12 @@  discard block
 block discarded – undo
216 216
         }
217 217
 EOT;
218 218
 
219
-        $this->client->request('PUT', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
219
+        $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
220 220
 
221 221
         $response = $this->client->getResponse();
222 222
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
223 223
 
224
-        $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
224
+        $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
225 225
 
226 226
         $response = $this->client->getResponse();
227 227
         $this->assertResponse($response, 'zone/update_response', Response::HTTP_OK);
@@ -267,12 +267,12 @@  discard block
 block discarded – undo
267 267
         }
268 268
 EOT;
269 269
 
270
-        $this->client->request('PATCH', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
270
+        $this->client->request('PATCH', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
271 271
 
272 272
         $response = $this->client->getResponse();
273 273
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
274 274
 
275
-        $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
275
+        $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
276 276
 
277 277
         $response = $this->client->getResponse();
278 278
         $this->assertResponse($response, 'zone/update_partially_response', Response::HTTP_OK);
@@ -310,12 +310,12 @@  discard block
 block discarded – undo
310 310
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
311 311
         $zones = $this->loadFixturesFromFile('resources/zones.yml');
312 312
 
313
-        $this->client->request('DELETE', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
313
+        $this->client->request('DELETE', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
314 314
 
315 315
         $response = $this->client->getResponse();
316 316
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
317 317
 
318
-        $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
318
+        $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
319 319
 
320 320
         $response = $this->client->getResponse();
321 321
         $this->assertResponseCode($response, Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
src/Sylius/Bundle/PromotionBundle/test/app/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Doctrine\Common\Annotations\AnnotationRegistry;
13 13
 
14
-$loader = require __DIR__.'/../../vendor/autoload.php';
14
+$loader = require __DIR__ . '/../../vendor/autoload.php';
15 15
 
16
-require __DIR__.'/AppKernel.php';
16
+require __DIR__ . '/AppKernel.php';
17 17
 
18 18
 AnnotationRegistry::registerLoader([$loader, 'loadClass']);
19 19
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             ->setDescription('Installs Sylius in your preferred environment.')
56 56
             ->setHelp(<<<EOT
57 57
 The <info>%command.name%</info> command installs Sylius.
58
-EOT
58
+eot
59 59
             )
60 60
         ;
61 61
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\CoreBundle\Command;
15 15
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                     count($this->commands),
79 79
                     $command['message']
80 80
                 ));
81
-                $this->commandExecutor->runCommand('sylius:install:'.$command['command'], [], $output);
81
+                $this->commandExecutor->runCommand('sylius:install:' . $command['command'], [], $output);
82 82
             } catch (RuntimeException $exception) {
83 83
                 $errored = true;
84 84
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/CheckRequirementsCommand.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             ->setDescription('Checks if all Sylius requirements are satisfied.')
28 28
             ->setHelp(<<<EOT
29 29
 The <info>%command.name%</info> command checks system requirements.
30
-EOT
30
+eot
31 31
             )
32 32
         ;
33 33
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\CoreBundle\Command;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/InstallDatabaseCommand.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             ->setDescription('Install Sylius database.')
28 28
             ->setHelp(<<<EOT
29 29
 The <info>%command.name%</info> command creates Sylius database.
30
-EOT
30
+eot
31 31
             )
32 32
         ;
33 33
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\CoreBundle\Command;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/InstallSampleDataCommand.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             ->setDescription('Install sample data into Sylius.')
30 30
             ->setHelp(<<<EOT
31 31
 The <info>%command.name%</info> command loads the sample data for Sylius.
32
-EOT
32
+eot
33 33
             )
34 34
         ;
35 35
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\CoreBundle\Command;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/InstallAssetsCommand.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             ->setDescription('Installs all Sylius assets.')
27 27
             ->setHelp(<<<EOT
28 28
 The <info>%command.name%</info> command downloads and installs all Sylius media assets.
29
-EOT
29
+eot
30 30
             )
31 31
         ;
32 32
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\CoreBundle\Command;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/SetupCommand.php 4 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             ->setDescription('Sylius configuration setup.')
47 47
             ->setHelp(<<<EOT
48 48
 The <info>%command.name%</info> command allows user to configure basic Sylius data.
49
-EOT
49
+eot
50 50
             )
51 51
         ;
52 52
     }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,19 +12,15 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\CoreBundle\Command;
13 13
 
14 14
 use Sylius\Component\Core\Model\AdminUserInterface;
15
-use Sylius\Component\Core\Model\ChannelInterface;
16
-use Sylius\Component\Currency\Model\CurrencyInterface;
17 15
 use Sylius\Component\Locale\Model\LocaleInterface;
18
-use Sylius\Component\User\Model\UserInterface;
19 16
 use Symfony\Component\Console\Helper\QuestionHelper;
20 17
 use Symfony\Component\Console\Input\InputInterface;
21 18
 use Symfony\Component\Console\Output\OutputInterface;
22 19
 use Symfony\Component\Console\Question\Question;
23 20
 use Symfony\Component\Console\Style\SymfonyStyle;
24
-use Symfony\Component\Intl\Intl;
21
+use Symfony\Component\Validator\ConstraintViolationListInterface;
25 22
 use Symfony\Component\Validator\Constraints\Email;
26 23
 use Symfony\Component\Validator\Constraints\NotBlank;
27
-use Symfony\Component\Validator\ConstraintViolationListInterface;
28 24
 use Webmozart\Assert\Assert;
29 25
 
30 26
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\CoreBundle\Command;
15 15
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
      * @param InputInterface $input
160 160
      * @param OutputInterface $output
161 161
      *
162
-     * @return mixed
162
+     * @return string|null
163 163
      */
164 164
     private function getAdministratorPassword(InputInterface $input, OutputInterface $output)
165 165
     {
Please login to merge, or discard this patch.