Completed
Push — master ( 155c16...880d18 )
by Kamil
26:05
created
src/Sylius/Bundle/ResourceBundle/Behat/WebContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $entityManager = $this->getEntityManager();
88 88
         $entityManager->getFilters()->disable('softdeleteable');
89 89
 
90
-        $resource = $this->waitFor(function () use ($type, $property, $value) {
90
+        $resource = $this->waitFor(function() use ($type, $property, $value) {
91 91
             return $this->getRepository($type)->findOneBy([$property => $value]);
92 92
         });
93 93
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             return;
142 142
         }
143 143
 
144
-        if('product option' === $type) {
144
+        if ('product option' === $type) {
145 145
             $this->iAmDoingSomethingWithResource($action, $type, 'code', $name);
146 146
 
147 147
             return;
@@ -668,7 +668,7 @@  discard block
 block discarded – undo
668 668
      */
669 669
     protected function waitForModalToAppear($modalContainer)
670 670
     {
671
-        $this->waitFor(function () use ($modalContainer) {
671
+        $this->waitFor(function() use ($modalContainer) {
672 672
             return false !== strpos($modalContainer->getAttribute('class'), 'in');
673 673
         });
674 674
     }
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
      */
679 679
     protected function waitForModalToDisappear($modalContainer)
680 680
     {
681
-        $this->waitFor(function () use ($modalContainer) {
681
+        $this->waitFor(function() use ($modalContainer) {
682 682
             return false === strpos($modalContainer->getAttribute('class'), 'in');
683 683
         });
684 684
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ProductBundle/Behat/ProductContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
 
160 160
         $option = $this->getFactory('product_option')->createNew();
161 161
         $option->setCode($optionCode);
162
-        $option->setName($name ?: $optionCode );
162
+        $option->setName($name ?: $optionCode);
163 163
 
164 164
         foreach (explode(',', $values) as $valueData) {
165 165
             $valueData = preg_split('[\\[|\\]]', $valueData, -1, PREG_SPLIT_NO_EMPTY);
Please login to merge, or discard this patch.