Completed
Push — master ( 1f2332...5d68e8 )
by Mykolas
06:24
created
src/Controller/CustomerController.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/DependencyInjection/PTSSyliusReferralExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Repository/CustomerRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Service/ReferralManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Service/ChannelUrlManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.