| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | protected function createVirtualFile ($frontMatter = array(), $body = "Body Text", $classType) |
||
| 58 | { |
||
| 59 | $fm = (empty($frontMatter)) ? '' : Yaml::dump($frontMatter, 2); |
||
| 60 | |||
| 61 | $this->dummyFile |
||
| 62 | ->setContent(sprintf("---\n%s\n---\n\n%s", $fm, $body)) |
||
| 63 | ->at($this->rootDir); |
||
| 64 | |||
| 65 | return (new $classType($this->dummyFile->url())); |
||
| 66 | } |
||
| 67 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.