@@ -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 | |
@@ -26,12 +26,12 @@ |
||
| 26 | 26 | require ini_get('auto_prepend_file'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -if (is_file($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.$_SERVER['SCRIPT_NAME'])) { |
|
| 29 | +if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['SCRIPT_NAME'])) { |
|
| 30 | 30 | return false; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $_SERVER = array_merge($_SERVER, $_ENV); |
| 34 | -$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'app_test_cached.php'; |
|
| 34 | +$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'app_test_cached.php'; |
|
| 35 | 35 | |
| 36 | 36 | require 'app_test_cached.php'; |
| 37 | 37 | |
@@ -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 | |
@@ -9,7 +9,7 @@ discard block |
||
| 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\UserBundle\Command; |
| 15 | 15 | |
@@ -55,13 +55,13 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | foreach ($securityRoles as $securityRole) { |
| 57 | 57 | if ($user->hasRole($securityRole)) { |
| 58 | - $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string)$user, $securityRole)); |
|
| 58 | + $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string) $user, $securityRole)); |
|
| 59 | 59 | $error = true; |
| 60 | 60 | continue; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $user->addRole($securityRole); |
| 64 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string)$user)); |
|
| 64 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string) $user)); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | if (!$error) { |
@@ -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 | |
@@ -9,7 +9,7 @@ discard block |
||
| 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\UserBundle\Command; |
| 15 | 15 | |
@@ -55,13 +55,13 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | foreach ($securityRoles as $securityRole) { |
| 57 | 57 | if (!$user->hasRole($securityRole)) { |
| 58 | - $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string)$user, $securityRole)); |
|
| 58 | + $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string) $user, $securityRole)); |
|
| 59 | 59 | $error = true; |
| 60 | 60 | continue; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $user->removeRole($securityRole); |
| 64 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string)$user)); |
|
| 64 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string) $user)); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | if (!$error) { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 46 | 46 | { |
| 47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -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(); |
@@ -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 | } |
@@ -91,6 +91,6 @@ |
||
| 91 | 91 | |
| 92 | 92 | <info>php %command.full_name% web --symlink --relative</info> |
| 93 | 93 | |
| 94 | -EOT; |
|
| 94 | +eot; |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -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\ThemeBundle\Command; |
| 15 | 15 | |
@@ -18,7 +18,14 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | interface UpdatePageInterface extends BaseUpdatePageInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function enable(); |
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 22 | 29 | public function disable(); |
| 23 | 30 | |
| 24 | 31 | /** |
@@ -28,6 +35,7 @@ discard block |
||
| 28 | 35 | |
| 29 | 36 | /** |
| 30 | 37 | * @param string $firstName |
| 38 | + * @return void |
|
| 31 | 39 | */ |
| 32 | 40 | public function changeFirstName($firstName); |
| 33 | 41 | |
@@ -38,6 +46,7 @@ discard block |
||
| 38 | 46 | |
| 39 | 47 | /** |
| 40 | 48 | * @param string $lastName |
| 49 | + * @return void |
|
| 41 | 50 | */ |
| 42 | 51 | public function changeLastName($lastName); |
| 43 | 52 | |
@@ -48,11 +57,13 @@ discard block |
||
| 48 | 57 | |
| 49 | 58 | /** |
| 50 | 59 | * @param string $email |
| 60 | + * @return void |
|
| 51 | 61 | */ |
| 52 | 62 | public function changeEmail($email); |
| 53 | 63 | |
| 54 | 64 | /** |
| 55 | 65 | * @param string $password |
| 66 | + * @return void |
|
| 56 | 67 | */ |
| 57 | 68 | public function changePassword($password); |
| 58 | 69 | |
@@ -61,6 +72,9 @@ discard block |
||
| 61 | 72 | */ |
| 62 | 73 | public function getPassword(); |
| 63 | 74 | |
| 75 | + /** |
|
| 76 | + * @return void |
|
| 77 | + */ |
|
| 64 | 78 | public function subscribeToTheNewsletter(); |
| 65 | 79 | |
| 66 | 80 | /** |
@@ -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\Behat\Page\Admin\Customer; |
| 15 | 15 | |
@@ -21,19 +21,25 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @param string $firstName |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function specifyFirstName($firstName); |
| 26 | 27 | |
| 27 | 28 | /** |
| 28 | 29 | * @param string $lastName |
| 30 | + * @return void |
|
| 29 | 31 | */ |
| 30 | 32 | public function specifyLastName($lastName); |
| 31 | 33 | |
| 32 | 34 | /** |
| 33 | 35 | * @param string $email |
| 36 | + * @return void |
|
| 34 | 37 | */ |
| 35 | 38 | public function specifyEmail($email); |
| 36 | 39 | |
| 40 | + /** |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 37 | 43 | public function saveChanges(); |
| 38 | 44 | |
| 39 | 45 | /** |
@@ -46,6 +52,9 @@ discard block |
||
| 46 | 52 | */ |
| 47 | 53 | public function checkValidationMessageFor($element, $message); |
| 48 | 54 | |
| 55 | + /** |
|
| 56 | + * @return void |
|
| 57 | + */ |
|
| 49 | 58 | public function subscribeToTheNewsletter(); |
| 50 | 59 | |
| 51 | 60 | /** |
@@ -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\Behat\Page\Shop\Account; |
| 15 | 15 | |