@@ -26,13 +26,13 @@ |
||
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 | - $this->mergeConfigFrom(__DIR__.'/config/repository.php', 'repository-generator'); |
|
32 | + $this->mergeConfigFrom(__DIR__ . '/config/repository.php', 'repository-generator'); |
|
33 | 33 | $this->publishes([ |
34 | - __DIR__.'/stubs' => \Config::get('repository.resources_path',realpath(__DIR__.'/../../../../resources/'))."/stubs/", |
|
35 | - ],'repository-stub'); |
|
34 | + __DIR__ . '/stubs' => \Config::get('repository.resources_path', realpath(__DIR__ . '/../../../../resources/')) . "/stubs/", |
|
35 | + ], 'repository-stub'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -29,14 +29,14 @@ |
||
29 | 29 | protected function failedValidation(Validator $validator) |
30 | 30 | { |
31 | 31 | |
32 | - if (strpos($this->path(),'api') !== false) { |
|
32 | + if (strpos($this->path(), 'api') !== false) { |
|
33 | 33 | $errors = (new ValidationException($validator))->errors(); |
34 | 34 | throw new HttpResponseException(response()->json(['success' => false, 'errors' => $errors, |
35 | 35 | ], JsonResponse::HTTP_UNPROCESSABLE_ENTITY)); |
36 | 36 | } |
37 | 37 | } |
38 | 38 | |
39 | - public function rules(){ |
|
40 | - \App::setLocale($this->header('Language','en')); |
|
39 | + public function rules() { |
|
40 | + \App::setLocale($this->header('Language', 'en')); |
|
41 | 41 | } |
42 | 42 | } |
@@ -56,7 +56,7 @@ |
||
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]); |
@@ -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 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function __construct($app) |
32 | 32 | { |
33 | 33 | parent::__construct($app); |
34 | - $contractsFolder = realpath(__DIR__.'/../../../../app/Contracts'); |
|
34 | + $contractsFolder = realpath(__DIR__ . '/../../../../app/Contracts'); |
|
35 | 35 | $Directory = new \RecursiveDirectoryIterator($contractsFolder); |
36 | 36 | $Iterator = new \RecursiveIteratorIterator($Directory); |
37 | 37 | $Regex = new \RegexIterator($Iterator, '/^.+\.php$/i', \RecursiveRegexIterator::GET_MATCH); |
@@ -6,7 +6,7 @@ |
||
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 | 11 | 'resources_path' => realpath('resources/'), |
12 | 12 |