@@ -10,18 +10,18 @@ |
||
| 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 | 18 | /** |
| 19 | 19 | * [handle description] |
| 20 | 20 | * @param mixed $content |
| 21 | 21 | * @return array |
| 22 | 22 | */ |
| 23 | - public function handle($content) |
|
| 24 | - { |
|
| 25 | - return $this->render->handle("#!!" . $content->render() . "!!#"); |
|
| 26 | - } |
|
| 23 | + public function handle($content) |
|
| 24 | + { |
|
| 25 | + return $this->render->handle("#!!" . $content->render() . "!!#"); |
|
| 26 | + } |
|
| 27 | 27 | } |
| 28 | 28 | \ No newline at end of file |
@@ -4,30 +4,30 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Subset implements Rendered { |
| 6 | 6 | |
| 7 | - protected $render; |
|
| 7 | + protected $render; |
|
| 8 | 8 | |
| 9 | - /** |
|
| 10 | - * [__construct description] |
|
| 11 | - * @param \EnergieProduction\Chart\Rendered\Rendered $render |
|
| 12 | - */ |
|
| 13 | - public function __construct(Rendered $render) |
|
| 14 | - { |
|
| 15 | - $this->render = $render; |
|
| 16 | - } |
|
| 9 | + /** |
|
| 10 | + * [__construct description] |
|
| 11 | + * @param \EnergieProduction\Chart\Rendered\Rendered $render |
|
| 12 | + */ |
|
| 13 | + public function __construct(Rendered $render) |
|
| 14 | + { |
|
| 15 | + $this->render = $render; |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * [handle description] |
|
| 20 | - * @param \mixed $content |
|
| 21 | - * @return array |
|
| 22 | - */ |
|
| 23 | - public function handle($content) |
|
| 24 | - { |
|
| 25 | - $subset = lcfirst(class_basename(get_class($this->render->class))); |
|
| 18 | + /** |
|
| 19 | + * [handle description] |
|
| 20 | + * @param \mixed $content |
|
| 21 | + * @return array |
|
| 22 | + */ |
|
| 23 | + public function handle($content) |
|
| 24 | + { |
|
| 25 | + $subset = lcfirst(class_basename(get_class($this->render->class))); |
|
| 26 | 26 | |
| 27 | - if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) { |
|
| 28 | - $content = [$content]; |
|
| 29 | - } |
|
| 27 | + if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) { |
|
| 28 | + $content = [$content]; |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | - return $this->render->handle($content); |
|
| 32 | - } |
|
| 31 | + return $this->render->handle($content); |
|
| 32 | + } |
|
| 33 | 33 | } |
| 34 | 34 | \ No newline at end of file |
@@ -10,18 +10,18 @@ |
||
| 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 | 18 | /** |
| 19 | 19 | * [handle description] |
| 20 | 20 | * @param string $content |
| 21 | 21 | * @return array |
| 22 | 22 | */ |
| 23 | - public function handle($content) |
|
| 24 | - { |
|
| 25 | - return $this->render->handle($content); |
|
| 26 | - } |
|
| 23 | + public function handle($content) |
|
| 24 | + { |
|
| 25 | + return $this->render->handle($content); |
|
| 26 | + } |
|
| 27 | 27 | } |
@@ -10,18 +10,18 @@ |
||
| 10 | 10 | * [__construct description] |
| 11 | 11 | * @param mixed $class |
| 12 | 12 | */ |
| 13 | - public function __construct($class) |
|
| 14 | - { |
|
| 15 | - $this->class = $class; |
|
| 16 | - } |
|
| 13 | + public function __construct($class) |
|
| 14 | + { |
|
| 15 | + $this->class = $class; |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * [__construct description] |
| 20 | 20 | * @param string $content |
| 21 | 21 | * @return array |
| 22 | 22 | */ |
| 23 | - public function handle($content) |
|
| 24 | - { |
|
| 25 | - return [lcfirst(class_basename(get_class($this->class))) => $content]; |
|
| 26 | - } |
|
| 23 | + public function handle($content) |
|
| 24 | + { |
|
| 25 | + return [lcfirst(class_basename(get_class($this->class))) => $content]; |
|
| 26 | + } |
|
| 27 | 27 | } |
@@ -10,9 +10,9 @@ discard block |
||
| 10 | 10 | protected $criteriaList; |
| 11 | 11 | public $cascade = null; |
| 12 | 12 | |
| 13 | - /** |
|
| 14 | - * [__construct description] |
|
| 15 | - */ |
|
| 13 | + /** |
|
| 14 | + * [__construct description] |
|
| 15 | + */ |
|
| 16 | 16 | public function __construct() |
| 17 | 17 | { |
| 18 | 18 | $this->criteriaList = collect(); |
@@ -45,10 +45,10 @@ discard block |
||
| 45 | 45 | return $render->handle($formatedSubset); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * [setCascade description] |
|
| 50 | - * @param string $cascade |
|
| 51 | - */ |
|
| 48 | + /** |
|
| 49 | + * [setCascade description] |
|
| 50 | + * @param string $cascade |
|
| 51 | + */ |
|
| 52 | 52 | public function setCascade($cascade) |
| 53 | 53 | { |
| 54 | 54 | $this->cascade = $cascade; |