@@ -30,9 +30,9 @@ discard block |
||
| 30 | 30 | * @return Renderer |
| 31 | 31 | */ |
| 32 | 32 | public function create($baseDir = null, array $vars = []) { |
| 33 | - if($baseDir === null) { |
|
| 33 | + if ($baseDir === null) { |
|
| 34 | 34 | $baseDir = $this->baseDir; |
| 35 | - } elseif($this->baseDir !== null) { |
|
| 35 | + } elseif ($this->baseDir !== null) { |
|
| 36 | 36 | $baseDir = Directories::concat($this->baseDir, $baseDir); |
| 37 | 37 | } |
| 38 | 38 | return call_user_func($this->callback, $baseDir, $vars); |
@@ -44,9 +44,9 @@ discard block |
||
| 44 | 44 | * @return $this |
| 45 | 45 | */ |
| 46 | 46 | public function deriveFactory($baseDir = null, array $vars = []) { |
| 47 | - if($baseDir === null) { |
|
| 47 | + if ($baseDir === null) { |
|
| 48 | 48 | $baseDir = $this->baseDir; |
| 49 | - } elseif($this->baseDir !== null) { |
|
| 49 | + } elseif ($this->baseDir !== null) { |
|
| 50 | 50 | $baseDir = Directories::concat($this->baseDir, $baseDir); |
| 51 | 51 | } |
| 52 | 52 | return new static($this->callback, $baseDir, array_merge($this->vars, $vars)); |