Completed
Pull Request — master (#60)
by
unknown
34s
created
Services/TagManagerVariables.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
             return $compiler->compileString($string);
196 196
         } catch (\Exception $exception) {
197 197
             return json_encode([
198
-               'error' => sprintf('Error while compiling the dataLayer: %s', $exception->getMessage()),
198
+                'error' => sprintf('Error while compiling the dataLayer: %s', $exception->getMessage()),
199 199
             ]);
200 200
         }
201 201
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,8 +175,8 @@
 block discarded – undo
175 175
     {
176 176
         $variables = $this->getVariables();
177 177
 
178
-        array_walk_recursive($variables, static function (&$item) {
179
-            if(gettype($item) === 'string') {
178
+        array_walk_recursive($variables, static function(&$item) {
179
+            if (gettype($item) === 'string') {
180 180
                 $item = htmlspecialchars($item);
181 181
             }
182 182
         });
Please login to merge, or discard this patch.
Controllers/Backend/WbmTagManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function listAction()
38 38
     {
39
-        $id = (int) $this->Request()->getParam('id', null);
39
+        $id = (int)$this->Request()->getParam('id', null);
40 40
         $module = $this->Request()->getParam('moduleName', null);
41 41
 
42 42
         $data = $this->container->get('models')->getRepository(Property::class)->getChildrenList($id, $module);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public function updateAction()
74 74
     {
75 75
         $params = $this->Request()->getPost();
76
-        $id = (int) $this->Request()->get('id');
76
+        $id = (int)$this->Request()->get('id');
77 77
 
78 78
         /** @var Property $property */
79 79
         $property = $this->container->get('models')->getRepository(Property::class)->find($id);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function deleteAction()
94 94
     {
95
-        $id = (int) $this->Request()->get('id');
95
+        $id = (int)$this->Request()->get('id');
96 96
 
97 97
         /** @var Property $property */
98 98
         $property = $this->container->get('models')->getRepository(Property::class)->find($id);
Please login to merge, or discard this patch.
Controllers/Backend/WbmTagManagerModules.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,11 +54,10 @@  discard block
 block discarded – undo
54 54
     public function saveAction()
55 55
     {
56 56
         $params = $this->Request()->getPost();
57
-        $id = (int) $this->Request()->get('id');
57
+        $id = (int)$this->Request()->get('id');
58 58
 
59 59
         $module = $id ?
60
-            $this->container->get('models')->getRepository(Module::class)->find($id) :
61
-            new Module();
60
+            $this->container->get('models')->getRepository(Module::class)->find($id) : new Module();
62 61
 
63 62
         if ($module->getId() && $module->getModule() !== $params['module']) {
64 63
             $this->container->get('dbal_connection')->update(
@@ -92,7 +91,7 @@  discard block
 block discarded – undo
92 91
      */
93 92
     public function deleteAction()
94 93
     {
95
-        $id = (int) $this->Request()->get('id');
94
+        $id = (int)$this->Request()->get('id');
96 95
 
97 96
         /** @var Module $module */
98 97
         $module = $this->container->get('models')->getRepository(Module::class)->find($id);
Please login to merge, or discard this patch.
Models/Repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
         $modules = [];
170 170
 
171 171
         foreach ($data as $row) {
172
-            $modules[$row['module']] = isset($row['predispatch']) ? (bool) $row['predispatch'] : false;
172
+            $modules[$row['module']] = isset($row['predispatch']) ? (bool)$row['predispatch'] : false;
173 173
         }
174 174
 
175 175
         return $modules;
Please login to merge, or discard this patch.
Subscriber/Frontend/FilterRender.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
         $extendedUrlParams = trim($this->pluginConfig('wbmExtendedURLParameter'));
127 127
         $headTag = '';
128 128
         if (!$this->pluginConfig('wbmTagManagerCookieConsent')) {
129
-            if($this->pluginConfig('wbmTagManagerPagespeed')){
129
+            if ($this->pluginConfig('wbmTagManagerPagespeed')) {
130 130
                 $headTag = file_get_contents($this->pluginDir . '/Resources/tags/pagespeed/head.html');
131 131
             } else {
132 132
                 $headTag = file_get_contents($this->pluginDir . '/Resources/tags/head.html');
Please login to merge, or discard this patch.