Completed
Branch master (40e8a1)
by ENOVA SANTE
12:15
created
Twig/TagcommanderExtension.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -107,6 +107,9 @@
 block discarded – undo
107 107
         return $this;
108 108
     }
109 109
 
110
+    /**
111
+     * @param string $event_name
112
+     */
110 113
     public function tcEvent($event_name, $values = array(), $tracker = null)
111 114
     {
112 115
         if (is_null($tracker)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,14 +143,14 @@  discard block
 block discarded – undo
143 143
 
144 144
         if ($container['version']) {
145 145
             $container_version = $container['version'];
146
-            $src.= sprintf('?%s', $container_version);
146
+            $src .= sprintf('?%s', $container_version);
147 147
         }
148 148
 
149 149
         $result = sprintf('<script type="text/javascript" src="%s"></script>', $src);
150 150
 
151 151
         if ($container['alternative']) {
152 152
             $container_alternative = $container['alternative'];
153
-            $result.= sprintf('<noscript><iframe src="%s" width="1" height="1" rel="noindex,nofollow"></iframe></noscript>', $container_alternative);
153
+            $result .= sprintf('<noscript><iframe src="%s" width="1" height="1" rel="noindex,nofollow"></iframe></noscript>', $container_alternative);
154 154
         }
155 155
 
156 156
         $event = new DeployContainer($container_name, $container_script, $container_version, $container_alternative);
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
     public function getFunctions()
166 166
     {
167 167
         return array(
168
-            new \Twig_SimpleFunction('tc_vars',      array($this, 'tcVars'),      array('is_safe' => array('html'))),
168
+            new \Twig_SimpleFunction('tc_vars', array($this, 'tcVars'), array('is_safe' => array('html'))),
169 169
             new \Twig_SimpleFunction('tc_container', array($this, 'tcContainer'), array('is_safe' => array('html'))),
170
-            new \Twig_SimpleFunction('tc_event',     array($this, 'tcEvent'),     array('is_safe' => array('html'))),
170
+            new \Twig_SimpleFunction('tc_event', array($this, 'tcEvent'), array('is_safe' => array('html'))),
171 171
         );
172 172
     }
173 173
 
Please login to merge, or discard this patch.
Tests/DependencyInjection/MeupTagcommanderExtensionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@
 block discarded – undo
107 107
             )
108 108
         ;
109 109
 
110
-        $this->assertTrue($container->hasDefinition($this->root . ".datalayer"));
111
-        $this->assertTrue($container->hasDefinition($this->root . ".twig_extension"));
112
-        $this->assertTrue($container->hasDefinition($this->root . ".datacollector_subscriber"));
110
+        $this->assertTrue($container->hasDefinition($this->root.".datalayer"));
111
+        $this->assertTrue($container->hasDefinition($this->root.".twig_extension"));
112
+        $this->assertTrue($container->hasDefinition($this->root.".datacollector_subscriber"));
113 113
     }
114 114
 }
115 115
\ No newline at end of file
Please login to merge, or discard this patch.
DependencyInjection/MeupTagcommanderExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
         );
35 35
 
36 36
         $this
37
-            ->loadDataLayer    ($config, $container)
37
+            ->loadDataLayer($config, $container)
38 38
             ->loadTwigExtension($config, $container)
39
-            ->loadCollector    ($config, $container)
39
+            ->loadCollector($config, $container)
40 40
         ;
41 41
     }
42 42
 
Please login to merge, or discard this patch.
DataCollector/DataLayerCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     {
85 85
         $count = 0;
86 86
         foreach ($this->data['events'] as $events) {
87
-            $count+= count($events);
87
+            $count += count($events);
88 88
         }
89 89
         return $count;
90 90
     }
Please login to merge, or discard this patch.
EventDispatcher/Subscriber/CollectorSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         return array(
22 22
             'tc_container' => array('onTcContainer', 0),
23
-            'tc_event'     => array('onTcEvent',     0),
23
+            'tc_event'     => array('onTcEvent', 0),
24 24
         );
25 25
     }
26 26
 
Please login to merge, or discard this patch.