@@ -3,7 +3,7 @@ |
||
3 | 3 | * Same configuration as Laravel 5.2: |
4 | 4 | * See https://github.com/laravel/framework/blob/5.2/src/Illuminate/Auth/Console/stubs/make/routes.stub |
5 | 5 | */ |
6 | -Route::group(['middleware' => 'web'], function () { |
|
6 | +Route::group([ 'middleware' => 'web' ], function() { |
|
7 | 7 | Route::auth(); |
8 | 8 | |
9 | 9 | Route::get('/home', 'HomeController@index'); |
@@ -29,11 +29,11 @@ |
||
29 | 29 | // parameter represents the DataTables column identifier. In this case simple |
30 | 30 | // indexes |
31 | 31 | $columns = [ |
32 | - ['db' => 'id', 'dt' => 0], |
|
33 | - ['db' => 'firstname', 'dt' => 1], |
|
34 | - ['db' => 'surname', 'dt' => 2], |
|
35 | - ['db' => 'zip', 'dt' => 3], |
|
36 | - ['db' => 'country', 'dt' => 4], |
|
32 | + [ 'db' => 'id', 'dt' => 0 ], |
|
33 | + [ 'db' => 'firstname', 'dt' => 1 ], |
|
34 | + [ 'db' => 'surname', 'dt' => 2 ], |
|
35 | + [ 'db' => 'zip', 'dt' => 3 ], |
|
36 | + [ 'db' => 'country', 'dt' => 4 ], |
|
37 | 37 | ]; |
38 | 38 | |
39 | 39 | // SQL server connection information |
@@ -35,7 +35,7 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * @param $fileName |
|
38 | + * @param string $fileName |
|
39 | 39 | * @param string $prompt |
40 | 40 | * |
41 | 41 | * @return bool |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | 'to' => new Flysystem(new LocalAdapter($to)), |
92 | 92 | ]); |
93 | 93 | foreach ($manager->listContents('from://', true) as $file) { |
94 | - if ($file['type'] === 'file' && (!$manager->has('to://'.$file['path']) || $this->force)) { |
|
95 | - $manager->put('to://'.$file['path'], $manager->read('from://'.$file['path'])); |
|
94 | + if ($file[ 'type' ] === 'file' && (!$manager->has('to://'.$file[ 'path' ]) || $this->force)) { |
|
95 | + $manager->put('to://'.$file[ 'path' ], $manager->read('from://'.$file[ 'path' ])); |
|
96 | 96 | } |
97 | 97 | } |
98 | 98 | $this->status($from, $to, 'Directory'); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $from = str_replace(base_path(), '', realpath($from)); |
113 | 113 | $to = str_replace(base_path(), '', realpath($to)); |
114 | - $this->line('<info>Copied '. $type. '</info> <comment>['. $from. |
|
114 | + $this->line('<info>Copied '.$type.'</info> <comment>['.$from. |
|
115 | 115 | ']</comment> <info>To</info> <comment>['.$to.']</comment>'); |
116 | 116 | } |
117 | 117 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * Overwrite file with provided content. |
18 | 18 | * |
19 | - * @param $file |
|
19 | + * @param string $file |
|
20 | 20 | * @param $content |
21 | 21 | */ |
22 | 22 | public function overwrite($file, $content) |
@@ -42,6 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Get file contents |
45 | + * @param string $file |
|
45 | 46 | */ |
46 | 47 | public function get($file) { |
47 | 48 | return file_get_contents($file); |
@@ -32,8 +32,8 @@ |
||
32 | 32 | $this->call('db:seed', [ |
33 | 33 | '--class' => basename(config('AdminUserSeeder', 'AdminUserSeeder.php'), ".php") |
34 | 34 | ]); |
35 | - $this->info('User ' . $this->username() . '(' . $this->email() . ') ' . |
|
36 | - $this->passwordInfo() . ' created succesfully!'); |
|
35 | + $this->info('User '.$this->username().'('.$this->email().') '. |
|
36 | + $this->passwordInfo().' created succesfully!'); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | try { |
66 | 66 | $this->filesystem->overwrite( |
67 | - $path = database_path('seeds/' . config('AdminUserSeeder', 'AdminUserSeeder.php')), |
|
67 | + $path = database_path('seeds/'.config('AdminUserSeeder', 'AdminUserSeeder.php')), |
|
68 | 68 | $this->compiler->compile( |
69 | 69 | $this->filesystem->get($this->getStubPath()), |
70 | 70 | [ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ] |
74 | 74 | ) |
75 | 75 | ); |
76 | - $this->info('File ' . $path . ' created'); |
|
76 | + $this->info('File '.$path.' created'); |
|
77 | 77 | } catch (\Exception $e) { |
78 | 78 | print_r($e->getMessage()); |
79 | 79 | } |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function getStubPath() |
88 | 88 | { |
89 | - return __DIR__ . '/stubs/AdminUserSeeder.php.stub'; |
|
89 | + return __DIR__.'/stubs/AdminUserSeeder.php.stub'; |
|
90 | 90 | } |
91 | 91 | } |
@@ -26,17 +26,17 @@ 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]); |
|
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 | 37 | } |
38 | 38 | |
39 | - $this->app->bind('AdminLTE', function () { |
|
39 | + $this->app->bind('AdminLTE', function() { |
|
40 | 40 | return new \Acacha\AdminLTETemplateLaravel\AdminLTE(); |
41 | 41 | }); |
42 | 42 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | if (!$this->app->routesAreCached()) { |
97 | 97 | $router = app('router'); |
98 | 98 | |
99 | - $router->group(['namespace' => $this->getAppNamespace().'Http\Controllers'], function () { |
|
99 | + $router->group([ 'namespace' => $this->getAppNamespace().'Http\Controllers' ], function() { |
|
100 | 100 | require __DIR__.'/../Http/routes.php'; |
101 | 101 | }); |
102 | 102 | } |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | { |
45 | 45 | try { |
46 | 46 | $this->filesystem->overwrite( |
47 | - $path = resource_path('views/' . $this->viewPath()), |
|
47 | + $path = resource_path('views/'.$this->viewPath()), |
|
48 | 48 | $this->filesystem->get($this->getStubPath()) |
49 | 49 | ); |
50 | - $this->info('File ' . $path . ' created'); |
|
50 | + $this->info('File '.$path.' created'); |
|
51 | 51 | } catch (\Exception $e) { |
52 | 52 | print_r($e->getMessage()); |
53 | 53 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected function getStubPath() |
60 | 60 | { |
61 | - return __DIR__ . '/stubs/view.stub'; |
|
61 | + return __DIR__.'/stubs/view.stub'; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | protected function constructViewBaldeName($name) |
80 | 80 | { |
81 | - return $this->dottedPathToSlahesPath($name) . '.blade.php'; |
|
81 | + return $this->dottedPathToSlahesPath($name).'.blade.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |