@@ -20,6 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $shippingMethod |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function selectShippingMethod($shippingMethod); |
| 25 | 26 | |
@@ -50,10 +51,19 @@ discard block |
||
| 50 | 51 | */ |
| 51 | 52 | public function getItemSubtotal($itemName); |
| 52 | 53 | |
| 54 | + /** |
|
| 55 | + * @return void |
|
| 56 | + */ |
|
| 53 | 57 | public function nextStep(); |
| 54 | 58 | |
| 59 | + /** |
|
| 60 | + * @return void |
|
| 61 | + */ |
|
| 55 | 62 | public function changeAddress(); |
| 56 | 63 | |
| 64 | + /** |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 57 | 67 | public function changeAddressByStepLabel(); |
| 58 | 68 | |
| 59 | 69 | /** |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | | sylius.two | |
| 57 | 57 | +------------+ |
| 58 | 58 | |
| 59 | -EOT |
|
| 59 | +eot |
|
| 60 | 60 | , $display); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | | whatever.something.elephants | camels | |
| 83 | 83 | +------------------------------+-----------------+ |
| 84 | 84 | |
| 85 | -EOT |
|
| 85 | +eot |
|
| 86 | 86 | , $display); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | "username": "[email protected]", |
| 36 | 36 | "password": "sylius" |
| 37 | 37 | } |
| 38 | -EOT; |
|
| 38 | +eot; |
|
| 39 | 39 | |
| 40 | 40 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 41 | 41 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | "grant_type": "refresh_token", |
| 59 | 59 | "refresh_token": "SampleRefreshTokenODllODY4ZTQyOThlNWIyMjA1ZDhmZjE1ZDYyMGMwOTUxOWM2NGFmNGRjNjQ2NDBhMDVlNGZjMmQ0YzgyNDM2Ng" |
| 60 | 60 | } |
| 61 | -EOT; |
|
| 61 | +eot; |
|
| 62 | 62 | |
| 63 | 63 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 64 | 64 | |
@@ -20,24 +20,31 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $title |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function titleReview($title); |
| 25 | 26 | |
| 26 | 27 | /** |
| 27 | 28 | * @param string $comment |
| 29 | + * @return void |
|
| 28 | 30 | */ |
| 29 | 31 | public function setComment($comment); |
| 30 | 32 | |
| 31 | 33 | /** |
| 32 | 34 | * @param string $author |
| 35 | + * @return void |
|
| 33 | 36 | */ |
| 34 | 37 | public function setAuthor($author); |
| 35 | 38 | |
| 36 | 39 | /** |
| 37 | 40 | * @param int $rate |
| 41 | + * @return void |
|
| 38 | 42 | */ |
| 39 | 43 | public function rateReview($rate); |
| 40 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 41 | 48 | public function submitReview(); |
| 42 | 49 | |
| 43 | 50 | /** |
@@ -33,11 +33,12 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @param string $key |
| 35 | 35 | * @param mixed $resource |
| 36 | + * @return void |
|
| 36 | 37 | */ |
| 37 | 38 | public function set($key, $resource); |
| 38 | 39 | |
| 39 | 40 | /** |
| 40 | - * @return mixed |
|
| 41 | + * @return string |
|
| 41 | 42 | */ |
| 42 | 43 | public function getLatestResource(); |
| 43 | 44 | |
@@ -45,6 +46,7 @@ discard block |
||
| 45 | 46 | * @param array $clipboard |
| 46 | 47 | * |
| 47 | 48 | * @throws \RuntimeException |
| 49 | + * @return void |
|
| 48 | 50 | */ |
| 49 | 51 | public function setClipboard(array $clipboard); |
| 50 | 52 | } |
@@ -199,6 +199,7 @@ |
||
| 199 | 199 | |
| 200 | 200 | /** |
| 201 | 201 | * {@inheritdoc} |
| 202 | + * @param string $name |
|
| 202 | 203 | */ |
| 203 | 204 | protected function getElement($name, array $parameters = []) |
| 204 | 205 | { |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
| 15 | 15 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
| 16 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 17 | 16 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
| 17 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 18 | 18 | use Symfony\Component\Form\FormBuilderInterface; |
| 19 | 19 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 20 | 20 | use Symfony\Component\Validator\Constraints\Valid; |
@@ -47,7 +47,8 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
| 49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
| 50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
| 50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
| 51 | +// Validate the coupon if it was sent |
|
| 51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
| 52 | 53 | } |
| 53 | 54 | |
@@ -84,6 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param Collaborator[] ...$collaborators |
| 87 | + * @param FixtureInterface $collaborators |
|
| 87 | 88 | * |
| 88 | 89 | * @return \Generator |
| 89 | 90 | */ |