@@ -26,10 +26,14 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function checkValidationMessageFor($element, $message); |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @return void |
|
| 31 | + */ |
|
| 29 | 32 | public function reset(); |
| 30 | 33 | |
| 31 | 34 | /** |
| 32 | 35 | * @param string $email |
| 36 | + * @return void |
|
| 33 | 37 | */ |
| 34 | 38 | public function specifyEmail($email); |
| 35 | 39 | } |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -20,8 +20,12 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $shippingMethod |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function selectShippingMethod($shippingMethod); |
| 25 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 26 | 30 | public function continueCheckout(); |
| 27 | 31 | } |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @return array |
|
| 61 | + * @return string[] |
|
| 62 | 62 | */ |
| 63 | 63 | public function getRecipients() |
| 64 | 64 | { |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | 'targetEntity' => $subjectClass, |
| 88 | 88 | 'inversedBy' => 'attributes', |
| 89 | 89 | 'joinColumns' => [[ |
| 90 | - 'name' => $subject.'_id', |
|
| 90 | + 'name' => $subject . '_id', |
|
| 91 | 91 | 'referencedColumnName' => $targetEntityMetadata->fieldMappings['id']['columnName'], |
| 92 | 92 | 'nullable' => false, |
| 93 | 93 | 'onDelete' => 'CASCADE', |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | /** |
| 216 | 216 | * @param OutputInterface $output |
| 217 | 217 | * |
| 218 | - * @return mixed |
|
| 218 | + * @return string |
|
| 219 | 219 | */ |
| 220 | 220 | private function getAdministratorPassword(OutputInterface $output) |
| 221 | 221 | { |
@@ -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 | } |
@@ -12,18 +12,14 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\Command; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\AdminUserInterface; |
| 15 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
| 16 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
| 17 | 15 | use Sylius\Component\Locale\Model\LocaleInterface; |
| 18 | -use Sylius\Component\User\Model\UserInterface; |
|
| 19 | 16 | use Symfony\Component\Console\Helper\QuestionHelper; |
| 20 | 17 | use Symfony\Component\Console\Input\InputInterface; |
| 21 | 18 | use Symfony\Component\Console\Output\OutputInterface; |
| 22 | 19 | use Symfony\Component\Console\Question\Question; |
| 23 | -use Symfony\Component\Intl\Intl; |
|
| 20 | +use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 24 | 21 | use Symfony\Component\Validator\Constraints\Email; |
| 25 | 22 | use Symfony\Component\Validator\Constraints\NotBlank; |
| 26 | -use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 27 | 23 | use Webmozart\Assert\Assert; |
| 28 | 24 | |
| 29 | 25 | /** |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -101,6 +101,9 @@ |
||
| 101 | 101 | return $webDirectory; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param string $webDirectory |
|
| 106 | + */ |
|
| 104 | 107 | private function assertFileContent($lines, $webDirectory) |
| 105 | 108 | { |
| 106 | 109 | foreach ($lines as $line) { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | parent::tearDown(); |
| 24 | 24 | |
| 25 | - file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset'.PHP_EOL); |
|
| 25 | + file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset' . PHP_EOL); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask); |
| 59 | 59 | |
| 60 | 60 | sleep(1); |
| 61 | - file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified'); |
|
| 61 | + file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified'); |
|
| 62 | 62 | clearstatcache(); |
| 63 | 63 | |
| 64 | 64 | $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | private function createWebDirectory() |
| 93 | 93 | { |
| 94 | - $webDirectory = $this->getTmpDirPath(self::TEST_CASE).'/web'; |
|
| 94 | + $webDirectory = $this->getTmpDirPath(self::TEST_CASE) . '/web'; |
|
| 95 | 95 | if (!is_dir($webDirectory)) { |
| 96 | 96 | mkdir($webDirectory, 0777, true); |
| 97 | 97 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | list($expectedText, $assetFile) = explode(': ', $line); |
| 112 | 112 | |
| 113 | - $contents = file_get_contents($webDirectory.$assetFile); |
|
| 113 | + $contents = file_get_contents($webDirectory . $assetFile); |
|
| 114 | 114 | |
| 115 | 115 | $this->assertEquals($expectedText, trim($contents)); |
| 116 | 116 | } |