@@ -63,10 +63,10 @@ |
||
63 | 63 | } |
64 | 64 | $limit = $request->get('limit', 10); |
65 | 65 | |
66 | - if ((bool)$request->get('with-trash', false)) { |
|
66 | + if ((bool) $request->get('with-trash', false)) { |
|
67 | 67 | $interface->withTrash(); |
68 | 68 | } |
69 | - if ((bool)$request->get('only-trash', false)) { |
|
69 | + if ((bool) $request->get('only-trash', false)) { |
|
70 | 70 | $interface->trash(); |
71 | 71 | } |
72 | 72 |
@@ -25,25 +25,25 @@ |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | $this->publishes([ |
28 | - __DIR__.'/config' => realpath('config'), |
|
28 | + __DIR__ . '/config' => realpath('config'), |
|
29 | 29 | ], 'repository-generator'); |
30 | 30 | |
31 | 31 | if (null === $this->app['config']->get('repository')) { |
32 | - $this->app['config']->set('repository', require __DIR__.'/config/repository.php'); |
|
32 | + $this->app['config']->set('repository', require __DIR__ . '/config/repository.php'); |
|
33 | 33 | } |
34 | - $this->mergeConfigFrom(__DIR__.'/config/repository.php', 'repository-config'); |
|
34 | + $this->mergeConfigFrom(__DIR__ . '/config/repository.php', 'repository-config'); |
|
35 | 35 | $resourcesPathStub = resource_path('/stubs'); |
36 | - $stubPath = realpath(__DIR__.'/../stubs'); |
|
37 | - $langPath = Config::get('repository.lang_path').'/en'; |
|
36 | + $stubPath = realpath(__DIR__ . '/../stubs'); |
|
37 | + $langPath = Config::get('repository.lang_path') . '/en'; |
|
38 | 38 | |
39 | - if(!is_dir($resourcesPathStub)) |
|
39 | + if (!is_dir($resourcesPathStub)) |
|
40 | 40 | { |
41 | - mkdir($resourcesPathStub,0777,true); |
|
41 | + mkdir($resourcesPathStub, 0777, true); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $this->publishes([ |
45 | 45 | $stubPath => Config::get('repository.stubs_path', $resourcesPathStub), |
46 | - __DIR__.'/lang' => $langPath, |
|
46 | + __DIR__ . '/lang' => $langPath, |
|
47 | 47 | ], 'repository-stub'); |
48 | 48 | } |
49 | 49 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function handle() |
63 | 63 | { |
64 | - $file = preg_split(' ([/\\\]) ', (string)$this->argument('name')) ?? []; |
|
64 | + $file = preg_split(' ([/\\\]) ', (string) $this->argument('name')) ?? []; |
|
65 | 65 | |
66 | 66 | if (!$file) { |
67 | 67 | return 'Something wrong with the inputs !'; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $request = Config::get('repository.requests_folder', 'Http\Requests'); |
91 | 91 | $resource = Config::get('repository.resources_folder', 'Http\Resources'); |
92 | 92 | |
93 | - $base="Shamaseen\Repository\Generator\Utility"; |
|
93 | + $base = "Shamaseen\Repository\Generator\Utility"; |
|
94 | 94 | $modelBase = Config::get('repository.base_model', "{$base}\Entity"); |
95 | 95 | $interfaceBase = Config::get('repository.base_interface', "{$base}\ContractInterface"); |
96 | 96 | $repositoryBase = Config::get('repository.base_repository', "{$base}\AbstractRepository"); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function handle() |
53 | 53 | { |
54 | - $file = preg_split(' (/|\\\\) ', (string)$this->argument('name')) ?? []; |
|
54 | + $file = preg_split(' (/|\\\\) ', (string) $this->argument('name')) ?? []; |
|
55 | 55 | |
56 | 56 | if (!$file) { |
57 | 57 | return 'Something wrong with the inputs !'; |