Completed
Push — master ( 6472ae...90bf1e )
by Christophe
04:16
created
GoogleCharts/Options/AnnotationChart/AnnotationChartOptions.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,6 @@
 block discarded – undo
95 95
      *    - A country, specified by its ISO 3166-1 alpha-2 code, e.g., 'AU' for Australia.
96 96
      *    - A state in the United States, specified by its ISO 3166-2:US code, e.g., 'US-AL' for Alabama. Note that
97 97
      *      the resolution option must be set to either 'provinces' or 'metros'.
98
-
99 98
      * @var string
100 99
      */
101 100
     protected $region;
Please login to merge, or discard this patch.
Twig/GoogleChartsExtension.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                     );
160 160
                 }
161 161
 
162
-                $callback = function ($item) {
162
+                $callback = function($item) {
163 163
                     if (!is_string($item)) {
164 164
                         throw new GoogleChartsException('A string is expected for HTML element ID.');
165 165
                     }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     private function checkChartType($charts)
187 187
     {
188
-        $callback = function ($item) {
188
+        $callback = function($item) {
189 189
             if (!$item instanceof Chart) {
190 190
                 throw new GoogleChartsException('An instance of Chart or an array of Chart is expected.');
191 191
             }
@@ -202,19 +202,19 @@  discard block
 block discarded – undo
202 202
      */
203 203
     private function loadLibraries($packages)
204 204
     {
205
-        array_walk($packages, function (&$item) {
206
-            $item = '"' . $item . '"';
205
+        array_walk($packages, function(&$item) {
206
+            $item = '"'.$item.'"';
207 207
         });
208 208
 
209
-        ($this->language) ? $language = ', language: "' . $this->language . '"' : $language = '';
209
+        ($this->language) ? $language = ', language: "'.$this->language.'"' : $language = '';
210 210
 
211
-        $load = '"' . $this->version . '", {packages:[' . implode(',', $packages) . ']' . $language . '}';
211
+        $load = '"'.$this->version.'", {packages:['.implode(',', $packages).']'.$language.'}';
212 212
 
213 213
         if ($this->version == '1' || $this->version == '1.1') {
214
-            return 'google.load("visualization", ' . $load . ');';
214
+            return 'google.load("visualization", '.$load.');';
215 215
 
216 216
         } else {
217
-            return 'google.charts.load(' . $load . ');';
217
+            return 'google.charts.load('.$load.');';
218 218
         }
219 219
     }
220 220
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
         $js = $this->loadLibraries($packages);
268 268
 
269
-        $js .= $this->startCallback('drawChart' . ucfirst(md5($drawChartName)));
269
+        $js .= $this->startCallback('drawChart'.ucfirst(md5($drawChartName)));
270 270
 
271 271
         foreach ($charts as $chart) {
272 272
             $js .= $chart->startDraw();
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
      */
306 306
     public function drawCharts($charts, $elementsID = null)
307 307
     {
308
-        return $this->startCharts($charts, $elementsID) . $this->endCharts($charts);
308
+        return $this->startCharts($charts, $elementsID).$this->endCharts($charts);
309 309
     }
310 310
 
311 311
     /**
Please login to merge, or discard this patch.