Completed
Push — symfony-3.3 ( 7e5783...b87070 )
by Kamil
20:59
created
src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
                 'translation.name LIKE :phrase',
146 146
                 'o.code LIKE :phrase'
147 147
             ))
148
-            ->setParameter('phrase', '%'.$phrase.'%')
148
+            ->setParameter('phrase', '%' . $phrase . '%')
149 149
             ->setParameter('locale', $locale)
150 150
             ->setParameter('productCode', $productCode)
151 151
             ->getQuery()
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function iSetItsPriceTo($price = null, $channelName = null)
158 158
     {
159
-        $this->createPage->specifyPrice($price, (null === $channelName) ? $this->sharedStorage->get('channel') :$channelName);
159
+        $this->createPage->specifyPrice($price, (null === $channelName) ? $this->sharedStorage->get('channel') : $channelName);
160 160
     }
161 161
 
162 162
     /**
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
      */
520 520
     public function theVariantWithCodeShouldNotHaveShippingRequired(ProductVariantInterface $productVariant)
521 521
     {
522
-        $this->updatePage->open(['productId' => $productVariant->getProduct()->getId(),'id' => $productVariant->getId()]);
522
+        $this->updatePage->open(['productId' => $productVariant->getProduct()->getId(), 'id' => $productVariant->getId()]);
523 523
 
524 524
         Assert::false($this->updatePage->isShippingRequired());
525 525
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Application/SyliusPluginTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,6 +99,6 @@
 block discarded – undo
99 99
     {
100 100
         $basename = preg_replace('/Plugin$/', '', $this->getName());
101 101
 
102
-        return $this->getNamespace().'\\DependencyInjection\\'.$basename.'Extension';
102
+        return $this->getNamespace() . '\\DependencyInjection\\' . $basename . 'Extension';
103 103
     }
104 104
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AdminBundle/DependencyInjection/SyliusAdminExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function load(array $config, ContainerBuilder $container)
28 28
     {
29 29
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
30
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
31 31
 
32 32
         $container->setParameter('sylius.admin.notification.enabled', $config['notifications']['enabled']);
33 33
         $container->setParameter('sylius.admin.notification.frequency', $config['notifications']['frequency']);
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/spec/Generator/RandomnessGeneratorSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
     public function getMatchers()
63 63
     {
64 64
         return [
65
-            'haveLength' => function($subject, $length) {
65
+            'haveLength' => function ($subject, $length) {
66 66
                 return $length === strlen($subject);
67 67
             },
68
-            'beInRange' => function($subject, $min, $max) {
68
+            'beInRange' => function ($subject, $min, $max) {
69 69
                 return $subject >= $min && $subject <= $max;
70 70
             }
71 71
         ];
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Filter/DateFilter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $from = isset($data['from']) ? $this->getDateTime($data['from']) : null;
36 36
         if (null !== $from) {
37
-            $inclusive = (bool)$this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM);
37
+            $inclusive = (bool) $this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM);
38 38
             if (true === $inclusive) {
39 39
                 $expressionBuilder->greaterThanOrEqual($field, $from);
40 40
             } else {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $to = isset($data['to']) ? $this->getDateTime($data['to']) : null;
46 46
         if (null !== $to) {
47
-            $inclusive = (bool)$this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO);
47
+            $inclusive = (bool) $this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO);
48 48
             if (true === $inclusive) {
49 49
                 $expressionBuilder->lessThanOrEqual($field, $to);
50 50
             } else {
@@ -81,6 +81,6 @@  discard block
 block discarded – undo
81 81
             return $data['date'];
82 82
         }
83 83
 
84
-        return $data['date'].' '.$data['time'];
84
+        return $data['date'] . ' ' . $data['time'];
85 85
     }
86 86
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutStateUrlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             throw new RouteNotFoundException();
71 71
         }
72 72
 
73
-        return $this->router->generate($this->routeCollection['empty_order']['route'], $parameters, $referenceType);    }
73
+        return $this->router->generate($this->routeCollection['empty_order']['route'], $parameters, $referenceType); }
74 74
 
75 75
     /**
76 76
      * {@inheritdoc}
Please login to merge, or discard this patch.
DependencyInjection/Compiler/RegisterPromotionActionsPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $promotionActionTypeToLabelMap = [];
36 36
         foreach ($container->findTaggedServiceIds('sylius.promotion_action') as $id => $attributes) {
37 37
             if (!isset($attributes[0]['type'], $attributes[0]['label'], $attributes[0]['form_type'])) {
38
-                throw new \InvalidArgumentException('Tagged promotion action `'.$id.'` needs to have `type`, `form_type` and `label` attributes.');
38
+                throw new \InvalidArgumentException('Tagged promotion action `' . $id . '` needs to have `type`, `form_type` and `label` attributes.');
39 39
             }
40 40
 
41 41
             $promotionActionTypeToLabelMap[$attributes[0]['type']] = $attributes[0]['label'];
Please login to merge, or discard this patch.
PromotionBundle/DependencyInjection/Compiler/RegisterRuleCheckersPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $promotionRuleCheckerTypeToLabelMap = [];
36 36
         foreach ($container->findTaggedServiceIds('sylius.promotion_rule_checker') as $id => $attributes) {
37 37
             if (!isset($attributes[0]['type'], $attributes[0]['label'], $attributes[0]['form_type'])) {
38
-                throw new \InvalidArgumentException('Tagged rule checker `'.$id.'` needs to have `type`, `form_type` and `label` attributes.');
38
+                throw new \InvalidArgumentException('Tagged rule checker `' . $id . '` needs to have `type`, `form_type` and `label` attributes.');
39 39
             }
40 40
 
41 41
             $promotionRuleCheckerTypeToLabelMap[$attributes[0]['type']] = $attributes[0]['label'];
Please login to merge, or discard this patch.