Completed
Branch master (429264)
by Kamil
37:02
created
src/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadZonesData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         $zone->setName($name);
77 77
         $zone->setType($type);
78 78
 
79
-        $this->setReference('Sylius.Zone.'.$code, $zone);
79
+        $this->setReference('Sylius.Zone.' . $code, $zone);
80 80
 
81 81
         return $zone;
82 82
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadCurrencyData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                 $currency->setBase(true);
51 51
             }
52 52
 
53
-            $this->setReference('Sylius.Currency.'.$code, $currency);
53
+            $this->setReference('Sylius.Currency.' . $code, $currency);
54 54
 
55 55
             $manager->persist($currency);
56 56
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadShippingData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $category->setDescription($description);
78 78
         $category->setCode($code);
79 79
 
80
-        $this->setReference('Sylius.ShippingCategory.'.$code, $category);
80
+        $this->setReference('Sylius.ShippingCategory.' . $code, $category);
81 81
 
82 82
         return $category;
83 83
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $method->setCategory($category);
114 114
         $method->setEnabled($enabled);
115 115
 
116
-        $this->setReference('Sylius.ShippingMethod.'.$code, $method);
116
+        $this->setReference('Sylius.ShippingMethod.' . $code, $method);
117 117
 
118 118
         return $method;
119 119
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadProductOptionData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
             $option->addValue($optionValue);
129 129
         }
130 130
 
131
-        $this->setReference('Sylius.Option.'.$optionCode, $option);
131
+        $this->setReference('Sylius.Option.' . $optionCode, $option);
132 132
 
133 133
         return $option;
134 134
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadPaymentMethodsData.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
         $method->setEnabled($enabled);
64 64
         $method->setCode($code);
65 65
 
66
-        $this->setReference('Sylius.PaymentMethod.'.$code, $method);
66
+        $this->setReference('Sylius.PaymentMethod.' . $code, $method);
67 67
 
68 68
         return $method;
69 69
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadPromotionsData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $promotion->setCode($code);
152 152
         $promotion->setPriority($priority);
153 153
 
154
-        $promotion->addChannel($this->getReference('Sylius.Channel.'.$channel));
154
+        $promotion->addChannel($this->getReference('Sylius.Channel.' . $channel));
155 155
 
156 156
         foreach ($rules as $rule) {
157 157
             $promotion->addRule($rule);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             $promotion->addAction($action);
161 161
         }
162 162
 
163
-        $this->setReference('Sylius.Promotion.'.$code, $promotion);
163
+        $this->setReference('Sylius.Promotion.' . $code, $promotion);
164 164
 
165 165
         return $promotion;
166 166
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadContactTopicData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
             $manager->persist($contactTopic);
40 40
 
41
-            $this->setReference('Sylius.ContactTopic.'.$i, $contactTopic);
41
+            $this->setReference('Sylius.ContactTopic.' . $i, $contactTopic);
42 42
         }
43 43
 
44 44
         $manager->flush();
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DataFixtures/DataFixture.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $matches = [];
82 82
         if (preg_match('/^get(.*)Repository$/', $method, $matches)) {
83
-            return $this->get('sylius.repository.'.$matches[1]);
83
+            return $this->get('sylius.repository.' . $matches[1]);
84 84
         }
85 85
         if (preg_match('/^get(.*)Factory$/', $method, $matches)) {
86
-            return $this->get('sylius.factory.'.$matches[1]);
86
+            return $this->get('sylius.factory.' . $matches[1]);
87 87
         }
88 88
         
89 89
         if (!method_exists($this, $method)) {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function getZoneByCode($code)
112 112
     {
113
-        return $this->getReference('Sylius.Zone.'.$code);
113
+        return $this->getReference('Sylius.Zone.' . $code);
114 114
     }
115 115
 
116 116
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $countries = array_slice($allCountries, 0, count($allCountries) - 5, true);
155 155
 
156 156
         $countryCode = array_rand($countries);
157
-        $country = $this->getReference('Sylius.Country.'.$countryCode);
157
+        $country = $this->getReference('Sylius.Country.' . $countryCode);
158 158
 
159 159
         if ($province = $country->hasProvinces() ? $this->faker->randomElement($country->getProvinces()->toArray()) : null) {
160 160
             $address->setProvinceCode($province->getCode());
Please login to merge, or discard this patch.
Bundle/PromotionBundle/DependencyInjection/SyliusPromotionExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function load(array $config, ContainerBuilder $container)
32 32
     {
33 33
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
34
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
34
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
35 35
 
36 36
         $this->mapFormValidationGroupsParameters($config, $container);
37 37
 
Please login to merge, or discard this patch.