@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | ->orWhere('customer.firstName LIKE :query') |
35 | 35 | ->orWhere('customer.lastName LIKE :query') |
36 | 36 | ->orWhere('o.username LIKE :query') |
37 | - ->setParameter('query', '%'.$criteria['query'].'%') |
|
37 | + ->setParameter('query', '%' . $criteria['query'] . '%') |
|
38 | 38 | ; |
39 | 39 | } |
40 | 40 | if (isset($criteria['enabled'])) { |
@@ -63,9 +63,9 @@ discard block |
||
63 | 63 | { |
64 | 64 | $queryBuilder = $this->createQueryBuilder('o'); |
65 | 65 | $queryBuilder |
66 | - ->leftJoin('o'.'.customer', 'customer') |
|
66 | + ->leftJoin('o' . '.customer', 'customer') |
|
67 | 67 | ->addSelect('customer') |
68 | - ->where($queryBuilder->expr()->eq('o'.'.id', ':id')) |
|
68 | + ->where($queryBuilder->expr()->eq('o' . '.id', ':id')) |
|
69 | 69 | ->setParameter('id', $id) |
70 | 70 | ; |
71 | 71 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | { |
113 | 113 | $groupBy = ''; |
114 | 114 | foreach ($configuration['groupBy'] as $groupByArray) { |
115 | - $groupBy = $groupByArray.'(date)'.' '.$groupBy; |
|
115 | + $groupBy = $groupByArray . '(date)' . ' ' . $groupBy; |
|
116 | 116 | } |
117 | 117 | $groupBy = substr($groupBy, 0, -1); |
118 | 118 | $groupBy = str_replace(' ', ', ', $groupBy); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $queryBuilder = $this->createQueryBuilder('o'); |
146 | 146 | |
147 | 147 | $queryBuilder |
148 | - ->leftJoin('o'.'.customer', 'customer') |
|
148 | + ->leftJoin('o' . '.customer', 'customer') |
|
149 | 149 | ->andWhere($queryBuilder->expr()->eq('customer.emailCanonical', ':email')) |
150 | 150 | ->setParameter('email', $email) |
151 | 151 | ; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $email = $this->getHelper('dialog')->askAndValidate( |
33 | 33 | $output, |
34 | 34 | 'Please enter an email:', |
35 | - function($email) { |
|
35 | + function ($email) { |
|
36 | 36 | if (empty($email)) { |
37 | 37 | throw new \Exception('Email can not be empty'); |
38 | 38 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $email = $this->getHelper('dialog')->askAndValidate( |
77 | 77 | $output, |
78 | 78 | 'Please enter an email:', |
79 | - function($email) { |
|
79 | + function ($email) { |
|
80 | 80 | if (empty($email)) { |
81 | 81 | throw new \Exception('Email can not be empty'); |
82 | 82 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $password = $this->getHelper('dialog')->askHiddenResponseAndValidate( |
92 | 92 | $output, |
93 | 93 | 'Please choose a password:', |
94 | - function($password) { |
|
94 | + function ($password) { |
|
95 | 95 | if (empty($password)) { |
96 | 96 | throw new \Exception('Password can not be empty'); |
97 | 97 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function load(array $config, ContainerBuilder $container) |
31 | 31 | { |
32 | 32 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
33 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
33 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
34 | 34 | |
35 | 35 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
36 | 36 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function prepend(ContainerBuilder $container) |
63 | 63 | { |
64 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
64 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
65 | 65 | |
66 | 66 | $this->prependHwiOauth($container, $loader); |
67 | 67 | } |
@@ -28,7 +28,7 @@ |
||
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 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
34 | 34 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
33 | 33 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function load(array $config, ContainerBuilder $container) |
31 | 31 | { |
32 | 32 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
33 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
33 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
34 | 34 | |
35 | 35 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
36 | 36 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | return !isset($array['operator']); |
56 | 56 | }) |
57 | 57 | ->then(function ($array) { |
58 | - $array['operator'] = 'sylius.inventory_operator.'.($array['track_inventory'] ? 'default' : 'noop'); |
|
58 | + $array['operator'] = 'sylius.inventory_operator.' . ($array['track_inventory'] ? 'default' : 'noop'); |
|
59 | 59 | |
60 | 60 | return $array; |
61 | 61 | }) |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function load(array $config, ContainerBuilder $container) |
31 | 31 | { |
32 | 32 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
33 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
33 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
34 | 34 | |
35 | 35 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
36 | 36 |