@@ -19,6 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * @param string $name |
21 | 21 | * @param string $value |
22 | + * @return void |
|
22 | 23 | */ |
23 | 24 | public function setCookie($name, $value); |
24 | 25 | } |
@@ -151,6 +151,9 @@ |
||
151 | 151 | $this->validate($address, $constraint); |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param string $propertyPath |
|
156 | + */ |
|
154 | 157 | private function createViolation($propertyPath) |
155 | 158 | { |
156 | 159 | return new ConstraintViolation('message', 'template', [], 'root', $propertyPath, 'invalidValue'); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | For the full copyright and license information, please view the LICENSE |
20 | 20 | file that was distributed with this source code. |
21 | -EOF; |
|
21 | +eof; |
|
22 | 22 | |
23 | 23 | HeaderCommentFixer::setHeader($header); |
24 | 24 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | The <info>sylius:user:promote</info> command promotes a user by adding security roles |
39 | 39 | |
40 | 40 | <info>php app/console sylius:user:promote [email protected]</info> |
41 | -EOT |
|
41 | +eot |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | The <info>sylius:user:demote</info> command demotes a user by removing security roles |
39 | 39 | |
40 | 40 | <info>php app/console sylius:user:demote [email protected]</info> |
41 | -EOT |
|
41 | +eot |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 |
@@ -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 |
@@ -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 |
@@ -35,8 +35,12 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param string $serviceId |
38 | + * @return void |
|
38 | 39 | */ |
39 | 40 | public function unmockService($serviceId); |
40 | 41 | |
42 | + /** |
|
43 | + * @return void |
|
44 | + */ |
|
41 | 45 | public function unmockAll(); |
42 | 46 | } |