@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | class Render implements rendered { |
6 | 6 | |
7 | - /** |
|
8 | - * [handle description] |
|
9 | - * @param string $key |
|
10 | - * @param string $content |
|
11 | - * @return array |
|
12 | - */ |
|
13 | - public function handle($key, $content) |
|
14 | - { |
|
15 | - return [$key => $content]; |
|
16 | - } |
|
7 | + /** |
|
8 | + * [handle description] |
|
9 | + * @param string $key |
|
10 | + * @param string $content |
|
11 | + * @return array |
|
12 | + */ |
|
13 | + public function handle($key, $content) |
|
14 | + { |
|
15 | + return [$key => $content]; |
|
16 | + } |
|
17 | 17 | } |
@@ -4,40 +4,40 @@ |
||
4 | 4 | |
5 | 5 | class Subset implements Rendered { |
6 | 6 | |
7 | - protected $render; |
|
8 | - protected $cascade = null; |
|
7 | + protected $render; |
|
8 | + protected $cascade = null; |
|
9 | 9 | |
10 | - /** |
|
11 | - * [__construct description] |
|
12 | - * @param \EnergieProduction\Chart\Rendered\Rendered $render |
|
13 | - */ |
|
14 | - public function __construct(Rendered $render) |
|
15 | - { |
|
16 | - $this->render = $render; |
|
17 | - } |
|
10 | + /** |
|
11 | + * [__construct description] |
|
12 | + * @param \EnergieProduction\Chart\Rendered\Rendered $render |
|
13 | + */ |
|
14 | + public function __construct(Rendered $render) |
|
15 | + { |
|
16 | + $this->render = $render; |
|
17 | + } |
|
18 | 18 | |
19 | - /** |
|
20 | - * [setCascade description] |
|
21 | - * @param string |
|
22 | - * @return void |
|
23 | - */ |
|
24 | - public function setCascade($cascade = null) |
|
25 | - { |
|
26 | - $this->cascade = $cascade; |
|
27 | - } |
|
19 | + /** |
|
20 | + * [setCascade description] |
|
21 | + * @param string |
|
22 | + * @return void |
|
23 | + */ |
|
24 | + public function setCascade($cascade = null) |
|
25 | + { |
|
26 | + $this->cascade = $cascade; |
|
27 | + } |
|
28 | 28 | |
29 | - /** |
|
30 | - * [handle description] |
|
31 | - * @param string $key |
|
32 | - * @param string $content |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - public function handle($key, $content) |
|
36 | - { |
|
37 | - if ($key == 'series' && (! $this->cascade || starts_with($this->cascade, 'series.'))) { |
|
38 | - $content = [$content]; |
|
39 | - } |
|
29 | + /** |
|
30 | + * [handle description] |
|
31 | + * @param string $key |
|
32 | + * @param string $content |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + public function handle($key, $content) |
|
36 | + { |
|
37 | + if ($key == 'series' && (! $this->cascade || starts_with($this->cascade, 'series.'))) { |
|
38 | + $content = [$content]; |
|
39 | + } |
|
40 | 40 | |
41 | - return $this->render->handle($key, $content); |
|
42 | - } |
|
41 | + return $this->render->handle($key, $content); |
|
42 | + } |
|
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function handle($key, $content) |
36 | 36 | { |
37 | - if ($key == 'series' && (! $this->cascade || starts_with($this->cascade, 'series.'))) { |
|
37 | + if ($key == 'series' && (!$this->cascade || starts_with($this->cascade, 'series.'))) { |
|
38 | 38 | $content = [$content]; |
39 | 39 | } |
40 | 40 |
@@ -10,19 +10,19 @@ |
||
10 | 10 | * [__construct description] |
11 | 11 | * @param \EnergieProduction\Chart\Rendered\Rendered $render |
12 | 12 | */ |
13 | - public function __construct(Rendered $render) |
|
14 | - { |
|
15 | - $this->render = $render; |
|
16 | - } |
|
13 | + public function __construct(Rendered $render) |
|
14 | + { |
|
15 | + $this->render = $render; |
|
16 | + } |
|
17 | 17 | |
18 | - /** |
|
19 | - * [handle description] |
|
20 | - * @param string $key |
|
21 | - * @param string $content |
|
22 | - * @return array |
|
23 | - */ |
|
24 | - public function handle($key, $content) |
|
25 | - { |
|
26 | - return $this->render->handle($key, $content); |
|
27 | - } |
|
18 | + /** |
|
19 | + * [handle description] |
|
20 | + * @param string $key |
|
21 | + * @param string $content |
|
22 | + * @return array |
|
23 | + */ |
|
24 | + public function handle($key, $content) |
|
25 | + { |
|
26 | + return $this->render->handle($key, $content); |
|
27 | + } |
|
28 | 28 | } |
@@ -10,19 +10,19 @@ |
||
10 | 10 | * [__construct description] |
11 | 11 | * @param \EnergieProduction\Chart\Rendered\Rendered $render |
12 | 12 | */ |
13 | - public function __construct(Rendered $render) |
|
14 | - { |
|
15 | - $this->render = $render; |
|
16 | - } |
|
13 | + public function __construct(Rendered $render) |
|
14 | + { |
|
15 | + $this->render = $render; |
|
16 | + } |
|
17 | 17 | |
18 | - /** |
|
19 | - * [handle description] |
|
20 | - * @param string $key |
|
21 | - * @param string $content |
|
22 | - * @return array |
|
23 | - */ |
|
24 | - public function handle($key, $content) |
|
25 | - { |
|
26 | - return $this->render->handle($key, "#!!" . $content . "!!#"); |
|
27 | - } |
|
18 | + /** |
|
19 | + * [handle description] |
|
20 | + * @param string $key |
|
21 | + * @param string $content |
|
22 | + * @return array |
|
23 | + */ |
|
24 | + public function handle($key, $content) |
|
25 | + { |
|
26 | + return $this->render->handle($key, "#!!" . $content . "!!#"); |
|
27 | + } |
|
28 | 28 | } |