@@ -4,20 +4,20 @@ |
||
4 | 4 | |
5 | 5 | 'options' => [ |
6 | 6 | 'available_types' => [ |
7 | - 'title' => ['text','align','style'], |
|
7 | + 'title' => ['text', 'align', 'style'], |
|
8 | 8 | 'legend' => ['itemStyle'], |
9 | - 'plotOptions' => ['plotOption','shared','valueSuffix','series'], |
|
10 | - 'subtitle' => ['text','style'], |
|
11 | - 'xAxis' => ['title','categories','tickWidth','gridLineWidth','labels'], |
|
12 | - 'yAxis' => ['title','label','showFirstLabel'], |
|
13 | - 'chart' => ['style','backgroundColor','borderColor','borderRadius','borderWidth','marginTop','className'], |
|
9 | + 'plotOptions' => ['plotOption', 'shared', 'valueSuffix', 'series'], |
|
10 | + 'subtitle' => ['text', 'style'], |
|
11 | + 'xAxis' => ['title', 'categories', 'tickWidth', 'gridLineWidth', 'labels'], |
|
12 | + 'yAxis' => ['title', 'label', 'showFirstLabel'], |
|
13 | + 'chart' => ['style', 'backgroundColor', 'borderColor', 'borderRadius', 'borderWidth', 'marginTop', 'className'], |
|
14 | 14 | 'credits' => ['enabled'], |
15 | 15 | ], |
16 | 16 | ], |
17 | 17 | |
18 | 18 | 'series' => [ |
19 | 19 | 'available_types' => [ |
20 | - 'line' => ['name','data','zIndex','color','type','fillOpacity','lineWidth'], |
|
20 | + 'line' => ['name', 'data', 'zIndex', 'color', 'type', 'fillOpacity', 'lineWidth'], |
|
21 | 21 | ] |
22 | 22 | ] |
23 | 23 | ]; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $availableTypes = array_keys($this->config['options']['available_types']); |
29 | 29 | |
30 | - if (! in_array($type, $availableTypes)) { |
|
30 | + if (!in_array($type, $availableTypes)) { |
|
31 | 31 | throw new UnavailableOptionException; |
32 | 32 | } |
33 | 33 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | { |
43 | 43 | $availableTypes = array_keys($this->config['series']['available_types']); |
44 | 44 | |
45 | - if (! in_array($type, $availableTypes)) { |
|
45 | + if (!in_array($type, $availableTypes)) { |
|
46 | 46 | throw new UnavailableSerieException; |
47 | 47 | } |
48 | 48 |