@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | ); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | - $callback = function ($item) { |
|
| 156 | + $callback = function($item) { |
|
| 157 | 157 | if (!is_string($item)) { |
| 158 | 158 | throw new GoogleChartsException('A string is expected for HTML element ID.'); |
| 159 | 159 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | private function checkChartType($charts) |
| 180 | 180 | { |
| 181 | - $callback = function ($item) { |
|
| 181 | + $callback = function($item) { |
|
| 182 | 182 | if (!$item instanceof Chart) { |
| 183 | 183 | throw new GoogleChartsException('An instance of Chart or an array of Chart is expected.'); |
| 184 | 184 | } |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | */ |
| 196 | 196 | private function loadLibraries($packages) |
| 197 | 197 | { |
| 198 | - array_walk($packages, function (&$item) { |
|
| 198 | + array_walk($packages, function(&$item) { |
|
| 199 | 199 | $item = "'".$item."'"; |
| 200 | 200 | }); |
| 201 | 201 | |
@@ -16,7 +16,7 @@ |
||
| 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 | |
@@ -95,7 +95,6 @@ |
||
| 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 | * |
| 100 | 99 | * @var string |
| 101 | 100 | */ |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | $lastKeyValue = key($row); |
| 74 | 74 | foreach ($row as $key => $value) { |
| 75 | 75 | if ($value instanceof \DateTime) { |
| 76 | - $js .= 'new Date('.$value->format('Y').', '.($value->format('n') - 1).', '. |
|
| 76 | + $js .= 'new Date('.$value->format('Y').', '.($value->format('n')-1).', '. |
|
| 77 | 77 | $value->format('d').', '.$value->format('H').', '.$value->format('i').', '. |
| 78 | 78 | $value->format('s').')'; |
| 79 | 79 | } else { |