@@ -195,7 +195,7 @@ |
||
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 | } |
@@ -175,8 +175,8 @@ |
||
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 | }); |
@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -54,11 +54,10 @@ discard block |
||
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 |
||
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); |
@@ -169,7 +169,7 @@ |
||
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; |
@@ -126,7 +126,7 @@ |
||
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'); |