@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return array |
|
43 | + * @return string[] |
|
44 | 44 | */ |
45 | 45 | public function getSubscribedEvents() |
46 | 46 | { |
@@ -83,7 +83,6 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Redirect to specific URL or to cart. |
85 | 85 | * |
86 | - * @param Request $request |
|
87 | 86 | * |
88 | 87 | * @return RedirectResponse |
89 | 88 | */ |
@@ -105,7 +104,6 @@ discard block |
||
105 | 104 | * If the item is found and the current user cart contains that item, |
106 | 105 | * it will be removed and the cart - refreshed and saved. |
107 | 106 | * |
108 | - * @param mixed $id |
|
109 | 107 | * |
110 | 108 | * @return Response |
111 | 109 | */ |
@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @return CartInterface|null |
|
59 | + * @return CartInterface |
|
60 | 60 | */ |
61 | 61 | public function getCurrentCart() |
62 | 62 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Returns current cart. |
54 | 54 | * |
55 | - * @return null|CartInterface |
|
55 | + * @return CartInterface |
|
56 | 56 | */ |
57 | 57 | public function getCurrentCart() |
58 | 58 | { |
@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * @Given /^all products are assigned to "([^""]*)" channel$/ |
24 | + * @param string $code |
|
24 | 25 | */ |
25 | 26 | public function assignChannelToProducts($code) |
26 | 27 | { |
@@ -63,6 +64,7 @@ discard block |
||
63 | 64 | |
64 | 65 | /** |
65 | 66 | * @Given /^all promotions are assigned to "([^""]*)" channel$/ |
67 | + * @param string $code |
|
66 | 68 | */ |
67 | 69 | public function assignChannelToPromotions($code) |
68 | 70 | { |
@@ -116,6 +118,7 @@ discard block |
||
116 | 118 | |
117 | 119 | /** |
118 | 120 | * @Given /^channel "([^""]*)" has following configuration:$/ |
121 | + * @param string $code |
|
119 | 122 | */ |
120 | 123 | public function channelHasFollowingConfiguration($code, TableNode $table) |
121 | 124 | { |
@@ -287,6 +287,10 @@ discard block |
||
287 | 287 | $manager->flush(); |
288 | 288 | } |
289 | 289 | |
290 | + /** |
|
291 | + * @param string $role |
|
292 | + * @param \DateTime $createdAt |
|
293 | + */ |
|
290 | 294 | public function thereIsUser($email, $password, $role = null, $enabled = 'yes', $address = null, $groups = [], $flush = true, array $authorizationRoles = [], $createdAt = null) |
291 | 295 | { |
292 | 296 | if (null !== $user = $this->getRepository('user')->findOneByEmail($email)) { |
@@ -304,6 +308,11 @@ discard block |
||
304 | 308 | return $user; |
305 | 309 | } |
306 | 310 | |
311 | + /** |
|
312 | + * @param \DateTime $createdAt |
|
313 | + * |
|
314 | + * @return null|\Sylius\Component\User\Model\CustomerInterface |
|
315 | + */ |
|
307 | 316 | protected function thereIsCustomer($email, $address = null, $groups = [], $flush = true, $createdAt = null) |
308 | 317 | { |
309 | 318 | if (null !== $customer = $this->getRepository('customer')->findOneByEmail($email)) { |
@@ -178,6 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | /** |
180 | 180 | * @Given there is the following metadata :metadataName: |
181 | + * @param string $metadataName |
|
181 | 182 | */ |
182 | 183 | public function thereIsTheFollowingMetadata($metadataName, TableNode $table) |
183 | 184 | { |
@@ -303,7 +304,7 @@ discard block |
||
303 | 304 | |
304 | 305 | /** |
305 | 306 | * @param ElementInterface $element |
306 | - * @param array $fields |
|
307 | + * @param string[] $fields |
|
307 | 308 | * |
308 | 309 | * @throws \Exception If assertion failed |
309 | 310 | */ |
@@ -318,7 +319,7 @@ discard block |
||
318 | 319 | * @param ElementInterface $element |
319 | 320 | * @param string[] $fields |
320 | 321 | * |
321 | - * @return ElementInterface|null |
|
322 | + * @return NodeElement|null |
|
322 | 323 | */ |
323 | 324 | private function getFormWithFields(ElementInterface $element, array $fields) |
324 | 325 | { |
@@ -344,7 +345,7 @@ discard block |
||
344 | 345 | /** |
345 | 346 | * @param string $value |
346 | 347 | * |
347 | - * @return CardInterface |
|
348 | + * @return null|CardInterface |
|
348 | 349 | */ |
349 | 350 | protected function createTwitterCardFromString($value) |
350 | 351 | { |
@@ -109,7 +109,7 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * @return FormInterface|null |
|
112 | + * @return null|\Symfony\Component\Form\Form |
|
113 | 113 | */ |
114 | 114 | protected function getGuestForm() |
115 | 115 | { |
@@ -306,7 +306,7 @@ |
||
306 | 306 | * @param RequestConfiguration $configuration |
307 | 307 | * @param TaxonInterface $taxon |
308 | 308 | * @param Pagerfanta $results |
309 | - * @param mixed $template |
|
309 | + * @param string $template |
|
310 | 310 | * @param mixed $page |
311 | 311 | * @param mixed|null $facets |
312 | 312 | * @param mixed|null $facetTags |