@@ -16,16 +16,16 @@ |
||
16 | 16 | */ |
17 | 17 | class Radar extends Chart implements ChartInterface |
18 | 18 | { |
19 | - /** |
|
20 | - * The internal type of chart. |
|
21 | - */ |
|
22 | - const TYPE = 'radar'; |
|
19 | + /** |
|
20 | + * The internal type of chart. |
|
21 | + */ |
|
22 | + const TYPE = 'radar'; |
|
23 | 23 | |
24 | - /** |
|
25 | - * The list of models that should be used for this chart type. |
|
26 | - */ |
|
27 | - const MODEL = [ |
|
28 | - 'dataset' => RadarDataSet::class, |
|
29 | - 'options' => RadarOptions::class, |
|
30 | - ]; |
|
24 | + /** |
|
25 | + * The list of models that should be used for this chart type. |
|
26 | + */ |
|
27 | + const MODEL = [ |
|
28 | + 'dataset' => RadarDataSet::class, |
|
29 | + 'options' => RadarOptions::class, |
|
30 | + ]; |
|
31 | 31 | } |
@@ -16,16 +16,16 @@ |
||
16 | 16 | */ |
17 | 17 | class PolarArea extends Chart implements ChartInterface |
18 | 18 | { |
19 | - /** |
|
20 | - * The internal type of chart. |
|
21 | - */ |
|
22 | - const TYPE = 'polarArea'; |
|
19 | + /** |
|
20 | + * The internal type of chart. |
|
21 | + */ |
|
22 | + const TYPE = 'polarArea'; |
|
23 | 23 | |
24 | - /** |
|
25 | - * The list of models that should be used for this chart type. |
|
26 | - */ |
|
27 | - const MODEL = [ |
|
28 | - 'dataset' => PolarAreaDataSet::class, |
|
29 | - 'options' => PolarAreaOptions::class, |
|
30 | - ]; |
|
24 | + /** |
|
25 | + * The list of models that should be used for this chart type. |
|
26 | + */ |
|
27 | + const MODEL = [ |
|
28 | + 'dataset' => PolarAreaDataSet::class, |
|
29 | + 'options' => PolarAreaOptions::class, |
|
30 | + ]; |
|
31 | 31 | } |
@@ -13,16 +13,16 @@ |
||
13 | 13 | */ |
14 | 14 | class Line extends Chart |
15 | 15 | { |
16 | - /** |
|
17 | - * The internal type of chart. |
|
18 | - */ |
|
19 | - const TYPE = 'line'; |
|
16 | + /** |
|
17 | + * The internal type of chart. |
|
18 | + */ |
|
19 | + const TYPE = 'line'; |
|
20 | 20 | |
21 | - /** |
|
22 | - * The list of models that should be used for this chart type. |
|
23 | - */ |
|
24 | - const MODEL = [ |
|
25 | - 'dataset' => LineDataSet::class, |
|
26 | - 'options' => LineOptions::class, |
|
27 | - ]; |
|
21 | + /** |
|
22 | + * The list of models that should be used for this chart type. |
|
23 | + */ |
|
24 | + const MODEL = [ |
|
25 | + 'dataset' => LineDataSet::class, |
|
26 | + 'options' => LineOptions::class, |
|
27 | + ]; |
|
28 | 28 | } |
@@ -8,8 +8,8 @@ |
||
8 | 8 | */ |
9 | 9 | class Doughnut extends Pie |
10 | 10 | { |
11 | - /** |
|
12 | - * The internal type of chart. |
|
13 | - */ |
|
14 | - const TYPE = 'doughnut'; |
|
11 | + /** |
|
12 | + * The internal type of chart. |
|
13 | + */ |
|
14 | + const TYPE = 'doughnut'; |
|
15 | 15 | } |
@@ -15,16 +15,16 @@ |
||
15 | 15 | */ |
16 | 16 | class Bar extends Chart |
17 | 17 | { |
18 | - /** |
|
19 | - * The internal type of chart. |
|
20 | - */ |
|
21 | - const TYPE = 'bar'; |
|
18 | + /** |
|
19 | + * The internal type of chart. |
|
20 | + */ |
|
21 | + const TYPE = 'bar'; |
|
22 | 22 | |
23 | - /** |
|
24 | - * The list of models that should be used for this chart type. |
|
25 | - */ |
|
26 | - const MODEL = [ |
|
27 | - 'dataset' => BarDataSet::class, |
|
28 | - 'options' => BarOptions::class, |
|
29 | - ]; |
|
23 | + /** |
|
24 | + * The list of models that should be used for this chart type. |
|
25 | + */ |
|
26 | + const MODEL = [ |
|
27 | + 'dataset' => BarDataSet::class, |
|
28 | + 'options' => BarOptions::class, |
|
29 | + ]; |
|
30 | 30 | } |
@@ -16,16 +16,16 @@ |
||
16 | 16 | */ |
17 | 17 | class Scatter extends Chart |
18 | 18 | { |
19 | - /** |
|
20 | - * The internal type of chart. |
|
21 | - */ |
|
22 | - const TYPE = 'scatter'; |
|
19 | + /** |
|
20 | + * The internal type of chart. |
|
21 | + */ |
|
22 | + const TYPE = 'scatter'; |
|
23 | 23 | |
24 | - /** |
|
25 | - * The list of models that should be used for this chart type. |
|
26 | - */ |
|
27 | - const MODEL = [ |
|
28 | - 'dataset' => ScatterDataSet::class, |
|
29 | - 'options' => ScatterOptions::class, |
|
30 | - ]; |
|
24 | + /** |
|
25 | + * The list of models that should be used for this chart type. |
|
26 | + */ |
|
27 | + const MODEL = [ |
|
28 | + 'dataset' => ScatterDataSet::class, |
|
29 | + 'options' => ScatterOptions::class, |
|
30 | + ]; |
|
31 | 31 | } |
@@ -8,8 +8,8 @@ |
||
8 | 8 | */ |
9 | 9 | class HorizontalBar extends Bar |
10 | 10 | { |
11 | - /** |
|
12 | - * The internal type of chart. |
|
13 | - */ |
|
14 | - const TYPE = 'horizontalBar'; |
|
11 | + /** |
|
12 | + * The internal type of chart. |
|
13 | + */ |
|
14 | + const TYPE = 'horizontalBar'; |
|
15 | 15 | } |
@@ -16,16 +16,16 @@ |
||
16 | 16 | */ |
17 | 17 | class Pie extends Chart implements ChartInterface |
18 | 18 | { |
19 | - /** |
|
20 | - * The internal type of chart. |
|
21 | - */ |
|
22 | - const TYPE = 'pie'; |
|
19 | + /** |
|
20 | + * The internal type of chart. |
|
21 | + */ |
|
22 | + const TYPE = 'pie'; |
|
23 | 23 | |
24 | - /** |
|
25 | - * The list of models that should be used for this chart type. |
|
26 | - */ |
|
27 | - const MODEL = [ |
|
28 | - 'dataset' => PieDataSet::class, |
|
29 | - 'options' => PieOptions::class, |
|
30 | - ]; |
|
24 | + /** |
|
25 | + * The list of models that should be used for this chart type. |
|
26 | + */ |
|
27 | + const MODEL = [ |
|
28 | + 'dataset' => PieDataSet::class, |
|
29 | + 'options' => PieOptions::class, |
|
30 | + ]; |
|
31 | 31 | } |
@@ -11,25 +11,25 @@ |
||
11 | 11 | */ |
12 | 12 | class DataSetCollection extends ArrayAccess implements \JsonSerializable |
13 | 13 | { |
14 | - /** |
|
15 | - * @return array |
|
16 | - */ |
|
17 | - public function getArrayCopy() |
|
18 | - { |
|
19 | - $rows = []; |
|
20 | - foreach ($this->data as $row) { |
|
21 | - /** @var DataSet $row */ |
|
22 | - $rows[] = $row->getArrayCopy(); |
|
23 | - } |
|
14 | + /** |
|
15 | + * @return array |
|
16 | + */ |
|
17 | + public function getArrayCopy() |
|
18 | + { |
|
19 | + $rows = []; |
|
20 | + foreach ($this->data as $row) { |
|
21 | + /** @var DataSet $row */ |
|
22 | + $rows[] = $row->getArrayCopy(); |
|
23 | + } |
|
24 | 24 | |
25 | - return $rows; |
|
26 | - } |
|
25 | + return $rows; |
|
26 | + } |
|
27 | 27 | |
28 | - /** |
|
29 | - * @return string |
|
30 | - */ |
|
31 | - public function jsonSerialize() |
|
32 | - { |
|
33 | - return Json::encode($this->getArrayCopy()); |
|
34 | - } |
|
28 | + /** |
|
29 | + * @return string |
|
30 | + */ |
|
31 | + public function jsonSerialize() |
|
32 | + { |
|
33 | + return Json::encode($this->getArrayCopy()); |
|
34 | + } |
|
35 | 35 | } |
@@ -16,10 +16,10 @@ |
||
16 | 16 | */ |
17 | 17 | public function getArrayCopy() |
18 | 18 | { |
19 | - $rows = []; |
|
19 | + $rows = [ ]; |
|
20 | 20 | foreach ($this->data as $row) { |
21 | 21 | /** @var DataSet $row */ |
22 | - $rows[] = $row->getArrayCopy(); |
|
22 | + $rows[ ] = $row->getArrayCopy(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | return $rows; |