Completed
Push — master ( 508f75...814324 )
by Tim
03:05
created
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::get('/', function () {
14
+Route::get('/', function() {
15 15
     return view('welcome');
16 16
 });
17 17
 
Please login to merge, or discard this patch.
app/Http/Controllers/CustomersController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Http/Middleware/languageMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
app/Http/Controllers/StaffController.php 3 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
52 52
      */
53 53
     public function index()
54
-	{
55
-		$data['users'] = User::paginate(15);
56
-    	return view('users/index', $data);
54
+    {
55
+        $data['users'] = User::paginate(15);
56
+        return view('users/index', $data);
57 57
     }
58 58
 
59 59
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function profile()
93 93
     {
94
-    	return view('users/profile');
94
+        return view('users/profile');
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function edit($id)
73 73
     {
74
-        $data['query'] = User::find($id);
74
+        $data[ 'query' ] = User::find($id);
75 75
         return view('staff.edit', $data);
76 76
     }
77 77
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function index()
84 84
 	{
85
-		$data['users'] = User::paginate(15);
85
+		$data[ 'users' ] = User::paginate(15);
86 86
     	return view('users/index', $data);
87 87
     }
88 88
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     public function profile()
123 123
     {
124 124
         $id = auth()->user()->id;
125
-        $data['query'] = ApiKey::where('user_id', $id)->get();
125
+        $data[ 'query' ] = ApiKey::where('user_id', $id)->get();
126 126
     	return view('users/profile');
127 127
     }
128 128
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     public function destroy($id)
136 136
     {
137 137
         $user = User::find($id);
138
-        $user->roles()->sync([]);
138
+        $user->roles()->sync([ ]);
139 139
 
140 140
         User::destroy($id);
141 141
         session()->flash('message', 'User deleted');
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Middleware/RoleMiddlware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/DepartmentController.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function index()
33 33
     {
34
-        $data['query'] = Departments::paginate(15);
34
+        $data[ 'query' ] = Departments::paginate(15);
35 35
         return view('departments.index', $data);
36 36
     }
37 37
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function show($id)
67 67
     {
68
-        $data['query'] = Departments::find($id);
68
+        $data[ 'query' ] = Departments::find($id);
69 69
         return view('departments.specific', $data);
70 70
     }
71 71
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function edit($id)
79 79
     {
80
-        $data['query'] = Departments::find($id);
80
+        $data[ 'query' ] = Departments::find($id);
81 81
         return view('departments.update', $data);
82 82
     }
83 83
 
Please login to merge, or discard this patch.