Completed
Push — symfony3-additional ( f443a4 )
by Kamil
18:14
created
src/Sylius/Behat/Context/Ui/Admin/ManagingProductOptionsContext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
 
66 66
     function is_configures_options(
67 67
         OptionsResolver $resolver
68
-    )
69
-    {
68
+    ) {
70 69
         $resolver->setDefaults([
71 70
             'format' => 'Y:m:d H:i:s'
72 71
         ])->shouldBeCalled();
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/ManagingPromotionCouponsContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $this->couponRepository->remove($coupon);
64 64
 
65 65
             throw new \Exception(sprintf('Coupon "%s" has been removed, but it should not.', $coupon->getCode()));
66
-        } catch(ForeignKeyConstraintViolationException $exception) {
66
+        } catch (ForeignKeyConstraintViolationException $exception) {
67 67
             $this->sharedStorage->set('last_exception', $exception);
68 68
         }
69 69
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/CartContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function theyAbandonedTheirCart(OrderInterface $cart, $amount, $time)
60 60
     {
61
-        $cart->setUpdatedAt(new \DateTime('-'.$amount.' '.$time));
61
+        $cart->setUpdatedAt(new \DateTime('-' . $amount . ' ' . $time));
62 62
         $this->orderManager->flush();
63 63
     }
64 64
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/UpdatePage.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,8 @@
 block discarded – undo
144 144
     /**
145 145
      * {@inheritdoc}
146 146
      */
147
-    public function getValidationMessageForImageAtPlace($place) {
147
+    public function getValidationMessageForImageAtPlace($place)
148
+    {
148 149
         
149 150
         $images = $this->getImageElements();
150 151
         
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
         $imageForm = $this->getLastImageElement();
154 154
         $imageForm->fillField('Code', $code);
155
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
155
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
156 156
     }
157 157
 
158 158
     /**
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $filesPath = $this->getParameter('files_path');
164 164
 
165 165
         $imageForm = $this->getImageElementByCode($code);
166
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
166
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
167 167
     }
168 168
 
169 169
     /**
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     private function getImageElementByCode($code)
262 262
     {
263 263
         $images = $this->getElement('images');
264
-        $inputCode = $images->find('css', 'input[value="'.$code.'"]');
264
+        $inputCode = $images->find('css', 'input[value="' . $code . '"]');
265 265
 
266 266
         if (null === $inputCode) {
267 267
             return null;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
         $imageForm = $this->getLastImageElement();
154 154
         $imageForm->fillField('Code', $code);
155
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
155
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
156 156
     }
157 157
 
158 158
     /**
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $filesPath = $this->getParameter('files_path');
164 164
 
165 165
         $imageForm = $this->getImageElementByCode($code);
166
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
166
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
167 167
     }
168 168
 
169 169
     /**
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     private function getImageElementByCode($code)
262 262
     {
263 263
         $images = $this->getElement('images');
264
-        $inputCode = $images->find('css', 'input[value="'.$code.'"]');
264
+        $inputCode = $images->find('css', 'input[value="' . $code . '"]');
265 265
 
266 266
         if (null === $inputCode) {
267 267
             return null;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/CreateConfigurableProductPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $imageForm = $this->getLastImageElement();
56 56
         $imageForm->fillField('Code', $code);
57
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
57
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Installer/Requirement/FilesystemRequirements.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $this
23 23
             ->add(new Requirement(
24 24
                 $translator->trans('sylius.installer.filesystem.vendors', []),
25
-                is_dir($root.'/../vendor')
25
+                is_dir($root . '/../vendor')
26 26
             ))
27 27
             ->add(new Requirement(
28 28
                 $translator->trans('sylius.installer.filesystem.cache.header', []),
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
             ))
39 39
             ->add(new Requirement(
40 40
                 $translator->trans('sylius.installer.filesystem.parameters.header', []),
41
-                is_writable($root.'/config/parameters.yml'),
41
+                is_writable($root . '/config/parameters.yml'),
42 42
                 true,
43
-                $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root.'/config/parameters.yml'])
43
+                $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root . '/config/parameters.yml'])
44 44
             ))
45 45
         ;
46 46
     }
Please login to merge, or discard this patch.
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.