@@ -55,7 +55,7 @@ |
||
55 | 55 | ->setDescription('Installs Sylius in your preferred environment.') |
56 | 56 | ->setHelp(<<<EOT |
57 | 57 | The <info>%command.name%</info> command installs Sylius. |
58 | -EOT |
|
58 | +eot |
|
59 | 59 | ) |
60 | 60 | ; |
61 | 61 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Command; |
15 | 15 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | ->setDescription('Checks if all Sylius requirements are satisfied.') |
28 | 28 | ->setHelp(<<<EOT |
29 | 29 | The <info>%command.name%</info> command checks system requirements. |
30 | -EOT |
|
30 | +eot |
|
31 | 31 | ) |
32 | 32 | ; |
33 | 33 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Command; |
15 | 15 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | ->setDescription('Install Sylius database.') |
28 | 28 | ->setHelp(<<<EOT |
29 | 29 | The <info>%command.name%</info> command creates Sylius database. |
30 | -EOT |
|
30 | +eot |
|
31 | 31 | ) |
32 | 32 | ; |
33 | 33 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Command; |
15 | 15 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | ->setDescription('Install sample data into Sylius.') |
30 | 30 | ->setHelp(<<<EOT |
31 | 31 | The <info>%command.name%</info> command loads the sample data for Sylius. |
32 | -EOT |
|
32 | +eot |
|
33 | 33 | ) |
34 | 34 | ; |
35 | 35 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Command; |
15 | 15 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | ->setDescription('Installs all Sylius assets.') |
27 | 27 | ->setHelp(<<<EOT |
28 | 28 | The <info>%command.name%</info> command downloads and installs all Sylius media assets. |
29 | -EOT |
|
29 | +eot |
|
30 | 30 | ) |
31 | 31 | ; |
32 | 32 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Command; |
15 | 15 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ->setDescription('Sylius configuration setup.') |
47 | 47 | ->setHelp(<<<EOT |
48 | 48 | The <info>%command.name%</info> command allows user to configure basic Sylius data. |
49 | -EOT |
|
49 | +eot |
|
50 | 50 | ) |
51 | 51 | ; |
52 | 52 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Command; |
15 | 15 |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * @param InputInterface $input |
160 | 160 | * @param OutputInterface $output |
161 | 161 | * |
162 | - * @return mixed |
|
162 | + * @return string|null |
|
163 | 163 | */ |
164 | 164 | private function getAdministratorPassword(InputInterface $input, OutputInterface $output) |
165 | 165 | { |
@@ -19,9 +19,9 @@ |
||
19 | 19 | use Symfony\Component\Console\Output\OutputInterface; |
20 | 20 | use Symfony\Component\Console\Question\Question; |
21 | 21 | use Symfony\Component\Console\Style\SymfonyStyle; |
22 | +use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
22 | 23 | use Symfony\Component\Validator\Constraints\Email; |
23 | 24 | use Symfony\Component\Validator\Constraints\NotBlank; |
24 | -use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
25 | 25 | use Webmozart\Assert\Assert; |
26 | 26 | |
27 | 27 | final class SetupCommand extends AbstractInstallCommand |
@@ -55,7 +55,7 @@ |
||
55 | 55 | To show the metadata for a resource, pass its alias: |
56 | 56 | |
57 | 57 | $ php %command.full_name% sylius.user |
58 | -EOT |
|
58 | +eot |
|
59 | 59 | ); |
60 | 60 | $this->addArgument('resource', InputArgument::OPTIONAL, 'Resource to debug'); |
61 | 61 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ResourceBundle\Command; |
15 | 15 |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $objects = $this->loadFixturesFromFile('books.yml'); |
77 | 77 | |
78 | 78 | $data = |
79 | - <<<EOT |
|
79 | + <<<EOT |
|
80 | 80 | { |
81 | 81 | "author": "Christie Golden" |
82 | 82 | } |
@@ -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(); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is part of the Sylius package. |
15 | 15 | * |
@@ -85,7 +85,7 @@ |
||
85 | 85 | $objects = $this->loadFixturesFromFile('comic_books.yml'); |
86 | 86 | |
87 | 87 | $data = |
88 | - <<<EOT |
|
88 | + <<<EOT |
|
89 | 89 | { |
90 | 90 | "authorFirstName": "Joe", |
91 | 91 | "authorLastName": "Kelly" |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | "authorFirstName": "Joe", |
32 | 32 | "authorLastName": "Kelly" |
33 | 33 | } |
34 | -EOT; |
|
34 | +eot; |
|
35 | 35 | |
36 | 36 | $this->client->request('POST', '/v1/comic-books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
37 | 37 | $response = $this->client->getResponse(); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | "authorFirstName": "Joe", |
51 | 51 | "authorLastName": "Kelly" |
52 | 52 | } |
53 | -EOT; |
|
53 | +eot; |
|
54 | 54 | |
55 | 55 | $this->client->request('POST', '/v1.2/comic-books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
56 | 56 | $response = $this->client->getResponse(); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | "authorFirstName": "Joe", |
72 | 72 | "authorLastName": "Kelly" |
73 | 73 | } |
74 | -EOT; |
|
74 | +eot; |
|
75 | 75 | |
76 | 76 | $this->client->request('PUT', '/v1/comic-books/' . $objects['comic-book1']->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
77 | 77 | $response = $this->client->getResponse(); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | "authorFirstName": "Joe", |
92 | 92 | "authorLastName": "Kelly" |
93 | 93 | } |
94 | -EOT; |
|
94 | +eot; |
|
95 | 95 | |
96 | 96 | $this->client->request('PATCH', '/v1/comic-books/' . $objects['comic-book1']->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
97 | 97 | $response = $this->client->getResponse(); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is part of the Sylius package. |
15 | 15 | * |