@@ 312-314 (lines=3) @@ | ||
309 | foreach ($this->getFiles() as $stub => $file) { |
|
310 | $path = $this->module->getModulePath($this->getName()) . $file; |
|
311 | ||
312 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
313 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
314 | } |
|
315 | ||
316 | $this->filesystem->put($path, $this->getStubContents($stub)); |
|
317 | ||
@@ 406-408 (lines=3) @@ | ||
403 | { |
|
404 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
405 | ||
406 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
407 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
408 | } |
|
409 | ||
410 | $this->filesystem->put($path, $this->getStubContents('json')); |
|
411 |