@@ 361-363 (lines=3) @@ | ||
358 | foreach ($this->getFiles() as $stub => $file) { |
|
359 | $path = $this->module->getModulePath($this->getName()) . $file; |
|
360 | ||
361 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
362 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
363 | } |
|
364 | ||
365 | $this->filesystem->put($path, $this->getStubContents($stub)); |
|
366 | ||
@@ 470-472 (lines=3) @@ | ||
467 | { |
|
468 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
469 | ||
470 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
471 | $this->filesystem->makeDirectory($dir, 0775, true); |
|
472 | } |
|
473 | ||
474 | $this->filesystem->put($path, $this->getStubContents('json')); |
|
475 |