| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | protected function writeConfig($namespace, $resourceName) |
||
| 46 | { |
||
| 47 | $stub = file_get_contents( |
||
| 48 | __DIR__.'/../Stubs/ResourceConfig.php' |
||
| 49 | ); |
||
| 50 | |||
| 51 | $stub = $this->replace('{{Namespace}}', $namespace, $stub); |
||
| 52 | |||
| 53 | $name = $resourceName.'Settings'; |
||
| 54 | |||
| 55 | $stub = $this->replace('{{ClassName}}', $name, $stub); |
||
| 56 | |||
| 57 | file_put_contents( |
||
| 58 | base_path("app/Settings/{$name}.php"), |
||
| 59 | $stub |
||
| 60 | ); |
||
| 63 |