@@ -23,25 +23,25 @@ |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | $this->publishes([ |
26 | - __DIR__.'/config' => realpath('config'), |
|
26 | + __DIR__ . '/config' => realpath('config'), |
|
27 | 27 | ], 'repository-generator'); |
28 | 28 | |
29 | 29 | if (null === $this->app['config']->get('repository')) { |
30 | - $this->app['config']->set('repository', require __DIR__.'/config/repository.php'); |
|
30 | + $this->app['config']->set('repository', require __DIR__ . '/config/repository.php'); |
|
31 | 31 | } |
32 | - $this->mergeConfigFrom(__DIR__.'/config/repository.php', 'repository-config'); |
|
33 | - $resourcesPathStub = realpath(__DIR__.'/../../../../resources') .'/stubs'; |
|
34 | - $stubPath = realpath(__DIR__.'/../stubs'); |
|
35 | - $langPath = Config::get('repository.lang_path').'/en'; |
|
32 | + $this->mergeConfigFrom(__DIR__ . '/config/repository.php', 'repository-config'); |
|
33 | + $resourcesPathStub = realpath(__DIR__ . '/../../../../resources') . '/stubs'; |
|
34 | + $stubPath = realpath(__DIR__ . '/../stubs'); |
|
35 | + $langPath = Config::get('repository.lang_path') . '/en'; |
|
36 | 36 | |
37 | - if(!is_dir($resourcesPathStub)) |
|
37 | + if (!is_dir($resourcesPathStub)) |
|
38 | 38 | { |
39 | - mkdir($resourcesPathStub,0777,true); |
|
39 | + mkdir($resourcesPathStub, 0777, true); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $this->publishes([ |
43 | 43 | $stubPath => Config::get('repository.stubs_path', $resourcesPathStub), |
44 | - __DIR__.'/lang' => $langPath, |
|
44 | + __DIR__ . '/lang' => $langPath, |
|
45 | 45 | ], 'repository-stub'); |
46 | 46 | } |
47 | 47 |