@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $modules = $qb->getQuery()->getArrayResult(); |
38 | 38 | |
39 | - foreach($modules as &$module){ |
|
39 | + foreach ($modules as &$module) { |
|
40 | 40 | $module['name'] = $this->container->get('snippets') |
41 | 41 | ->getNamespace("backend/plugins/wbm/tagmanager") |
42 | 42 | ->get($module['module']); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | ->setParameter(':moduleName', $module); |
36 | 36 | |
37 | 37 | |
38 | - if($dataLayer){ |
|
38 | + if ($dataLayer) { |
|
39 | 39 | $qb->select( |
40 | 40 | array( |
41 | 41 | 'property.name', |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | unset($property['id']); |
54 | 54 | |
55 | 55 | if (!empty($subProperties)) { |
56 | - if(empty($value)) { |
|
56 | + if (empty($value)) { |
|
57 | 57 | $property = $subProperties; |
58 | 58 | } else { |
59 | 59 | $property = array( |
@@ -133,7 +133,7 @@ |
||
133 | 133 | array_walk_recursive($dataLayer, 'self::castArrayValues'); |
134 | 134 | |
135 | 135 | return "<script>window.dataLayer.push(" . |
136 | - json_encode($dataLayer,($prettyPrint) ? JSON_PRETTY_PRINT : null) . |
|
136 | + json_encode($dataLayer, ($prettyPrint) ? JSON_PRETTY_PRINT : null) . |
|
137 | 137 | ");</script>" . |
138 | 138 | $source; |
139 | 139 | } |
@@ -139,9 +139,9 @@ |
||
139 | 139 | $dataLayer = str_replace($search, $replace, $dataLayer); |
140 | 140 | |
141 | 141 | preg_match('/({"startArrayOf":".*?"},)/i', $dataLayer, $matches); |
142 | - foreach($matches as $match){ |
|
142 | + foreach ($matches as $match) { |
|
143 | 143 | $foreachObj = json_decode(rtrim($match, ',')); |
144 | - if($foreachObj->startArrayOf){ |
|
144 | + if ($foreachObj->startArrayOf) { |
|
145 | 145 | $arguments = explode(' as ', $foreachObj->startArrayOf); |
146 | 146 | $dataLayer = str_replace( |
147 | 147 | $match, |