@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $this->metadata->getName() => $newResource, |
92 | 92 | 'form' => $form->createView(), |
93 | 93 | ]) |
94 | - ->setTemplate($configuration->getTemplate(ResourceActions::CREATE . '.html')); |
|
94 | + ->setTemplate($configuration->getTemplate(ResourceActions::CREATE.'.html')); |
|
95 | 95 | |
96 | 96 | return $this->viewHandler->handle($configuration, $view); |
97 | 97 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | if ($configuration->isHtmlRequest()) { |
120 | 120 | $view |
121 | - ->setTemplate($configuration->getTemplate(ResourceActions::SHOW . '.html')) |
|
121 | + ->setTemplate($configuration->getTemplate(ResourceActions::SHOW.'.html')) |
|
122 | 122 | ->setTemplateVar($this->metadata->getName()) |
123 | 123 | ->setData([ |
124 | 124 | 'configuration' => $configuration, |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | |
176 | 176 | if ($configuration->isHtmlRequest()) { |
177 | 177 | $view |
178 | - ->setTemplate($configuration->getTemplate(ResourceActions::SHOW . '.html')) |
|
178 | + ->setTemplate($configuration->getTemplate(ResourceActions::SHOW.'.html')) |
|
179 | 179 | ->setTemplateVar($this->metadata->getName()) |
180 | 180 | ->setData([ |
181 | 181 | 'configuration' => $configuration, |
@@ -158,8 +158,7 @@ |
||
158 | 158 | $translator->trans('app.messages.success.changedEnroller') |
159 | 159 | ); |
160 | 160 | return $this->redirectToRoute('sylius_admin_customer_show', ['id' => $id]); |
161 | - } |
|
162 | - else { |
|
161 | + } else { |
|
163 | 162 | throw new InvalidArgumentException("Invalid request. Can't choose customer as his own enroller"); |
164 | 163 | } |
165 | 164 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function load(array $config, ContainerBuilder $container): void |
18 | 18 | { |
19 | 19 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
20 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
20 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
21 | 21 | |
22 | 22 | $loader->load('services.yaml'); |
23 | 23 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | ->setParameter('enroller', $enroller) |
24 | 24 | ->getQuery()->getSingleScalarResult(); |
25 | 25 | |
26 | - $maxPages = ceil($count/$limit); |
|
26 | + $maxPages = ceil($count / $limit); |
|
27 | 27 | if ($maxPages == 0) { |
28 | 28 | $maxPages = 1; |
29 | 29 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | class ReferralManager |
13 | 13 | { |
14 | - static private $expirationDays = 7 * (24*60*60); // 7 days (h*m*s) |
|
14 | + static private $expirationDays = 7 * (24 * 60 * 60); // 7 days (h*m*s) |
|
15 | 15 | |
16 | 16 | /** @var SessionStorage */ |
17 | 17 | private $session; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | public function getReferrerFromSession() |
65 | 65 | { |
66 | - if($this->session->has('referrer')) { |
|
66 | + if ($this->session->has('referrer')) { |
|
67 | 67 | $saved = json_decode($this->session->get('referrer'), true); |
68 | 68 | return $this->customerRepo->findOneBy(['id' => $saved['id']]); |
69 | 69 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | $scheme = $splitUrl[0]; |
171 | 171 | $urlToBeSplit = $splitUrl[1]; |
172 | 172 | $urlParts['scheme'] = $scheme; |
173 | - $urlParts['host'] = substr($urlToBeSplit,0, strpos($urlToBeSplit,'/')); |
|
173 | + $urlParts['host'] = substr($urlToBeSplit, 0, strpos($urlToBeSplit, '/')); |
|
174 | 174 | if ($basePath && $basePath !== '') { |
175 | 175 | $urlParts['basePath'] = $basePath; |
176 | 176 | } |
@@ -116,7 +116,7 @@ |
||
116 | 116 | |
117 | 117 | private function getDefaultChannel() |
118 | 118 | { |
119 | - $filter = array_filter($this->channelPaths, function ($channel) { |
|
119 | + $filter = array_filter($this->channelPaths, function($channel) { |
|
120 | 120 | return $channel['default']; |
121 | 121 | }); |
122 | 122 | if (sizeof($filter) === 1) { |