@@ -54,7 +54,7 @@ |
||
54 | 54 | { |
55 | 55 | $router->group([ |
56 | 56 | 'namespace' => $this->namespace, 'middleware' => 'web', |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | require app_path('Http/routes.php'); |
59 | 59 | }); |
60 | 60 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::get('/', function () { |
|
14 | +Route::get('/', function() { |
|
15 | 15 | return view('welcome'); |
16 | 16 | }); |
17 | 17 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | public function index() |
19 | 19 | { |
20 | - $data['customers'] = Customer::paginate(15); |
|
20 | + $data[ 'customers' ] = Customer::paginate(15); |
|
21 | 21 | return view('customers/index', $data); |
22 | 22 | } |
23 | 23 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public function edit($id) |
35 | 35 | { |
36 | - $data['customer'] = Customer::where('id', $id)->get(); |
|
36 | + $data[ 'customer' ] = Customer::where('id', $id)->get(); |
|
37 | 37 | return view('customers/edit', $data); |
38 | 38 | } |
39 | 39 | } |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use App\Customer; |
6 | -use Illuminate\Http\Request; |
|
7 | - |
|
8 | 6 | use App\Http\Requests; |
9 | 7 | |
10 | 8 | class CustomersController extends Controller |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function __construct() |
39 | 39 | { |
40 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); |
|
40 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -65,10 +65,10 @@ discard block |
||
65 | 65 | protected function create(array $data) |
66 | 66 | { |
67 | 67 | return User::create([ |
68 | - 'fname' => $data['fname'], |
|
69 | - 'name' => $data['name'], |
|
70 | - 'email' => $data['email'], |
|
71 | - 'password' => bcrypt($data['password']), |
|
68 | + 'fname' => $data[ 'fname' ], |
|
69 | + 'name' => $data[ 'name' ], |
|
70 | + 'email' => $data[ 'email' ], |
|
71 | + 'password' => bcrypt($data[ 'password' ]), |
|
72 | 72 | ]); |
73 | 73 | } |
74 | 74 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @var array |
19 | 19 | */ |
20 | - protected static $supportedLanguages = ['nl', 'en', 'fr']; |
|
20 | + protected static $supportedLanguages = [ 'nl', 'en', 'fr' ]; |
|
21 | 21 | /** |
22 | 22 | * Handle an incoming request. |
23 | 23 | * |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function boot() |
16 | 16 | { |
17 | - Bouncer::seeder(function () { |
|
17 | + Bouncer::seeder(function() { |
|
18 | 18 | Bouncer::allow('available')->to(''); |
19 | 19 | Bouncer::allow('unavailable')->to(''); |
20 | 20 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function handle($request, Closure $next, $role) |
18 | 18 | { |
19 | - if (! auth()->user()->is($role)) { |
|
19 | + if (!auth()->user()->is($role)) { |
|
20 | 20 | return redirect()->back(302); |
21 | 21 | } |
22 | 22 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * Store a newly created resource in storage. |
50 | 50 | * |
51 | 51 | * @param Requests\DepartmentsValidator $input |
52 | - * @return \Illuminate\Http\Response |
|
52 | + * @return \Illuminate\Http\RedirectResponse |
|
53 | 53 | */ |
54 | 54 | public function store(Requests\DepartmentsValidator $input) |
55 | 55 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * |
87 | 87 | * @param Requests\DepartmentsValidator $input |
88 | 88 | * @param int $id the department id in the database. |
89 | - * @return \Illuminate\Http\Response |
|
89 | + * @return \Illuminate\Http\RedirectResponse |
|
90 | 90 | */ |
91 | 91 | public function update(Requests\DepartmentsValidator $input, $id) |
92 | 92 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * Remove the specified resource from storage. |
99 | 99 | * |
100 | 100 | * @param int $id the department id in the database. |
101 | - * @return \Illuminate\Http\Response |
|
101 | + * @return \Illuminate\Http\RedirectResponse |
|
102 | 102 | */ |
103 | 103 | public function destroy($id) |
104 | 104 | { |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use App\Customer; |
6 | -use Illuminate\Http\Request; |
|
7 | - |
|
8 | 6 | use App\Http\Requests; |
9 | 7 | |
10 | 8 | class CustomersController extends Controller |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function index() |
34 | 34 | { |
35 | - $data['query'] = Departments::paginate(15); |
|
35 | + $data[ 'query' ] = Departments::paginate(15); |
|
36 | 36 | return view('departments.index', $data); |
37 | 37 | } |
38 | 38 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function show($id) |
68 | 68 | { |
69 | - $data['query'] = Departments::find($id); |
|
69 | + $data[ 'query' ] = Departments::find($id); |
|
70 | 70 | return view('departments.specific', $data); |
71 | 71 | } |
72 | 72 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function edit($id) |
80 | 80 | { |
81 | - $data['query'] = Departments::find($id); |
|
81 | + $data[ 'query' ] = Departments::find($id); |
|
82 | 82 | return view('departments.update', $data); |
83 | 83 | } |
84 | 84 | |
@@ -115,12 +115,12 @@ discard block |
||
115 | 115 | public function get_departments() |
116 | 116 | { |
117 | 117 | $items = Departments::all(); |
118 | - $data2 = []; |
|
118 | + $data2 = [ ]; |
|
119 | 119 | |
120 | - foreach($items as $department) { |
|
121 | - $data2[] = [ |
|
122 | - 'value' => $department["id"], |
|
123 | - 'text' => $department["name"] |
|
120 | + foreach ($items as $department) { |
|
121 | + $data2[ ] = [ |
|
122 | + 'value' => $department[ "id" ], |
|
123 | + 'text' => $department[ "name" ] |
|
124 | 124 | ]; |
125 | 125 | } |
126 | 126 |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | -use Illuminate\Http\Request; |
|
6 | - |
|
7 | -use App\Http\Requests; |
|
8 | 5 | use App\Customer as Customer; |
9 | 6 | |
10 | 7 | class CustomersController extends Controller |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function index() |
22 | 22 | { |
23 | - $data['query'] = Callback::all(); |
|
23 | + $data[ 'query' ] = Callback::all(); |
|
24 | 24 | return view('callbacks/list', $data); |
25 | 25 | } |
26 | 26 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | class CallbackController extends Controller |
15 | 15 | { |
16 | - public function __construct() |
|
16 | + public function __construct() |
|
17 | 17 | { |
18 | 18 | $this->middleware('auth'); |
19 | 19 | $this->middleware('lang'); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function index() |
28 | 28 | { |
29 | 29 | $data['query'] = Callback::all(); |
30 | - return view('callbacks/list', $data); |
|
30 | + return view('callbacks/list', $data); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function edit($id) |
61 | 61 | { |
62 | - return view('callbacks/details'); |
|
62 | + return view('callbacks/details'); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |