@@ -202,8 +202,8 @@ |
||
202 | 202 | ->arrayNode('form') |
203 | 203 | ->addDefaultsIfNotSet() |
204 | 204 | ->children() |
205 | - ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end() |
|
206 | - ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end() |
|
205 | + ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end() |
|
206 | + ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end() |
|
207 | 207 | ->end() |
208 | 208 | ->end() |
209 | 209 | ->end() |
@@ -65,7 +65,7 @@ |
||
65 | 65 | $objects = $this->loadFixturesFromFile('books.yml'); |
66 | 66 | |
67 | 67 | $data = |
68 | - <<<EOT |
|
68 | + <<<EOT |
|
69 | 69 | { |
70 | 70 | "title": "Star Wars: Dark Disciple" |
71 | 71 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | EOT; |
65 | 65 | |
66 | - $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
66 | + $this->client->request('PUT', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
67 | 67 | $response = $this->client->getResponse(); |
68 | 68 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
69 | 69 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | } |
83 | 83 | EOT; |
84 | 84 | |
85 | - $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
85 | + $this->client->request('PATCH', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
86 | 86 | $response = $this->client->getResponse(); |
87 | 87 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
88 | 88 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | { |
95 | 95 | $objects = $this->loadFixturesFromFile('books.yml'); |
96 | 96 | |
97 | - $this->client->request('DELETE', '/books/'. $objects["book1"]->getId()); |
|
97 | + $this->client->request('DELETE', '/books/' . $objects["book1"]->getId()); |
|
98 | 98 | $response = $this->client->getResponse(); |
99 | 99 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
100 | 100 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | { |
107 | 107 | $objects = $this->loadFixturesFromFile('books.yml'); |
108 | 108 | |
109 | - $this->client->request('GET', '/books/'. $objects["book1"]->getId()); |
|
109 | + $this->client->request('GET', '/books/' . $objects["book1"]->getId()); |
|
110 | 110 | $response = $this->client->getResponse(); |
111 | 111 | $this->assertResponse($response, 'books/show_response'); |
112 | 112 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | }, |
35 | 35 | "author": "Christie Golden" |
36 | 36 | } |
37 | -EOT; |
|
37 | +eot; |
|
38 | 38 | |
39 | 39 | $this->client->request('POST', '/books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
40 | 40 | $response = $this->client->getResponse(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | }, |
62 | 62 | "author": "Christie Golden" |
63 | 63 | } |
64 | -EOT; |
|
64 | +eot; |
|
65 | 65 | |
66 | 66 | $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
67 | 67 | $response = $this->client->getResponse(); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | { |
81 | 81 | "author": "Christie Golden" |
82 | 82 | } |
83 | -EOT; |
|
83 | +eot; |
|
84 | 84 | |
85 | 85 | $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
86 | 86 | $response = $this->client->getResponse(); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->findDefinition('sylius.registry.grid_driver'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['alias'])) { |
|
35 | + if (!isset($attributes[0]['alias'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->findDefinition('sylius.registry.grid_driver'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['alias'])) { |
|
35 | + if (!isset($attributes[0]['alias'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'form' => [ |
49 | 49 | 'default' => BookTranslationType::class, |
50 | 50 | ], |
51 | - ], |
|
51 | + ], |
|
52 | 52 | ], |
53 | 53 | ], |
54 | 54 | ], |
@@ -51,13 +51,13 @@ |
||
51 | 51 | |
52 | 52 | foreach ($securityRoles as $securityRole) { |
53 | 53 | if (!$user->hasRole($securityRole)) { |
54 | - $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string)$user, $securityRole)); |
|
54 | + $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string) $user, $securityRole)); |
|
55 | 55 | $error = true; |
56 | 56 | continue; |
57 | 57 | } |
58 | 58 | |
59 | 59 | $user->removeRole($securityRole); |
60 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string)$user)); |
|
60 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string) $user)); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | if (!$error) { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
31 | 31 | ->setHelp(<<<EOT |
32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
33 | -EOT |
|
33 | +eot |
|
34 | 34 | ) |
35 | 35 | ; |
36 | 36 | } |
@@ -232,7 +232,7 @@ |
||
232 | 232 | Assert::eq( |
233 | 233 | 1, |
234 | 234 | $this->updatePage->countMembers(), |
235 | - sprintf('Zone %s should have only %s zone member',$zone->getName(), $zoneMember->getCode()) |
|
235 | + sprintf('Zone %s should have only %s zone member', $zone->getName(), $zoneMember->getCode()) |
|
236 | 236 | ); |
237 | 237 | } |
238 | 238 |
@@ -200,7 +200,7 @@ |
||
200 | 200 | */ |
201 | 201 | public function iChangeExchangeRateTo($exchangeRate) |
202 | 202 | { |
203 | - $this->updatePage->changeExchangeRate($exchangeRate); |
|
203 | + $this->updatePage->changeExchangeRate($exchangeRate); |
|
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |