@@ -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 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | 'inversedBy' => 'reviews', |
87 | 87 | 'joinColumns' => [ |
88 | 88 | [ |
89 | - 'name' => $subject.'_id', |
|
89 | + 'name' => $subject . '_id', |
|
90 | 90 | 'referencedColumnName' => $reviewableEntityMetadata->fieldMappings['id']['columnName'], |
91 | 91 | 'nullable' => false, |
92 | 92 | 'onDelete' => 'CASCADE', |
@@ -45,7 +45,7 @@ |
||
45 | 45 | SessionInterface $session, |
46 | 46 | OrderRepositoryInterface $orderRepository, |
47 | 47 | OrderInterface $cart |
48 | - ) { |
|
48 | + ) { |
|
49 | 49 | $session->has('session_key_name')->willReturn(true); |
50 | 50 | $session->get('session_key_name')->willReturn(12345); |
51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | SessionInterface $session, |
46 | 46 | OrderRepositoryInterface $orderRepository, |
47 | 47 | OrderInterface $cart |
48 | - ) { |
|
48 | + ) { |
|
49 | 49 | $session->has('session_key_name')->willReturn(true); |
50 | 50 | $session->get('session_key_name')->willReturn(12345); |
51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | public function getFunctions() |
39 | 39 | { |
40 | 40 | return [ |
41 | - new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']), |
|
41 | + new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']), |
|
42 | 42 | ]; |
43 | 43 | } |
44 | 44 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function load(array $config, ContainerBuilder $container) |
29 | 29 | { |
30 | 30 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | |
33 | 33 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
34 | 34 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return; |
91 | 91 | } |
92 | 92 | |
93 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
93 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
94 | 94 | $loader->load('resource_integration.xml'); |
95 | 95 | |
96 | 96 | $container->prependExtensionConfig('sylius_resource', [ |
@@ -37,8 +37,8 @@ |
||
37 | 37 | public function getFunctions() |
38 | 38 | { |
39 | 39 | return [ |
40 | - new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | - new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
40 | + new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | + new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
42 | 42 | ]; |
43 | 43 | } |
44 | 44 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $builder->add($option->getCode(), sprintf('sylius_%s_option_value_choice', $this->variableName), [ |
46 | 46 | 'label' => $option->getName(), |
47 | 47 | 'option' => $option, |
48 | - 'property_path' => '['.$i.']', |
|
48 | + 'property_path' => '[' . $i . ']', |
|
49 | 49 | ]); |
50 | 50 | } |
51 | 51 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $builder->add($option->getCode(), sprintf('sylius_%s_option_value_choice', $this->variableName), [ |
46 | 46 | 'label' => $option->getName(), |
47 | 47 | 'option' => $option, |
48 | - 'property_path' => '['.$i.']', |
|
48 | + 'property_path' => '[' . $i . ']', |
|
49 | 49 | ]); |
50 | 50 | } |
51 | 51 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | */ |
98 | 98 | private function getAttributeForm(AttributeInterface $attribute) |
99 | 99 | { |
100 | - $attributeForm = 'sylius_attribute_type_'.$attribute->getType(); |
|
100 | + $attributeForm = 'sylius_attribute_type_' . $attribute->getType(); |
|
101 | 101 | |
102 | 102 | $form = $this |
103 | 103 | ->get('form.factory') |