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