@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $channel = $this->sharedStorage->get('channel'); |
196 | 196 | } |
197 | 197 | $product = $this->createProduct($productName, $price, null, $channel); |
198 | - $product->setDescription('Awesome '.$productName); |
|
198 | + $product->setDescription('Awesome ' . $productName); |
|
199 | 199 | |
200 | 200 | if (null !== $channel) { |
201 | 201 | $product->addChannel($channel); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | /** @var ProductVariantInterface $productVariant */ |
251 | 251 | $productVariant = $this->defaultVariantResolver->getVariant($product); |
252 | 252 | |
253 | - $product->setDescription('Awesome '.$productName); |
|
253 | + $product->setDescription('Awesome ' . $productName); |
|
254 | 254 | |
255 | 255 | foreach ($channels as $channel) { |
256 | 256 | $product->addChannel($channel); |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | $product->setCode(StringInflector::nameToUppercaseCode($productName)); |
301 | 301 | $product->setSlug($this->slugGenerator->generate($productName)); |
302 | 302 | |
303 | - $product->setDescription('Awesome '.$productName); |
|
303 | + $product->setDescription('Awesome ' . $productName); |
|
304 | 304 | |
305 | 305 | if ($this->sharedStorage->has('channel')) { |
306 | 306 | $channel = $this->sharedStorage->get('channel'); |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value) |
445 | 445 | { |
446 | 446 | $attribute = $this->createProductAttribute('percent', $productAttributeName); |
447 | - $attributeValue = $this->createProductAttributeValue($value/100, $attribute); |
|
447 | + $attributeValue = $this->createProductAttributeValue($value / 100, $attribute); |
|
448 | 448 | $product->addAttribute($attributeValue); |
449 | 449 | |
450 | 450 | $this->objectManager->flush(); |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | { |
471 | 471 | $attribute = $this->createProductAttribute('percent', $productAttributeName); |
472 | 472 | $attribute->setPosition($position); |
473 | - $attributeValue = $this->createProductAttributeValue(rand(1, 100)/100, $attribute); |
|
473 | + $attributeValue = $this->createProductAttributeValue(rand(1, 100) / 100, $attribute); |
|
474 | 474 | |
475 | 475 | $product->addAttribute($attributeValue); |
476 | 476 | |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | |
661 | 661 | /** @var ImageInterface $productImage */ |
662 | 662 | $productImage = $this->productImageFactory->createNew(); |
663 | - $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
663 | + $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
664 | 664 | $productImage->setCode($imageCode); |
665 | 665 | $this->imageUploader->upload($productImage); |
666 | 666 |
@@ -197,7 +197,7 @@ |
||
197 | 197 | return |
198 | 198 | (stripos($elementText, $customerName) !== false) && |
199 | 199 | (stripos($elementText, $street) !== false) && |
200 | - (stripos($elementText, $city.', '.$postcode) !== false) && |
|
200 | + (stripos($elementText, $city . ', ' . $postcode) !== false) && |
|
201 | 201 | (stripos($elementText, $countryName) !== false) |
202 | 202 | ; |
203 | 203 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -12,9 +12,9 @@ |
||
12 | 12 | use Composer\Autoload\ClassLoader; |
13 | 13 | use Doctrine\Common\Annotations\AnnotationRegistry; |
14 | 14 | |
15 | -$loader = require __DIR__.'/../../vendor/autoload.php'; |
|
15 | +$loader = require __DIR__ . '/../../vendor/autoload.php'; |
|
16 | 16 | |
17 | -require __DIR__.'/AppKernel.php'; |
|
17 | +require __DIR__ . '/AppKernel.php'; |
|
18 | 18 | |
19 | 19 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
20 | 20 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -12,9 +12,9 @@ |
||
12 | 12 | use Composer\Autoload\ClassLoader; |
13 | 13 | use Doctrine\Common\Annotations\AnnotationRegistry; |
14 | 14 | |
15 | -$loader = require __DIR__.'/../../vendor/autoload.php'; |
|
15 | +$loader = require __DIR__ . '/../../vendor/autoload.php'; |
|
16 | 16 | |
17 | -require __DIR__.'/AppKernel.php'; |
|
17 | +require __DIR__ . '/AppKernel.php'; |
|
18 | 18 | |
19 | 19 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
20 | 20 |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | private function createUnexistingDirectoryMessage() |
142 | 142 | { |
143 | - return '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>'.PHP_EOL; |
|
143 | + return '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>' . PHP_EOL; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -148,6 +148,6 @@ discard block |
||
148 | 148 | */ |
149 | 149 | private function createBadPermissionsMessage() |
150 | 150 | { |
151 | - return '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>'.PHP_EOL; |
|
151 | + return '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>' . PHP_EOL; |
|
152 | 152 | } |
153 | 153 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | public function onLogoutSuccess(Request $request) |
57 | 57 | { |
58 | 58 | $channel = $this->channelContext->getChannel(); |
59 | - $this->session->remove('_sylius.cart.'.$channel->getCode()); |
|
59 | + $this->session->remove('_sylius.cart.' . $channel->getCode()); |
|
60 | 60 | |
61 | 61 | return parent::onLogoutSuccess($request); |
62 | 62 | } |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $productVariant->getChannelPricings()->willReturn(new ArrayCollection([ |
88 | 88 | $channelPricingWithPrice->getWrappedObject(), |
89 | 89 | $channelPricingWithoutPrice->getWrappedObject(), |
90 | - ]));; |
|
90 | + ])); ; |
|
91 | 91 | $channelPricingWithoutPrice->getPrice()->willReturn(null); |
92 | 92 | $channelPricingWithPrice->getPrice()->willReturn(123); |
93 | 93 |