@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
49 | - * @param $id |
|
49 | + * @param string $id |
|
50 | 50 | * |
51 | 51 | * @return object |
52 | 52 | */ |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
75 | - * @param array $headers |
|
75 | + * @param string[] $headers |
|
76 | 76 | * @param array $rows |
77 | 77 | * @param OutputInterface $output |
78 | 78 | */ |
@@ -144,9 +144,9 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * @param OutputInterface $output |
146 | 146 | * @param string $question |
147 | - * @param array $constraints |
|
147 | + * @param \Symfony\Component\Validator\Constraints\NotBlank[] $constraints |
|
148 | 148 | * |
149 | - * @return mixed |
|
149 | + * @return string |
|
150 | 150 | */ |
151 | 151 | protected function askHidden(OutputInterface $output, $question, array $constraints = []) |
152 | 152 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param array $constraints |
160 | 160 | * @param mixed $default |
161 | 161 | * |
162 | - * @return mixed |
|
162 | + * @return string |
|
163 | 163 | */ |
164 | 164 | protected function ask(OutputInterface $output, $question, array $constraints = [], $default = null) |
165 | 165 | { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
170 | - * @param mixed $value |
|
170 | + * @param string $value |
|
171 | 171 | * @param array $constraints |
172 | 172 | * |
173 | 173 | * @return bool |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @param string $default |
196 | 196 | * @param bool $hidden |
197 | 197 | * |
198 | - * @return mixed |
|
198 | + * @return string |
|
199 | 199 | */ |
200 | 200 | private function proceedAskRequest(OutputInterface $output, $question, array $constraints = [], $default = null, $hidden = false) |
201 | 201 | { |
@@ -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 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | /** |
46 | 46 | * Gets customer based on currently logged user. |
47 | 47 | * |
48 | - * @return CustomerInterface|null |
|
48 | + * @return null|\Sylius\Component\Customer\Model\CustomerInterface |
|
49 | 49 | */ |
50 | 50 | public function getCustomer() |
51 | 51 | { |
@@ -12,17 +12,17 @@ |
||
12 | 12 | namespace Sylius\Bundle\CustomerBundle\DependencyInjection; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\CustomerBundle\Form\Type\CustomerGroupType; |
15 | +use Sylius\Bundle\CustomerBundle\Form\Type\CustomerProfileType; |
|
16 | +use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
15 | 17 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
16 | 18 | use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
17 | -use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
|
18 | 19 | use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType; |
19 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerProfileType; |
|
20 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
21 | -use Sylius\Component\Customer\Model\CustomerGroup; |
|
22 | -use Sylius\Component\Resource\Factory\Factory; |
|
20 | +use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
|
23 | 21 | use Sylius\Component\Customer\Model\Customer; |
24 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
22 | +use Sylius\Component\Customer\Model\CustomerGroup; |
|
25 | 23 | use Sylius\Component\Customer\Model\CustomerGroupInterface; |
24 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
25 | +use Sylius\Component\Resource\Factory\Factory; |
|
26 | 26 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
27 | 27 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
28 | 28 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -19,8 +19,8 @@ |
||
19 | 19 | use Sylius\Component\Order\CartActions; |
20 | 20 | use Sylius\Component\Order\Context\CartContextInterface; |
21 | 21 | use Sylius\Component\Order\Model\OrderInterface; |
22 | -use Sylius\Component\Order\Modifier\OrderModifierInterface; |
|
23 | 22 | use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
23 | +use Sylius\Component\Order\Modifier\OrderModifierInterface; |
|
24 | 24 | use Sylius\Component\Resource\ResourceActions; |
25 | 25 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
26 | 26 | use Symfony\Component\HttpFoundation\RedirectResponse; |
@@ -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 | } |
@@ -14,17 +14,17 @@ |
||
14 | 14 | use Sylius\Bundle\PromotionBundle\Controller\PromotionCouponController; |
15 | 15 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionActionType; |
16 | 16 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionCouponType; |
17 | -use Sylius\Bundle\PromotionBundle\Form\Type\PromotionType; |
|
18 | 17 | use Sylius\Bundle\PromotionBundle\Form\Type\PromotionRuleType; |
18 | +use Sylius\Bundle\PromotionBundle\Form\Type\PromotionType; |
|
19 | 19 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
20 | 20 | use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
21 | 21 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
22 | 22 | use Sylius\Component\Promotion\Factory\PromotionCouponFactory; |
23 | +use Sylius\Component\Promotion\Model\Promotion; |
|
23 | 24 | use Sylius\Component\Promotion\Model\PromotionAction; |
24 | 25 | use Sylius\Component\Promotion\Model\PromotionActionInterface; |
25 | 26 | use Sylius\Component\Promotion\Model\PromotionCoupon; |
26 | 27 | use Sylius\Component\Promotion\Model\PromotionCouponInterface; |
27 | -use Sylius\Component\Promotion\Model\Promotion; |
|
28 | 28 | use Sylius\Component\Promotion\Model\PromotionInterface; |
29 | 29 | use Sylius\Component\Promotion\Model\PromotionRule; |
30 | 30 | use Sylius\Component\Promotion\Model\PromotionRuleInterface; |
@@ -12,8 +12,6 @@ |
||
12 | 12 | namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Builder; |
13 | 13 | |
14 | 14 | use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
15 | -use Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Subscriber\DefaultPathSubscriber; |
|
16 | -use Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Subscriber\NameResolverSubscriber; |
|
17 | 15 | use Sylius\Bundle\ResourceBundle\Form\Builder\DefaultFormBuilderInterface; |
18 | 16 | use Sylius\Component\Resource\Metadata\MetadataInterface; |
19 | 17 | use Symfony\Component\Form\FormBuilderInterface; |
@@ -11,9 +11,9 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ReviewBundle\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 | /** |