@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | do { |
46 | 46 | $hash = md5(uniqid(mt_rand(), true)); |
47 | - $path = $this->expandPath($hash.'.'.$image->getFile()->guessExtension()); |
|
47 | + $path = $this->expandPath($hash . '.' . $image->getFile()->guessExtension()); |
|
48 | 48 | } while ($this->filesystem->has($path)); |
49 | 49 | |
50 | 50 | $image->setPath($path); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Component\Registry; |
13 | 13 | |
14 | -require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
|
14 | +require_once __DIR__ . '/Fixture/SampleServiceInterface.php'; |
|
15 | 15 | |
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | 17 | use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Component\Registry; |
13 | 13 | |
14 | -require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
|
14 | +require_once __DIR__ . '/Fixture/SampleServiceInterface.php'; |
|
15 | 15 | |
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | 17 | use Prophecy\Argument; |
@@ -92,10 +92,10 @@ |
||
92 | 92 | $string .= '('; |
93 | 93 | |
94 | 94 | foreach ($this->getOptionValues() as $option) { |
95 | - $string .= $option->getOption()->getName().': '.$option->getValue().', '; |
|
95 | + $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', '; |
|
96 | 96 | } |
97 | 97 | |
98 | - $string = substr($string, 0, -2).')'; |
|
98 | + $string = substr($string, 0, -2) . ')'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | return $string; |
@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function theyAbandonedTheirCart(OrderInterface $cart, $amount, $time) |
60 | 60 | { |
61 | - $cart->setUpdatedAt(new \DateTime('-'.$amount.' '.$time)); |
|
61 | + $cart->setUpdatedAt(new \DateTime('-' . $amount . ' ' . $time)); |
|
62 | 62 | $this->orderManager->flush(); |
63 | 63 | } |
64 | 64 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | function it_listens_on_pre_submit_data_event() |
48 | 48 | { |
49 | - $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit',]); |
|
49 | + $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit', ]); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | function it_sets_user_for_existing_customer( |
@@ -45,7 +45,7 @@ |
||
45 | 45 | SessionInterface $session, |
46 | 46 | OrderRepositoryInterface $orderRepository, |
47 | 47 | OrderInterface $cart |
48 | - ) { |
|
48 | + ) { |
|
49 | 49 | $session->has('session_key_name')->willReturn(true); |
50 | 50 | $session->get('session_key_name')->willReturn(12345); |
51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | 'targetEntity' => $subjectClass, |
88 | 88 | 'inversedBy' => 'attributes', |
89 | 89 | 'joinColumns' => [[ |
90 | - 'name' => $subject.'_id', |
|
90 | + 'name' => $subject . '_id', |
|
91 | 91 | 'referencedColumnName' => $targetEntityMetadata->fieldMappings['id']['columnName'], |
92 | 92 | 'nullable' => false, |
93 | 93 | 'onDelete' => 'CASCADE', |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $parameterName = $this->getParameterName($field); |
66 | 66 | $this->queryBuilder->setParameter($parameterName, $value); |
67 | 67 | |
68 | - return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':'.$parameterName); |
|
68 | + return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':' . $parameterName); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $parameterName = $this->getParameterName($field); |
77 | 77 | $this->queryBuilder->setParameter($parameterName, $value); |
78 | 78 | |
79 | - return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':'.$parameterName); |
|
79 | + return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':' . $parameterName); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $parameterName = $this->getParameterName($field); |
88 | 88 | $this->queryBuilder->setParameter($parameterName, $value); |
89 | 89 | |
90 | - $this->queryBuilder->andWhere($this->getFieldName($field).' < :'.$parameterName); |
|
90 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' < :' . $parameterName); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $parameterName = $this->getParameterName($field); |
99 | 99 | $this->queryBuilder->setParameter($parameterName, $value); |
100 | 100 | |
101 | - $this->queryBuilder->andWhere($this->getFieldName($field).' <= :'.$parameterName); |
|
101 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' <= :' . $parameterName); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $parameterName = $this->getParameterName($field); |
110 | 110 | $this->queryBuilder->setParameter($parameterName, $value); |
111 | 111 | |
112 | - $this->queryBuilder->andWhere($this->getFieldName($field).' > :'.$parameterName); |
|
112 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' > :' . $parameterName); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $parameterName = $this->getParameterName($field); |
121 | 121 | $this->queryBuilder->setParameter($parameterName, $value); |
122 | 122 | |
123 | - $this->queryBuilder->andWhere($this->getFieldName($field).' >= :'.$parameterName); |
|
123 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' >= :' . $parameterName); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | private function getFieldName($field) |
194 | 194 | { |
195 | 195 | if (false === strpos($field, '.')) { |
196 | - return $this->queryBuilder->getRootAlias().'.'.$field; |
|
196 | + return $this->queryBuilder->getRootAlias() . '.' . $field; |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | return $field; |