@@ -19,8 +19,8 @@ |
||
19 | 19 | { |
20 | 20 | $this->generatorService->initialRequest($request)->generateApi(); |
21 | 21 | /** @scrutinizer ignore-call */ |
22 | - session()->flash('alert_type' , 'success'); |
|
23 | - session()->flash('success' , 'create new api successfully'); |
|
22 | + session()->flash('alert_type', 'success'); |
|
23 | + session()->flash('success', 'create new api successfully'); |
|
24 | 24 | return /** @scrutinizer ignore-call */ redirect()->route('apisGenerator.index'); |
25 | 25 | } |
26 | 26 | } |
@@ -9,14 +9,14 @@ discard block |
||
9 | 9 | class ApisGeneratorServiceProviders extends ServiceProvider |
10 | 10 | { |
11 | 11 | |
12 | - public function boot(){ |
|
12 | + public function boot() { |
|
13 | 13 | $this->registerFacades(); |
14 | 14 | $this->publishesPackages(); |
15 | 15 | $this->loadResource(); |
16 | 16 | |
17 | 17 | } |
18 | 18 | |
19 | - public function register(){} |
|
19 | + public function register() {} |
|
20 | 20 | |
21 | 21 | protected function publishesBaseControllers() |
22 | 22 | { |
@@ -25,13 +25,13 @@ discard block |
||
25 | 25 | |
26 | 26 | protected function registerFacades() |
27 | 27 | { |
28 | - $this->app->singleton("KMFileFacade" , function ($app){ |
|
28 | + $this->app->singleton("KMFileFacade", function($app) { |
|
29 | 29 | return new KMFile(); |
30 | 30 | }); |
31 | - $this->app->singleton("KMRoutesFacade" , function ($app){ |
|
31 | + $this->app->singleton("KMRoutesFacade", function($app) { |
|
32 | 32 | return new KMRoutes(); |
33 | 33 | }); |
34 | - $this->app->singleton("KMFunctionsFacade" , function ($app){ |
|
34 | + $this->app->singleton("KMFunctionsFacade", function($app) { |
|
35 | 35 | return new KMFunctions(); |
36 | 36 | }); |
37 | 37 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $cssPath = "ApisGenerator/css"; |
44 | 44 | $this->publishes([ |
45 | 45 | __DIR__."/../Config/apis_generator.php" => config_path("apis_generator.php") |
46 | - ] , "apis-generator-config"); |
|
46 | + ], "apis-generator-config"); |
|
47 | 47 | |
48 | 48 | $this->publishes([ |
49 | 49 | $asset."create.blade.php" => resource_path("$views/create.blade.php"), |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $asset."_layouts.blade.php" => resource_path("$views/layouts/_layouts.blade.php"), |
53 | 53 | $asset."script.js" => public_path("$scriptPath/script.js"), |
54 | 54 | $asset."css.css" => public_path("$cssPath/css.css"), |
55 | - ] , "apis-generator-asset"); |
|
55 | + ], "apis-generator-asset"); |
|
56 | 56 | |
57 | 57 | } |
58 | 58 |