| Conditions | 4 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | 2 | private function findTemplatesInFolder($dir) |
|
| 59 | { |
||
| 60 | 2 | $templates = array(); |
|
| 61 | |||
| 62 | 2 | if (is_dir($dir)) { |
|
| 63 | 2 | $finder = new Finder(); |
|
| 64 | 2 | foreach ($finder->files()->followLinks()->in($dir) as $file) { |
|
| 65 | 2 | $template = $this->parser->parse($file->getRelativePathname()); |
|
| 66 | 2 | if (false !== $template) { |
|
| 67 | 2 | $templates[] = $template; |
|
| 68 | } |
||
| 69 | } |
||
| 70 | } |
||
| 71 | |||
| 72 | 2 | return $templates; |
|
| 73 | } |
||
| 74 | } |
||
| 75 |