Completed
Branch master (5990e5)
by Christophe
06:03
created
GoogleCharts/Tools/OptionsFormat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function removeRecursivelyNullValue(&$options)
18 18
     {
19
-        $options = array_filter((array)$options, function ($val) {
19
+        $options = array_filter((array)$options, function($val) {
20 20
             return !is_null($val);
21 21
         });
22 22
 
Please login to merge, or discard this patch.
Twig/GoogleChartsExtension.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                     );
133 133
                 }
134 134
 
135
-                $callback = function ($item) {
135
+                $callback = function($item) {
136 136
                     if (!is_string($item)) {
137 137
                         throw new GoogleChartsException('A string is expected for HTML element ID.');
138 138
                     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     private function checkChartType($charts)
160 160
     {
161
-        $callback = function ($item) {
161
+        $callback = function($item) {
162 162
             if (!$item instanceof Chart) {
163 163
                 throw new GoogleChartsException('An instance of Chart or an array of Chart is expected.');
164 164
             }
@@ -175,16 +175,16 @@  discard block
 block discarded – undo
175 175
      */
176 176
     private function loadLibraries($packages)
177 177
     {
178
-        array_walk($packages, function (&$item) {
179
-            $item = '"' . $item . '"';
178
+        array_walk($packages, function(&$item) {
179
+            $item = '"'.$item.'"';
180 180
         });
181 181
         $packages = implode(',', $packages);
182 182
 
183 183
         if (in_array($this->version, array('1', '1.1'))) {
184
-            return 'google.load("visualization", "' . $this->version . '", {packages:[' . $packages . ']});';
184
+            return 'google.load("visualization", "'.$this->version.'", {packages:['.$packages.']});';
185 185
 
186 186
         } else {
187
-            return 'google.charts.load("' . $this->version . '", {packages: [' . $packages . ']});';
187
+            return 'google.charts.load("'.$this->version.'", {packages: ['.$packages.']});';
188 188
         }
189 189
     }
190 190
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
         $js = $this->loadLibraries($packages);
238 238
 
239
-        $js .= $this->startCallback('drawChart' . ucfirst(md5($drawChartName)));
239
+        $js .= $this->startCallback('drawChart'.ucfirst(md5($drawChartName)));
240 240
 
241 241
         foreach ($charts as $chart) {
242 242
             $js .= $chart->startDraw();
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      */
276 276
     public function drawCharts($charts, $elementsID = null)
277 277
     {
278
-        return $this->startCharts($charts, $elementsID) . $this->endCharts($charts);
278
+        return $this->startCharts($charts, $elementsID).$this->endCharts($charts);
279 279
     }
280 280
 
281 281
     /**
Please login to merge, or discard this patch.