@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function getStubPath() |
33 | 33 | { |
34 | - return __DIR__ . '/../stubs/route.stub'; |
|
34 | + return __DIR__.'/../stubs/route.stub'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | protected function obtainReplacements() |
41 | 41 | { |
42 | 42 | return [ |
43 | - 'ROUTE_LINK' => $this->getReplacements()[0], |
|
44 | - 'ROUTE_VIEW' => $this->getReplacements()[1], |
|
45 | - 'ROUTE_METHOD' => $this->getReplacements()[2], |
|
43 | + 'ROUTE_LINK' => $this->getReplacements()[ 0 ], |
|
44 | + 'ROUTE_VIEW' => $this->getReplacements()[ 1 ], |
|
45 | + 'ROUTE_METHOD' => $this->getReplacements()[ 2 ], |
|
46 | 46 | ]; |
47 | 47 | } |
48 | 48 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | protected function getStubPath() |
34 | 34 | { |
35 | - return __DIR__ . '/../stubs/route_with_resource_controller.stub'; |
|
35 | + return __DIR__.'/../stubs/route_with_resource_controller.stub'; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | protected function obtainReplacements() |
44 | 44 | { |
45 | 45 | return [ |
46 | - 'ROUTE_LINK' => $this->getReplacements()[0], |
|
47 | - 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[1]), |
|
46 | + 'ROUTE_LINK' => $this->getReplacements()[ 0 ], |
|
47 | + 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[ 1 ]), |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 | } |
@@ -11,11 +11,11 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::get('/', function () { |
|
14 | +Route::get('/', function() { |
|
15 | 15 | return view('welcome'); |
16 | 16 | }); |
17 | 17 | |
18 | -Route::group(['middleware' => 'auth'], function () { |
|
18 | +Route::group([ 'middleware' => 'auth' ], function() { |
|
19 | 19 | // Route::get('/link1', function () { |
20 | 20 | // // Uses Auth Middleware |
21 | 21 | // }); |
@@ -13,11 +13,11 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::get('/user', function (Request $request) { |
|
16 | +Route::get('/user', function(Request $request) { |
|
17 | 17 | return $request->user(); |
18 | 18 | })->middleware('auth:api'); |
19 | 19 | |
20 | -Route::group(['prefix' => 'v1','middleware' => 'auth:api'], function () { |
|
20 | +Route::group([ 'prefix' => 'v1', 'middleware' => 'auth:api' ], function() { |
|
21 | 21 | // Route::resource('task', 'TasksController'); |
22 | 22 | |
23 | 23 | //Please do not remove this if you want adminlte:route and adminlte:link commands to works correctly. |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | protected function getStubPath() |
34 | 34 | { |
35 | - return __DIR__ . '/../stubs/route_with_controller.stub'; |
|
35 | + return __DIR__.'/../stubs/route_with_controller.stub'; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | protected function obtainReplacements() |
44 | 44 | { |
45 | 45 | return [ |
46 | - 'ROUTE_LINK' => $this->getReplacements()[0], |
|
47 | - 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[1]), |
|
48 | - 'ROUTE_METHOD' => $this->getReplacements()[2], |
|
46 | + 'ROUTE_LINK' => $this->getReplacements()[ 0 ], |
|
47 | + 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[ 1 ]), |
|
48 | + 'ROUTE_METHOD' => $this->getReplacements()[ 2 ], |
|
49 | 49 | ]; |
50 | 50 | } |
51 | 51 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | if (str_contains($controllername, '@')) { |
25 | 25 | return ucfirst($controllername); |
26 | 26 | } |
27 | - return ucfirst($controllername . '@index'); |
|
27 | + return ucfirst($controllername.'@index'); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | protected function controllerMethod($controllername) |
51 | 51 | { |
52 | 52 | if (str_contains($controller = $controllername, '@')) { |
53 | - return substr($controllername, strpos($controllername, '@')+1, strlen($controllername)); |
|
53 | + return substr($controllername, strpos($controllername, '@') + 1, strlen($controllername)); |
|
54 | 54 | } |
55 | 55 | return 'index'; |
56 | 56 | } |
@@ -26,21 +26,21 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | if ($this->app->runningInConsole()) { |
29 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTE::class]); |
|
30 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTEAlt::class]); |
|
31 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebar::class]); |
|
32 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebarAlt::class]); |
|
33 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeAdminUserSeeder::class]); |
|
34 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdmin::class]); |
|
35 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdminAlt::class]); |
|
36 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeView::class]); |
|
37 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenu::class]); |
|
38 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenuAlt::class]); |
|
39 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeRoute::class]); |
|
40 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeMenu::class]); |
|
29 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTE::class ]); |
|
30 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTEAlt::class ]); |
|
31 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebar::class ]); |
|
32 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebarAlt::class ]); |
|
33 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeAdminUserSeeder::class ]); |
|
34 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdmin::class ]); |
|
35 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdminAlt::class ]); |
|
36 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeView::class ]); |
|
37 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenu::class ]); |
|
38 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenuAlt::class ]); |
|
39 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeRoute::class ]); |
|
40 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeMenu::class ]); |
|
41 | 41 | } |
42 | 42 | |
43 | - $this->app->bind('AdminLTE', function () { |
|
43 | + $this->app->bind('AdminLTE', function() { |
|
44 | 44 | return new \Acacha\AdminLTETemplateLaravel\AdminLTE(); |
45 | 45 | }); |
46 | 46 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if (!$this->app->routesAreCached()) { |
104 | 104 | $router = app('router'); |
105 | 105 | |
106 | - $router->group(['namespace' => $this->getAppNamespace().'Http\Controllers'], function () { |
|
106 | + $router->group([ 'namespace' => $this->getAppNamespace().'Http\Controllers' ], function() { |
|
107 | 107 | require __DIR__.'/../Http/routes.php'; |
108 | 108 | }); |
109 | 109 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $tmpfile = $this->createTmpFileWithMenu(); |
79 | 79 | $path = $this->getPath($tmpfile); |
80 | 80 | add_file_into_file($this->mountpoint(), $path, $dstFile = $this->destinationFile()); |
81 | - $this->info('Menu ' . $this->name() . ' added to ' . $dstFile . '.'); |
|
81 | + $this->info('Menu '.$this->name().' added to '.$dstFile.'.'); |
|
82 | 82 | $this->postActions(); |
83 | 83 | } |
84 | 84 | |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | protected function getMenuCode() |
123 | 123 | { |
124 | 124 | $type = $this->option('type'); |
125 | - $class = isset(static::$lookup[$type]) |
|
126 | - ? static::$lookup[$type] |
|
125 | + $class = isset(static::$lookup[ $type ]) |
|
126 | + ? static::$lookup[ $type ] |
|
127 | 127 | : RegularMenu::class; |
128 | 128 | /** @var GeneratesCode $route */ |
129 | 129 | $route = new $class($this->compiler, $this->filesystem); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | protected function getPath($tmpfile) |
144 | 144 | { |
145 | - return stream_get_meta_data($tmpfile)['uri']; |
|
145 | + return stream_get_meta_data($tmpfile)[ 'uri' ]; |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function getStubPath() |
33 | 33 | { |
34 | - return __DIR__ . '/../stubs/menu.stub'; |
|
34 | + return __DIR__.'/../stubs/menu.stub'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | protected function obtainReplacements() |
41 | 41 | { |
42 | 42 | return [ |
43 | - 'MENU_LINK' => $this->getReplacements()[0], |
|
44 | - 'MENU_NAME' => $this->getReplacements()[1] |
|
43 | + 'MENU_LINK' => $this->getReplacements()[ 0 ], |
|
44 | + 'MENU_NAME' => $this->getReplacements()[ 1 ] |
|
45 | 45 | ]; |
46 | 46 | } |
47 | 47 | } |