Completed
Push — master ( 634a09...2f4610 )
by David
02:23
created
Controllers/Backend/WbmTagManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
Models/Repository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
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
@@ -133,7 +133,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Subscriber/Frontend/PostDispatch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,9 +139,9 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.