Completed
Push — symfony3-directorystructure ( c2fd26 )
by Kamil
85:38 queued 68:27
created
src/Sylius/Bundle/CoreBundle/Installer/Checker/CommandDirectoryChecker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         try {
82 82
             $this->filesystem->mkdir($directory, 0755);
83 83
         } catch (IOException $exception) {
84
-            $output->writeln($this->createUnexistingDirectoryMessage(getcwd().'/'.$directory));
84
+            $output->writeln($this->createUnexistingDirectoryMessage(getcwd() . '/' . $directory));
85 85
 
86 86
             throw new \RuntimeException('Failed while trying to create directory.');
87 87
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     private function createUnexistingDirectoryMessage($directory)
138 138
     {
139 139
         return
140
-            '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>'.PHP_EOL.
140
+            '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>' . PHP_EOL .
141 141
             sprintf('Create directory "%s" and run command "<comment>%s</comment>"', $directory, $this->name)
142 142
         ;
143 143
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     private function createBadPermissionsMessage($directory)
151 151
     {
152 152
         return
153
-            '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>'.PHP_EOL.
153
+            '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>' . PHP_EOL .
154 154
             sprintf('Set "%s" writable recursively and run command "<comment>%s</comment>"', $directory, $this->name)
155 155
         ;
156 156
     }
Please login to merge, or discard this patch.
spec/Form/EventSubscriber/CustomerRegistrationFormSubscriberSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
     function it_listens_on_pre_submit_data_event()
48 48
     {
49
-        $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit',]);
49
+        $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit', ]);
50 50
     }
51 51
 
52 52
     function it_sets_user_for_existing_customer(
Please login to merge, or discard this patch.
CoreBundle/spec/Form/EventSubscriber/UserRegistrationFormSubscriberSpec.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
         Pagerfanta $results,
348 348
         $template,
349 349
         $page
350
-    ){
350
+    ) {
351 351
         $results->setCurrentPage($page, true, true);
352 352
         $results->setMaxPerPage($this->config->getPaginationMaxPerPage());
353 353
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     function it_throws_unexpected_type_excepotion_if_data_is_not_customer_type(
46 46
         FormEvent $event,
47 47
         ShopUserInterface $user
48
-    ){
48
+    ) {
49 49
         $event->getData()->willReturn($user);
50 50
 
51 51
         $this->shouldThrow(UnexpectedTypeException::class)->during('submit', [$event]);
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/AdminUserExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                     return $this->faker->email;
52 52
                 })
53 53
                 ->setDefault('username', function (Options $options) {
54
-                    return $this->faker->firstName.' '.$this->faker->lastName;
54
+                    return $this->faker->firstName . ' ' . $this->faker->lastName;
55 55
                 })
56 56
                 ->setDefault('enabled', function (Options $options) {
57 57
                     return $this->faker->boolean(90);
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/Order/OrderType.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,8 @@
 block discarded – undo
50 50
         $resolver->setDefault('validation_groups', function (FormInterface $form) {
51 51
             $validationGroups = $this->validationGroups;
52 52
 
53
-            if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
53
+            if ((bool) $form->get('promotionCoupon')->getNormData()) {
54
+// Validate the coupon if it was sent
54 55
                 $validationGroups[] = 'sylius_promotion_coupon';
55 56
             }
56 57
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DependencyInjection/SyliusCoreExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function load(array $config, ContainerBuilder $container)
29 29
     {
30 30
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
 
33 33
         $loader->load(sprintf('driver/%s.xml', $config['driver']));
34 34
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             return;
91 91
         }
92 92
 
93
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
93
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
94 94
         $loader->load('resource_integration.xml');
95 95
 
96 96
         $container->prependExtensionConfig('sylius_resource', [
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/InstallAssetsCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             ->setDescription('Initialize default permissions & roles in the application.')
31 31
             ->setHelp(<<<EOT
32 32
 The <info>%command.name%</info> command initializes default RBAC setup.
33
-EOT
33
+eot
34 34
             )
35 35
         ;
36 36
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/CheckRequirementsCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             ->setDescription('Initialize default permissions & roles in the application.')
31 31
             ->setHelp(<<<EOT
32 32
 The <info>%command.name%</info> command initializes default RBAC setup.
33
-EOT
33
+eot
34 34
             )
35 35
         ;
36 36
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         foreach ($this->commands as $step => $command) {
74 74
             try {
75 75
                 $output->writeln(sprintf('<comment>Step %d of %d.</comment> <info>%s</info>', $step + 1, count($this->commands), $command['message']));
76
-                $this->commandExecutor->runCommand('sylius:install:'.$command['command'], [], $output);
76
+                $this->commandExecutor->runCommand('sylius:install:' . $command['command'], [], $output);
77 77
                 $output->writeln('');
78 78
             } catch (RuntimeException $exception) {
79 79
                 $this->isErrored = true;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             ->setDescription('Initialize default permissions & roles in the application.')
31 31
             ->setHelp(<<<EOT
32 32
 The <info>%command.name%</info> command initializes default RBAC setup.
33
-EOT
33
+eot
34 34
             )
35 35
         ;
36 36
     }
Please login to merge, or discard this patch.