Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBock committed Jun 1, 2021
1 parent 121f6dd commit 2912eab
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions classes/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,29 @@

class Template implements iTemplate {

/**
* @var null|array
*/
/**
* @var null|array
*/
private $templatesPaths = null;

/**
* @var callable
*/
private $loadPaths;
/**
* @var callable
*/
private $loadPaths;

public function __construct(callable $loadPaths) {
$this->loadPaths = $loadPaths;
}
public function __construct( callable $loadPaths ) {
$this->loadPaths = $loadPaths;
}

/**
/**
* @return string[]
*/
public function paths(): array {
if(!is_array($this->templatesPaths)){
$this->templatesPaths = [];
call_user_func($this->loadPaths, $this);
}
if ( ! is_array( $this->templatesPaths ) ) {
$this->templatesPaths = [];
call_user_func( $this->loadPaths, $this );
}

return $this->templatesPaths;
}

Expand Down

0 comments on commit 2912eab

Please sign in to comment.