@@ -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 | } |
@@ -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 |
@@ -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 | } |
@@ -16,8 +16,8 @@ |
||
16 | 16 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
17 | 17 | use Sylius\Bundle\ReviewBundle\Form\Type\ReviewType; |
18 | 18 | use Sylius\Component\Resource\Factory\Factory; |
19 | -use Sylius\Component\Review\Model\ReviewerInterface; |
|
20 | 19 | use Sylius\Component\Review\Model\ReviewInterface; |
20 | +use Sylius\Component\Review\Model\ReviewerInterface; |
|
21 | 21 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
22 | 22 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
23 | 23 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | { |
79 | 79 | "code": "USD" |
80 | 80 | } |
81 | -EOT; |
|
81 | +eot; |
|
82 | 82 | |
83 | 83 | $this->client->request('POST', '/api/v1/currencies/', [], [], static::$authorizedHeaderWithContentType, $data); |
84 | 84 |