@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | protected $render; |
| 8 | 8 | |
| 9 | - public function __construct(Rendered $render) |
|
| 10 | - { |
|
| 11 | - $this->render = $render; |
|
| 12 | - } |
|
| 9 | + public function __construct(Rendered $render) |
|
| 10 | + { |
|
| 11 | + $this->render = $render; |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | - public function handle($content) |
|
| 15 | - { |
|
| 16 | - return $this->render->handle($content); |
|
| 17 | - } |
|
| 14 | + public function handle($content) |
|
| 15 | + { |
|
| 16 | + return $this->render->handle($content); |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | protected $render; |
| 8 | 8 | |
| 9 | - public function __construct($class) |
|
| 10 | - { |
|
| 11 | - $this->class = $class; |
|
| 12 | - } |
|
| 9 | + public function __construct($class) |
|
| 10 | + { |
|
| 11 | + $this->class = $class; |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | - public function handle($content) |
|
| 15 | - { |
|
| 16 | - return [lcfirst(class_basename(get_class($this->class))) => $content]; |
|
| 17 | - } |
|
| 14 | + public function handle($content) |
|
| 15 | + { |
|
| 16 | + return [lcfirst(class_basename(get_class($this->class))) => $content]; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,21 +4,21 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Subset implements Rendered { |
| 6 | 6 | |
| 7 | - protected $render; |
|
| 7 | + protected $render; |
|
| 8 | 8 | |
| 9 | - public function __construct(Rendered $render) |
|
| 10 | - { |
|
| 11 | - $this->render = $render; |
|
| 12 | - } |
|
| 9 | + public function __construct(Rendered $render) |
|
| 10 | + { |
|
| 11 | + $this->render = $render; |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | - public function handle($content) |
|
| 15 | - { |
|
| 16 | - $subset = lcfirst(class_basename(get_class($this->render->class))); |
|
| 14 | + public function handle($content) |
|
| 15 | + { |
|
| 16 | + $subset = lcfirst(class_basename(get_class($this->render->class))); |
|
| 17 | 17 | |
| 18 | - if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) { |
|
| 19 | - $content = [$content]; |
|
| 20 | - } |
|
| 18 | + if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) { |
|
| 19 | + $content = [$content]; |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - return $this->render->handle($content); |
|
| 23 | - } |
|
| 22 | + return $this->render->handle($content); |
|
| 23 | + } |
|
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | protected $render; |
| 8 | 8 | |
| 9 | - public function __construct(Rendered $render) |
|
| 10 | - { |
|
| 11 | - $this->render = $render; |
|
| 12 | - } |
|
| 9 | + public function __construct(Rendered $render) |
|
| 10 | + { |
|
| 11 | + $this->render = $render; |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | - public function handle($content) |
|
| 15 | - { |
|
| 16 | - return $this->render->handle("#!!" . $content->render() . "!!#"); |
|
| 17 | - } |
|
| 14 | + public function handle($content) |
|
| 15 | + { |
|
| 16 | + return $this->render->handle("#!!" . $content->render() . "!!#"); |
|
| 17 | + } |
|
| 18 | 18 | } |
| 19 | 19 | \ No newline at end of file |