@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $imageForm = $this->getLastImageElement(); |
56 | 56 | $imageForm->fillField('Code', $code); |
57 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
57 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ) { |
87 | 87 | $review = $this->createProductReview($product, $title, $rating, $title, $customer); |
88 | 88 | if (null !== $daysSinceCreation) { |
89 | - $review->setCreatedAt(new \DateTime('-'.$daysSinceCreation.' days')); |
|
89 | + $review->setCreatedAt(new \DateTime('-' . $daysSinceCreation . ' days')); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | $this->productReviewRepository->add($review); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | { |
115 | 115 | $customer = $this->sharedStorage->get('customer'); |
116 | 116 | foreach ($rates as $key => $rate) { |
117 | - $review = $this->createProductReview($product, 'Title '.$key, $rate, 'Comment '.$key, $customer); |
|
117 | + $review = $this->createProductReview($product, 'Title ' . $key, $rate, 'Comment ' . $key, $customer); |
|
118 | 118 | $this->productReviewRepository->add($review); |
119 | 119 | } |
120 | 120 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | /** @var ChoiceView $choice */ |
62 | 62 | foreach ($view->vars['choices'] as $choice) { |
63 | - $choice->label = str_repeat('— ', $choice->data->getLevel()).$choice->label; |
|
63 | + $choice->label = str_repeat('— ', $choice->data->getLevel()) . $choice->label; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @Transform /^address is "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/ |
70 | 70 | * @Transform /^address to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/ |
71 | 71 | */ |
72 | - public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null) |
|
72 | + public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null) |
|
73 | 73 | { |
74 | 74 | $countryCode = $this->countryNameConverter->convertToCode($countryName); |
75 | 75 | $customerName = explode(' ', $customerName); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | public function getByStreet($street) |
108 | 108 | { |
109 | 109 | $address = $this->addressRepository->findOneBy(['street' => $street]); |
110 | - Assert::notNull($address, sprintf('Cannot find address by %s street' , $street)); |
|
110 | + Assert::notNull($address, sprintf('Cannot find address by %s street', $street)); |
|
111 | 111 | |
112 | 112 | return $address; |
113 | 113 | } |
@@ -271,6 +271,6 @@ |
||
271 | 271 | */ |
272 | 272 | private function generateCodeFromNameAndZone($shippingMethodName, $zoneCode = null) |
273 | 273 | { |
274 | - return StringInflector::nameToLowercaseCode($shippingMethodName).'_'.StringInflector::nameToLowercaseCode($zoneCode); |
|
274 | + return StringInflector::nameToLowercaseCode($shippingMethodName) . '_' . StringInflector::nameToLowercaseCode($zoneCode); |
|
275 | 275 | } |
276 | 276 | } |
@@ -347,7 +347,7 @@ |
||
347 | 347 | Pagerfanta $results, |
348 | 348 | $template, |
349 | 349 | $page |
350 | - ){ |
|
350 | + ) { |
|
351 | 351 | $results->setCurrentPage($page, true, true); |
352 | 352 | $results->setMaxPerPage($this->config->getPaginationMaxPerPage()); |
353 | 353 |
@@ -27,10 +27,10 @@ |
||
27 | 27 | public function process(ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | foreach ($container->getParameter('sylius.review.subjects') as $subject => $configuration) { |
30 | - $factory = $container->findDefinition('sylius.factory.'.$subject.'_review'); |
|
30 | + $factory = $container->findDefinition('sylius.factory.' . $subject . '_review'); |
|
31 | 31 | $reviewFactoryDefinition = new Definition(ReviewFactory::class); |
32 | 32 | |
33 | - $reviewFactory = $container->setDefinition(sprintf('sylius.factory.'.$subject.'_review'), $reviewFactoryDefinition); |
|
33 | + $reviewFactory = $container->setDefinition(sprintf('sylius.factory.' . $subject . '_review'), $reviewFactoryDefinition); |
|
34 | 34 | $reviewFactory->addArgument($factory); |
35 | 35 | } |
36 | 36 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function fillField($field, $value) |
34 | 34 | { |
35 | - $field = $this->getElement(str_replace(' ', '_',strtolower($field))); |
|
35 | + $field = $this->getElement(str_replace(' ', '_', strtolower($field))); |
|
36 | 36 | $field->setValue($value); |
37 | 37 | } |
38 | 38 |