@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $client = $this->getClient(); |
28 | 28 | |
29 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
29 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
30 | 30 | $this->assertEquals($contents, trim($crawler->text())); |
31 | 31 | } |
32 | 32 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | { |
55 | 55 | $client = $this->getClient(); |
56 | 56 | |
57 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
57 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
58 | 58 | $this->assertEquals($contents, trim($crawler->text())); |
59 | 59 | } |
60 | 60 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | $client = $this->getClient(); |
84 | 84 | |
85 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
85 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
86 | 86 | $this->assertEquals($contents, trim($crawler->text())); |
87 | 87 | } |
88 | 88 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $client = $this->getClient(); |
110 | 110 | |
111 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
111 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
112 | 112 | $this->assertEquals($contents, trim($crawler->text())); |
113 | 113 | } |
114 | 114 |
@@ -96,7 +96,7 @@ |
||
96 | 96 | protected function getPropertyName($name) |
97 | 97 | { |
98 | 98 | if (in_array($name, $this->translatableFields, true)) { |
99 | - return 'translations.'.$this->localeProvider->getDefaultLocaleCode().'.'.$name; |
|
99 | + return 'translations.' . $this->localeProvider->getDefaultLocaleCode() . '.' . $name; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | return $name; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** @var MetadataInterface $translationResourceMetadata */ |
137 | - $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias().'_translation'); |
|
137 | + $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias() . '_translation'); |
|
138 | 138 | |
139 | 139 | $metadata->mapOneToMany([ |
140 | 140 | 'fieldName' => 'translations', |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | if (!$this->hasUniqueConstraint($metadata, $columns)) { |
195 | 195 | $constraints = isset($metadata->table['uniqueConstraints']) ? $metadata->table['uniqueConstraints'] : []; |
196 | 196 | |
197 | - $constraints[$metadata->getTableName().'_uniq_trans'] = [ |
|
197 | + $constraints[$metadata->getTableName() . '_uniq_trans'] = [ |
|
198 | 198 | 'columns' => $columns, |
199 | 199 | ]; |
200 | 200 |
@@ -133,11 +133,11 @@ |
||
133 | 133 | { |
134 | 134 | foreach ($parameters as $key => $value) { |
135 | 135 | if (is_array($value)) { |
136 | - $flattened = $this->flattenParameters($value, $flattened, $prefix.$key.'.'); |
|
136 | + $flattened = $this->flattenParameters($value, $flattened, $prefix . $key . '.'); |
|
137 | 137 | continue; |
138 | 138 | } |
139 | 139 | |
140 | - $flattened[$prefix.$key] = $value; |
|
140 | + $flattened[$prefix . $key] = $value; |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | return $flattened; |
@@ -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 |
@@ -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 | } |
@@ -50,6 +50,6 @@ |
||
50 | 50 | $parent = $this->taxonRepository->find($parentId); |
51 | 51 | Assert::notNull($parent, sprintf('There is no parent taxon with id %d.', $parentId)); |
52 | 52 | |
53 | - return $parent->getSlug().self::SLUG_SEPARATOR.$taxonSlug; |
|
53 | + return $parent->getSlug() . self::SLUG_SEPARATOR . $taxonSlug; |
|
54 | 54 | } |
55 | 55 | } |
@@ -44,12 +44,12 @@ |
||
44 | 44 | $taxonRepository->find(1)->willReturn($parent); |
45 | 45 | $parent->getSlug()->willReturn('board-games'); |
46 | 46 | |
47 | - $this->generate('Battle games', 1)->shouldReturn('board-games/battle-games');; |
|
47 | + $this->generate('Battle games', 1)->shouldReturn('board-games/battle-games'); ; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | function it_generates_slug_based_on_new_taxon_name_if_this_taxon_has_no_parent() |
51 | 51 | { |
52 | - $this->generate('Board games')->shouldReturn('board-games');; |
|
52 | + $this->generate('Board games')->shouldReturn('board-games'); ; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | function it_throws_exception_if_parent_taxon_with_given_id_does_not_exist( |