@@ -26,10 +26,14 @@ |
||
26 | 26 | */ |
27 | 27 | public function checkValidationMessageFor($element, $message); |
28 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
29 | 32 | public function reset(); |
30 | 33 | |
31 | 34 | /** |
32 | 35 | * @param string $email |
36 | + * @return void |
|
33 | 37 | */ |
34 | 38 | public function specifyEmail($email); |
35 | 39 | } |
@@ -91,8 +91,8 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @param array $columns |
|
95 | - * @param array $fields |
|
94 | + * @param NodeElement[] $columns |
|
95 | + * @param string[] $fields |
|
96 | 96 | * |
97 | 97 | * @return bool |
98 | 98 | */ |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * @param int $statusCode |
105 | - * @param mixed $streamMock |
|
105 | + * @param Mock $streamMock |
|
106 | 106 | * |
107 | 107 | * @return Mock |
108 | 108 | */ |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param string $source |
88 | - * @param mixed $content |
|
88 | + * @param string $content |
|
89 | 89 | * |
90 | 90 | * @throws \RuntimeException |
91 | 91 | */ |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * @param string $source |
101 | - * @param mixed $content |
|
101 | + * @param string $content |
|
102 | 102 | * |
103 | 103 | * @throws \RuntimeException |
104 | 104 | */ |
@@ -22,14 +22,19 @@ |
||
22 | 22 | * @param string $email |
23 | 23 | * |
24 | 24 | * @throws \InvalidArgumentException |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function logIn($email); |
27 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
28 | 32 | public function logOut(); |
29 | 33 | |
30 | 34 | /** |
31 | 35 | * @param UserInterface $user |
32 | 36 | * @param callable $action |
37 | + * @return void |
|
33 | 38 | */ |
34 | 39 | public function performActionAs(UserInterface $user, callable $action); |
35 | 40 | } |
@@ -110,7 +110,7 @@ |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @return array |
|
113 | + * @return \Generator |
|
114 | 114 | */ |
115 | 115 | private function getLocales() |
116 | 116 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\CoreBundle\Fixture\Factory; |
13 | 13 | |
14 | -use Doctrine\Common\Persistence\ObjectManager; |
|
15 | 14 | use Sylius\Component\Core\Formatter\StringInflector; |
16 | 15 | use Sylius\Component\Core\Model\TaxonInterface; |
17 | 16 | use Sylius\Component\Locale\Model\LocaleInterface; |
@@ -67,7 +67,7 @@ |
||
67 | 67 | * |
68 | 68 | * @throws \RuntimeException |
69 | 69 | * |
70 | - * @return string |
|
70 | + * @return integer |
|
71 | 71 | */ |
72 | 72 | private function tryToMapPaymentMethodName($paymentMethodName) |
73 | 73 | { |
@@ -187,6 +187,7 @@ |
||
187 | 187 | |
188 | 188 | /** |
189 | 189 | * {@inheritdoc} |
190 | + * @param string $field |
|
190 | 191 | */ |
191 | 192 | private function getFieldName($field) |
192 | 193 | { |
@@ -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; |
@@ -80,6 +80,7 @@ |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * {@inheritdoc} |
83 | + * @param string|null $url |
|
83 | 84 | */ |
84 | 85 | public function redirect(RequestConfiguration $configuration, $url, $status = 302) |
85 | 86 | { |
@@ -85,11 +85,11 @@ |
||
85 | 85 | { |
86 | 86 | if ($configuration->isHeaderRedirection()) { |
87 | 87 | return new Response('', 200, [ |
88 | - 'X-SYLIUS-LOCATION' => $url.$configuration->getRedirectHash(), |
|
88 | + 'X-SYLIUS-LOCATION' => $url . $configuration->getRedirectHash(), |
|
89 | 89 | ]); |
90 | 90 | } |
91 | 91 | |
92 | - return new RedirectResponse($url.$configuration->getRedirectHash(), $status); |
|
92 | + return new RedirectResponse($url . $configuration->getRedirectHash(), $status); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |