@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Hook; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Transform; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Api\Admin; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Setup; |
| 15 | 15 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null) |
| 63 | 63 | { |
| 64 | 64 | $this->createShippingCategory($firstShippingCategoryName); |
| 65 | - (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName); |
|
| 65 | + (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null) |
| 81 | 81 | { |
| 82 | 82 | /** @var ShippingCategoryInterface $shippingCategory */ |
| 83 | - $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
| 83 | + $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
| 84 | 84 | $shippingCategory->setName($shippingCategoryName); |
| 85 | 85 | $shippingCategory->setCode($shippingCategoryCode); |
| 86 | 86 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Setup; |
| 15 | 15 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | /** @var ImageInterface $taxonImage */ |
| 140 | 140 | $taxonImage = $this->taxonImageFactory->createNew(); |
| 141 | - $taxonImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
| 141 | + $taxonImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
| 142 | 142 | $taxonImage->setType($imageType); |
| 143 | 143 | $this->imageUploader->upload($taxonImage); |
| 144 | 144 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Setup; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Setup; |
| 15 | 15 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | ) { |
| 89 | 89 | $review = $this->createProductReview($product, $title, $rating, $title, $customer); |
| 90 | 90 | if (null !== $daysSinceCreation) { |
| 91 | - $review->setCreatedAt(new \DateTime('-'.$daysSinceCreation.' days')); |
|
| 91 | + $review->setCreatedAt(new \DateTime('-' . $daysSinceCreation . ' days')); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | $this->productReviewRepository->add($review); |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | { |
| 132 | 132 | $customer = $this->sharedStorage->get('customer'); |
| 133 | 133 | foreach ($rates as $key => $rate) { |
| 134 | - $review = $this->createProductReview($product, 'Title '.$key, $rate, 'Comment '.$key, $customer); |
|
| 134 | + $review = $this->createProductReview($product, 'Title ' . $key, $rate, 'Comment ' . $key, $customer); |
|
| 135 | 135 | $this->productReviewRepository->add($review); |
| 136 | 136 | } |
| 137 | 137 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Setup; |
| 15 | 15 | |
@@ -750,7 +750,7 @@ discard block |
||
| 750 | 750 | |
| 751 | 751 | /** @var ImageInterface $productImage */ |
| 752 | 752 | $productImage = $this->productImageFactory->createNew(); |
| 753 | - $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
| 753 | + $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
| 754 | 754 | $productImage->setType($imageType); |
| 755 | 755 | $this->imageUploader->upload($productImage); |
| 756 | 756 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Context\Ui; |
| 15 | 15 | |