Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function run(array $parameters = []) |
||
52 | { |
||
53 | $parts = explode('.', $parameters['viewName']); |
||
54 | $file = array_pop($parts); |
||
55 | $path = implode('/', $parts); |
||
56 | $fileViewFinder = View::getFinder(); |
||
57 | |||
58 | $filesystem = new Filesystem(); |
||
59 | $filesystem->mkdir($fileViewFinder->getPaths()[0] . '/' . $path . '/'); |
||
60 | touch($fileViewFinder->getPaths()[0] . '/' . $path . '/' . $file . '.blade.php'); |
||
61 | } |
||
62 | } |
||
63 |