@@ -154,7 +154,7 @@ |
||
| 154 | 154 | * @param InputInterface $input |
| 155 | 155 | * @param OutputInterface $output |
| 156 | 156 | * |
| 157 | - * @return mixed |
|
| 157 | + * @return string |
|
| 158 | 158 | */ |
| 159 | 159 | private function getAdministratorPassword(InputInterface $input, OutputInterface $output) |
| 160 | 160 | { |
@@ -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 | } |
@@ -12,19 +12,15 @@ |
||
| 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 | 20 | use Symfony\Component\Console\Style\SymfonyStyle; |
| 24 | -use Symfony\Component\Intl\Intl; |
|
| 21 | +use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 25 | 22 | use Symfony\Component\Validator\Constraints\Email; |
| 26 | 23 | use Symfony\Component\Validator\Constraints\NotBlank; |
| 27 | -use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 28 | 24 | use Webmozart\Assert\Assert; |
| 29 | 25 | |
| 30 | 26 | /** |
@@ -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 | |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\EventListener; |
| 13 | 13 | |
| 14 | +use Sylius\Component\Customer\Context\CustomerContextInterface; |
|
| 14 | 15 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
| 15 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
| 16 | -use Sylius\Component\Customer\Context\CustomerContextInterface; |
|
| 17 | 17 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -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\EventListener; |
| 15 | 15 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @return array |
|
| 97 | + * @return \Generator |
|
| 98 | 98 | */ |
| 99 | 99 | private function getLocales() |
| 100 | 100 | { |
@@ -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\Fixture\Factory; |
| 15 | 15 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @return array |
|
| 97 | + * @return \Generator |
|
| 98 | 98 | */ |
| 99 | 99 | private function getLocales() |
| 100 | 100 | { |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Sylius\Component\Core\Formatter\StringInflector; |
| 16 | 16 | use Sylius\Component\Locale\Model\LocaleInterface; |
| 17 | 17 | use Sylius\Component\Product\Model\ProductAttributeInterface; |
| 18 | -use Sylius\Component\Product\Model\ProductOptionInterface; |
|
| 19 | 18 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 20 | 19 | use Symfony\Component\OptionsResolver\Options; |
| 21 | 20 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -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\Fixture\Factory; |
| 15 | 15 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @return array |
|
| 97 | + * @return \Generator |
|
| 98 | 98 | */ |
| 99 | 99 | private function getLocales() |
| 100 | 100 | { |
@@ -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\Fixture\Factory; |
| 15 | 15 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @return array |
|
| 97 | + * @return \Generator |
|
| 98 | 98 | */ |
| 99 | 99 | private function getLocales() |
| 100 | 100 | { |
@@ -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\Fixture\Factory; |
| 15 | 15 | |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\Fixture; |
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
| 15 | -use Sylius\Component\Addressing\Factory\ZoneFactoryInterface; |
|
| 16 | 15 | use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; |
| 16 | +use Sylius\Component\Addressing\Factory\ZoneFactoryInterface; |
|
| 17 | 17 | use Sylius\Component\Addressing\Model\CountryInterface; |
| 18 | 18 | use Sylius\Component\Addressing\Model\ProvinceInterface; |
| 19 | 19 | use Sylius\Component\Addressing\Model\ZoneInterface; |
@@ -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\Fixture; |
| 15 | 15 | |
@@ -22,6 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @param LocaleInterface $locale |
| 24 | 24 | * @param CurrencyInterface $currency |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function setup(LocaleInterface $locale, CurrencyInterface $currency); |
| 27 | 28 | } |
@@ -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\Installer\Setup; |
| 15 | 15 | |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param ReviewerInterface $author |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function removeReviewerReviews(ReviewerInterface $author); |
| 25 | 26 | } |
@@ -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\Remover; |
| 15 | 15 | |