@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | { |
54 | 54 | try { |
55 | 55 | $this->filesystem->make( |
56 | - $path = resource_path('views/' . $this->viewPath()), |
|
56 | + $path = resource_path('views/'.$this->viewPath()), |
|
57 | 57 | $this->filesystem->get($this->getStubPath()), |
58 | 58 | true |
59 | 59 | ); |
60 | - $this->info('File ' . $path . ' created'); |
|
60 | + $this->info('File '.$path.' created'); |
|
61 | 61 | } catch (\Exception $e) { |
62 | 62 | $this->error($e->getMessage()); |
63 | 63 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function getStubPath() |
70 | 70 | { |
71 | - return __DIR__ . '/stubs/view.stub'; |
|
71 | + return __DIR__.'/stubs/view.stub'; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function constructViewBladeName($name) |
91 | 91 | { |
92 | - return $this->dottedPathToSlashesPath($name) . '.blade.php'; |
|
92 | + return $this->dottedPathToSlashesPath($name).'.blade.php'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -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' => $link = $this->getReplacements()[0], |
|
47 | - 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[1]), |
|
48 | - 'ROUTE_METHOD' => $this->getReplacements()[2], |
|
46 | + 'ROUTE_LINK' => $link = $this->getReplacements()[ 0 ], |
|
47 | + 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[ 1 ]), |
|
48 | + 'ROUTE_METHOD' => $this->getReplacements()[ 2 ], |
|
49 | 49 | 'ROUTE_NAME' => dot_path($link), |
50 | 50 | ]; |
51 | 51 | } |
@@ -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' => $link = $this->getReplacements()[0], |
|
44 | - 'ROUTE_VIEW' => $this->getReplacements()[1], |
|
45 | - 'ROUTE_METHOD' => $this->getReplacements()[2], |
|
43 | + 'ROUTE_LINK' => $link = $this->getReplacements()[ 0 ], |
|
44 | + 'ROUTE_VIEW' => $this->getReplacements()[ 1 ], |
|
45 | + 'ROUTE_METHOD' => $this->getReplacements()[ 2 ], |
|
46 | 46 | 'ROUTE_NAME' => dot_path($link), |
47 | 47 | ]; |
48 | 48 | } |
@@ -14,6 +14,6 @@ |
||
14 | 14 | */ |
15 | 15 | public function createModel($name) |
16 | 16 | { |
17 | - passthru('php artisan make:model -m ' . snake_case($name)); |
|
17 | + passthru('php artisan make:model -m '.snake_case($name)); |
|
18 | 18 | } |
19 | 19 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function handle() |
39 | 39 | { |
40 | - $this->info('Running command ' . $command = $this->command()); |
|
40 | + $this->info('Running command '.$command = $this->command()); |
|
41 | 41 | passthru($command); |
42 | 42 | } |
43 | 43 | |
@@ -48,11 +48,11 @@ discard block |
||
48 | 48 | */ |
49 | 49 | protected function command() |
50 | 50 | { |
51 | - $api = $this->option('api') ? ' --api ' : ''; |
|
52 | - $action = $this->argument('action') ? ' ' . $this->argument('action') . ' ' : ''; |
|
53 | - return 'php artisan make:route ' . $this->argument('link') . $action . ' --type=' . $this->option('type') . |
|
54 | - ' --method=' . $this->option('method') . |
|
55 | - $api . |
|
51 | + $api = $this->option('api') ? ' --api ' : ''; |
|
52 | + $action = $this->argument('action') ? ' '.$this->argument('action').' ' : ''; |
|
53 | + return 'php artisan make:route '.$this->argument('link').$action.' --type='.$this->option('type'). |
|
54 | + ' --method='.$this->option('method'). |
|
55 | + $api. |
|
56 | 56 | ' -a --menu'; |
57 | 57 | } |
58 | 58 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * but take into account we have to add 'web' middleware group here because Laravel by defaults add this middleware in |
6 | 6 | * RouteServiceProvider |
7 | 7 | */ |
8 | -Route::group(['middleware' => 'web'], function () { |
|
8 | +Route::group([ 'middleware' => 'web' ], function() { |
|
9 | 9 | Route::auth(); |
10 | 10 | |
11 | 11 | Route::get('/home', 'HomeController@index'); |
@@ -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 | // }); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function handle() |
39 | 39 | { |
40 | - $this->info('Running command ' . $command = $this->command()); |
|
40 | + $this->info('Running command '.$command = $this->command()); |
|
41 | 41 | passthru($command); |
42 | 42 | } |
43 | 43 | |
@@ -48,11 +48,11 @@ discard block |
||
48 | 48 | */ |
49 | 49 | protected function command() |
50 | 50 | { |
51 | - $api = $this->option('api') ? ' --api ' : ''; |
|
52 | - $action = $this->argument('action') ? ' ' . $this->argument('action') . ' ' : ''; |
|
53 | - return 'php artisan make:route ' . $this->argument('link') . $action . ' --type=' . $this->option('type') . |
|
54 | - ' --method=' . $this->option('method') . |
|
55 | - $api . |
|
51 | + $api = $this->option('api') ? ' --api ' : ''; |
|
52 | + $action = $this->argument('action') ? ' '.$this->argument('action').' ' : ''; |
|
53 | + return 'php artisan make:route '.$this->argument('link').$action.' --type='.$this->option('type'). |
|
54 | + ' --method='.$this->option('method'). |
|
55 | + $api. |
|
56 | 56 | ' -a --menu'; |
57 | 57 | } |
58 | 58 | } |
@@ -29,11 +29,11 @@ |
||
29 | 29 | // parameter represents the DataTables column identifier. In this case simple |
30 | 30 | // indexes |
31 | 31 | $columns = array( |
32 | - array( 'db' => 'id', 'dt' => 0 ), |
|
33 | - array( 'db' => 'firstname', 'dt' => 1 ), |
|
34 | - array( 'db' => 'surname', 'dt' => 2 ), |
|
35 | - array( 'db' => 'zip', 'dt' => 3 ), |
|
36 | - array( 'db' => 'country', 'dt' => 4 ) |
|
32 | + array('db' => 'id', 'dt' => 0), |
|
33 | + array('db' => 'firstname', 'dt' => 1), |
|
34 | + array('db' => 'surname', 'dt' => 2), |
|
35 | + array('db' => 'zip', 'dt' => 3), |
|
36 | + array('db' => 'country', 'dt' => 4) |
|
37 | 37 | ); |
38 | 38 | |
39 | 39 | // SQL server connection information |