@@ -107,7 +107,7 @@ |
||
107 | 107 | $imageForm->fillField('Type', $type); |
108 | 108 | } |
109 | 109 | |
110 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
110 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $imageForm->fillField('Type', $type); |
76 | 76 | } |
77 | 77 | |
78 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
78 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $filesPath = $this->getParameter('files_path'); |
147 | 147 | |
148 | 148 | $imageForm = $this->getImageElementByType($type); |
149 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
149 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getImageElementByType($type) |
305 | 305 | { |
306 | 306 | $images = $this->getElement('images'); |
307 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
307 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
308 | 308 | |
309 | 309 | if (null === $typeInput) { |
310 | 310 | return null; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $imageForm->fillField('Type', $type); |
108 | 108 | } |
109 | 109 | |
110 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
110 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $imageForm->fillField('Type', $type); |
76 | 76 | } |
77 | 77 | |
78 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
78 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $filesPath = $this->getParameter('files_path'); |
147 | 147 | |
148 | 148 | $imageForm = $this->getImageElementByType($type); |
149 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
149 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getImageElementByType($type) |
305 | 305 | { |
306 | 306 | $images = $this->getElement('images'); |
307 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
307 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
308 | 308 | |
309 | 309 | if (null === $typeInput) { |
310 | 310 | return null; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function buildForm(FormBuilderInterface $builder, array $options) |
29 | 29 | { |
30 | - $builder->addEventListener(FormEvents::PRE_SUBMIT , function (FormEvent $event) { |
|
30 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
31 | 31 | $data = $event->getData(); |
32 | 32 | |
33 | 33 | if (!array_key_exists('onHand', $data)) { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function load(array $config, ContainerBuilder $container) |
29 | 29 | { |
30 | 30 | $config = $this->processConfiguration($this->getConfiguration([], $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 | $container->setParameter('sylius_money.locale', $config['locale']); |
34 | 34 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return; |
45 | 45 | } |
46 | 46 | |
47 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
47 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
48 | 48 | $loader->load('services/integrations/currency.xml'); |
49 | 49 | } |
50 | 50 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | public function getRouteName($name) |
165 | 165 | { |
166 | - $sectionPrefix = $this->getSection() ? $this->getSection().'_' : ''; |
|
166 | + $sectionPrefix = $this->getSection() ? $this->getSection() . '_' : ''; |
|
167 | 167 | |
168 | 168 | return sprintf('%s_%s%s_%s', $this->metadata->getApplicationName(), $sectionPrefix, $this->metadata->getName(), $name); |
169 | 169 | } |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | return ''; |
206 | 206 | } |
207 | 207 | |
208 | - return '#'.$redirect['hash']; |
|
208 | + return '#' . $redirect['hash']; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | /** |
@@ -127,7 +127,7 @@ |
||
127 | 127 | */ |
128 | 128 | private function getPaymentMethods(PaymentInterface $payment, $locale) |
129 | 129 | { |
130 | - $paymentMethods = $this->paymentMethodResolver->getSupportedMethods($payment); |
|
130 | + $paymentMethods = $this->paymentMethodResolver->getSupportedMethods($payment); |
|
131 | 131 | |
132 | 132 | $rawPaymentMethods = []; |
133 | 133 |
@@ -136,7 +136,7 @@ |
||
136 | 136 | */ |
137 | 137 | private function getCalculatedShippingMethods(ShipmentInterface $shipment, $locale) |
138 | 138 | { |
139 | - $shippingMethods = $this->shippingMethodsResolver->getSupportedMethods($shipment); |
|
139 | + $shippingMethods = $this->shippingMethodsResolver->getSupportedMethods($shipment); |
|
140 | 140 | |
141 | 141 | $rawShippingMethods = []; |
142 | 142 |