@@ -35,10 +35,10 @@ |
||
35 | 35 | parent::__construct($app); |
36 | 36 | |
37 | 37 | |
38 | - $interfaces= str_plural(Config::get('repository.interface')); |
|
39 | - $repositories= str_plural(Config::get('repository.repository')); |
|
40 | - $interface= Config::get('repository.interface'); |
|
41 | - $repository= Config::get('repository.repository'); |
|
38 | + $interfaces = str_plural(Config::get('repository.interface')); |
|
39 | + $repositories = str_plural(Config::get('repository.repository')); |
|
40 | + $interface = Config::get('repository.interface'); |
|
41 | + $repository = Config::get('repository.repository'); |
|
42 | 42 | |
43 | 43 | $contractsFolder = realpath(__DIR__ . '/../../../../app/' . $interfaces); |
44 | 44 | if ($contractsFolder) { |
@@ -6,9 +6,9 @@ |
||
6 | 6 | * Time: 09:58 am |
7 | 7 | */ |
8 | 8 | return [ |
9 | - 'app_path' => realpath(__DIR__.'/../app/'), |
|
9 | + 'app_path' => realpath(__DIR__ . '/../app/'), |
|
10 | 10 | 'route_path' => realpath('routes/'), |
11 | - 'resources_path' => realpath(__DIR__.'/../vendor/shamaseen/repository-generator/stubs'), |
|
11 | + 'resources_path' => realpath(__DIR__ . '/../vendor/shamaseen/repository-generator/stubs'), |
|
12 | 12 | |
13 | 13 | //relative to app path |
14 | 14 | 'interface' => 'Interface', |
@@ -26,17 +26,17 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | $this->publishes([ |
29 | - __DIR__.'/config' => realpath('config'), |
|
30 | - ],'repository-config'); |
|
29 | + __DIR__ . '/config' => realpath('config'), |
|
30 | + ], 'repository-config'); |
|
31 | 31 | |
32 | 32 | if ($this->app['config']->get('repository') === null) { |
33 | - $this->app['config']->set('repository', require __DIR__.'/config/repository.php'); |
|
33 | + $this->app['config']->set('repository', require __DIR__ . '/config/repository.php'); |
|
34 | 34 | } |
35 | - $this->mergeConfigFrom(__DIR__.'/config/repository.php', 'repository-config'); |
|
35 | + $this->mergeConfigFrom(__DIR__ . '/config/repository.php', 'repository-config'); |
|
36 | 36 | |
37 | 37 | $this->publishes([ |
38 | - __DIR__ . '/stubs' => \Config::get('repository.resources_path',realpath(__DIR__.'/../../../../resources/'))."/stubs/", |
|
39 | - ],'repository-stub'); |
|
38 | + __DIR__ . '/stubs' => \Config::get('repository.resources_path', realpath(__DIR__ . '/../../../../resources/')) . "/stubs/", |
|
39 | + ], 'repository-stub'); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | public function handle() |
57 | 57 | { |
58 | 58 | |
59 | - $file = explode("/", (string)$this->argument('name')); |
|
59 | + $file = explode("/", (string) $this->argument('name')); |
|
60 | 60 | |
61 | 61 | $this->repoName = $file[count($file) - 1]; |
62 | 62 | unset($file[count($file) - 1]); |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | $this->repoNamespace = $file[count($file) - 1]; |
69 | 69 | $this->repoNamespace = implode("\\", $file); |
70 | 70 | } |
71 | - $model= str_plural(\Config::get('repository.model')); |
|
72 | - $interface= str_plural(\Config::get('repository.interface')); |
|
73 | - $repository= str_plural(\Config::get('repository.repository')); |
|
71 | + $model = str_plural(\Config::get('repository.model')); |
|
72 | + $interface = str_plural(\Config::get('repository.interface')); |
|
73 | + $repository = str_plural(\Config::get('repository.repository')); |
|
74 | 74 | |
75 | 75 | $this->generate($path, \Config::get('repository.controllers_path'), 'Controller'); |
76 | 76 | $this->generate($path, $model, 'Entity'); |