@@ -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 |
@@ -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 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @param $code |
|
| 96 | + * @param string $code |
|
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
| 99 | 99 | */ |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @return array |
|
| 106 | + * @return string[] |
|
| 107 | 107 | */ |
| 108 | 108 | private function getAvailableCountries() |
| 109 | 109 | { |
@@ -194,6 +194,7 @@ |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * @param object $entity |
| 197 | + * @param string $value |
|
| 197 | 198 | * |
| 198 | 199 | * @return Route |
| 199 | 200 | */ |
@@ -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 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * Add a step with given name. |
| 37 | 37 | * |
| 38 | 38 | * @param string $name |
| 39 | - * @param string|StepInterface $step Step alias or instance |
|
| 39 | + * @param string $step Step alias or instance |
|
| 40 | 40 | * |
| 41 | 41 | * @return ProcessBuilderInterface |
| 42 | 42 | */ |
@@ -46,6 +46,7 @@ discard block |
||
| 46 | 46 | * Remove step with given name. |
| 47 | 47 | * |
| 48 | 48 | * @param string $name |
| 49 | + * @return void |
|
| 49 | 50 | */ |
| 50 | 51 | public function remove($name); |
| 51 | 52 | |
@@ -62,6 +63,7 @@ discard block |
||
| 62 | 63 | * Set display route. |
| 63 | 64 | * |
| 64 | 65 | * @param string $route |
| 66 | + * @return ProcessBuilder |
|
| 65 | 67 | */ |
| 66 | 68 | public function setDisplayRoute($route); |
| 67 | 69 | |
@@ -69,6 +71,7 @@ discard block |
||
| 69 | 71 | * Set additional forward route params. |
| 70 | 72 | * |
| 71 | 73 | * @param array $params |
| 74 | + * @return ProcessBuilder |
|
| 72 | 75 | */ |
| 73 | 76 | public function setDisplayRouteParams(array $params); |
| 74 | 77 | |
@@ -76,6 +79,7 @@ discard block |
||
| 76 | 79 | * Set forward route. |
| 77 | 80 | * |
| 78 | 81 | * @param string $route |
| 82 | + * @return ProcessBuilder |
|
| 79 | 83 | */ |
| 80 | 84 | public function setForwardRoute($route); |
| 81 | 85 | |
@@ -83,6 +87,7 @@ discard block |
||
| 83 | 87 | * Set additional forward route params. |
| 84 | 88 | * |
| 85 | 89 | * @param array $params |
| 90 | + * @return ProcessBuilder |
|
| 86 | 91 | */ |
| 87 | 92 | public function setForwardRouteParams(array $params); |
| 88 | 93 | |
@@ -90,6 +95,7 @@ discard block |
||
| 90 | 95 | * Set redirection route after completion. |
| 91 | 96 | * |
| 92 | 97 | * @param string $redirect |
| 98 | + * @return ProcessBuilder |
|
| 93 | 99 | */ |
| 94 | 100 | public function setRedirect($redirect); |
| 95 | 101 | |
@@ -97,13 +103,15 @@ discard block |
||
| 97 | 103 | * Set redirection route params. |
| 98 | 104 | * |
| 99 | 105 | * @param array $params |
| 106 | + * @return ProcessBuilder |
|
| 100 | 107 | */ |
| 101 | 108 | public function setRedirectParams(array $params); |
| 102 | 109 | |
| 103 | 110 | /** |
| 104 | 111 | * Validation of process, if returns false, process is suspended. |
| 105 | 112 | * |
| 106 | - * @param \Closure|ProcessValidatorInterface $validator |
|
| 113 | + * @param \Prophecy\Argument\Token\AnyValueToken $validator |
|
| 114 | + * @return ProcessBuilder |
|
| 107 | 115 | */ |
| 108 | 116 | public function validate($validator); |
| 109 | 117 | |
@@ -112,6 +120,7 @@ discard block |
||
| 112 | 120 | * |
| 113 | 121 | * @param string $alias |
| 114 | 122 | * @param StepInterface $step |
| 123 | + * @return void |
|
| 115 | 124 | */ |
| 116 | 125 | public function registerStep($alias, StepInterface $step); |
| 117 | 126 | |