Passed
Push — master ( 2b76d8...308cb3 )
by karam
02:19
created
src/Controllers/ApisGeneratorController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     public function create(ApisGeneratorRequest $request)
19 19
     {
20 20
         $this->generatorService->initialRequest($request)->generateApi();
21
-        session()->flash('alert_type' , 'success');
22
-        session()->flash('success' , 'create new api successfully');
21
+        session()->flash('alert_type', 'success');
22
+        session()->flash('success', 'create new api successfully');
23 23
         return redirect()->route('apisGenerator.index');
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Providers/ApisGeneratorServiceProviders.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@  discard block
 block discarded – undo
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
 
22 22
     protected function publishesBaseControllers()
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
 
27 27
     protected function registerFacades()
28 28
     {
29
-        $this->app->singleton("KMFileFacade" , function ($app){
29
+        $this->app->singleton("KMFileFacade", function($app) {
30 30
             return new KMFile();
31 31
         });
32
-        $this->app->singleton("KMRoutesFacade" , function ($app){
32
+        $this->app->singleton("KMRoutesFacade", function($app) {
33 33
             return new KMRoutes();
34 34
         });
35
-        $this->app->singleton("KMFunctionsFacade" , function ($app){
35
+        $this->app->singleton("KMFunctionsFacade", function($app) {
36 36
             return new KMFunctions();
37 37
         });
38 38
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $cssPath = "ApisGenerator/css";
45 45
         $this->publishes([
46 46
             __DIR__."/../Config/apis_generator.php" => config_path("apis_generator.php")
47
-        ] , "apis-generator-config");
47
+        ], "apis-generator-config");
48 48
 
49 49
         $this->publishes([
50 50
             $asset."create.blade.php" => resource_path("$views/create.blade.php"),
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             $asset."_layouts.blade.php" => resource_path("$views/layouts/_layouts.blade.php"),
54 54
             $asset."script.js" => public_path("$scriptPath/script.js"),
55 55
             $asset."css.css" => public_path("$cssPath/css.css"),
56
-        ] , "apis-generator-asset");
56
+        ], "apis-generator-asset");
57 57
 
58 58
     }
59 59
 
Please login to merge, or discard this patch.