@@ -20,6 +20,12 @@ |
||
20 | 20 | protected $help; |
21 | 21 | protected $required; |
22 | 22 | |
23 | + /** |
|
24 | + * @param string $label |
|
25 | + * @param boolean $fulfilled |
|
26 | + * @param string $expected |
|
27 | + * @param string $help |
|
28 | + */ |
|
23 | 29 | public function __construct($label, $fulfilled, $expected, $actual, $required = true, $help = null) |
24 | 30 | { |
25 | 31 | $this->label = $label; |
@@ -19,6 +19,9 @@ |
||
19 | 19 | protected $label; |
20 | 20 | protected $requirements = []; |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $label |
|
24 | + */ |
|
22 | 25 | public function __construct($label) |
23 | 26 | { |
24 | 27 | $this->label = $label; |
@@ -12,8 +12,8 @@ |
||
12 | 12 | namespace Sylius\Bundle\MetadataBundle\DependencyInjection; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\MetadataBundle\Controller\MetadataController; |
15 | -use Sylius\Bundle\MetadataBundle\Model\MetadataContainer; |
|
16 | 15 | use Sylius\Bundle\MetadataBundle\Form\Type\MetadataContainerType; |
16 | +use Sylius\Bundle\MetadataBundle\Model\MetadataContainer; |
|
17 | 17 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
18 | 18 | use Sylius\Component\Metadata\Factory\MetadataContainerFactory; |
19 | 19 | use Sylius\Component\Metadata\Model\MetadataContainerInterface; |
@@ -14,13 +14,13 @@ |
||
14 | 14 | use Sylius\Bundle\OrderBundle\Controller\AdjustmentController; |
15 | 15 | use Sylius\Bundle\OrderBundle\Controller\CommentController; |
16 | 16 | use Sylius\Bundle\OrderBundle\Controller\OrderItemController; |
17 | -use Sylius\Component\Order\Factory\OrderItemUnitFactory; |
|
18 | 17 | use Sylius\Bundle\OrderBundle\Form\Type\AdjustmentType; |
19 | 18 | use Sylius\Bundle\OrderBundle\Form\Type\CommentType; |
20 | 19 | use Sylius\Bundle\OrderBundle\Form\Type\OrderItemType; |
21 | 20 | use Sylius\Bundle\OrderBundle\Form\Type\OrderType; |
22 | 21 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
23 | 22 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
23 | +use Sylius\Component\Order\Factory\OrderItemUnitFactory; |
|
24 | 24 | use Sylius\Component\Order\Model\Adjustment; |
25 | 25 | use Sylius\Component\Order\Model\AdjustmentInterface; |
26 | 26 | use Sylius\Component\Order\Model\Comment; |
@@ -58,7 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * {@inheritdoc} |
60 | 60 | * |
61 | - * @return IdentityInterface|null |
|
61 | + * @return IdentityInterface |
|
62 | 62 | */ |
63 | 63 | public function getDetails() |
64 | 64 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\PricingBundle\DependencyInjection; |
13 | 13 | |
14 | -use Symfony\Component\Config\Definition\Processor; |
|
15 | 14 | use Symfony\Component\Config\FileLocator; |
16 | 15 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
17 | 16 | use Symfony\Component\DependencyInjection\Definition; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ProductBundle\DependencyInjection; |
13 | 13 | |
14 | -use Sylius\Bundle\CoreBundle\Form\Type\LegacyProductType; |
|
15 | 14 | use Sylius\Bundle\ProductBundle\Form\Type\ProductTranslationType; |
16 | 15 | use Sylius\Bundle\ProductBundle\Form\Type\ProductType; |
17 | 16 | use Sylius\Bundle\ProductBundle\Form\Type\ProductVariantGenerationType; |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use Sylius\Component\Product\Model\OptionValueTranslationInterface; |
31 | 31 | use Sylius\Component\Product\Model\Variant; |
32 | 32 | use Sylius\Component\Product\Model\VariantInterface; |
33 | -use Sylius\Component\Resource\Factory; |
|
34 | 33 | use Symfony\Component\Config\FileLocator; |
35 | 34 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
36 | 35 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * |
49 | 49 | * @param string $permissionCode |
50 | 50 | * |
51 | - * @return string |
|
51 | + * @return boolean |
|
52 | 52 | */ |
53 | 53 | public function isGranted($permissionCode) |
54 | 54 | { |