Completed
Push — master ( 37b68a...dd2f56 )
by Glenn
02:26
created
app/Http/Controllers/DepartmentController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         $data2 = [];
113 113
         foreach($items as $department)
114 114
         {
115
-         $data2[] = [
115
+            $data2[] = [
116 116
         'value' => $department["id"],
117 117
         'text'  => $department["name"]
118 118
         ];
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 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
 
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
     public function get_departments()
110 110
     {
111 111
         $items = Departments::all();
112
-        $data2 = [];
113
-        foreach($items as $department)
112
+        $data2 = [ ];
113
+        foreach ($items as $department)
114 114
         {
115
-         $data2[] = [
116
-        'value' => $department["id"],
117
-        'text'  => $department["name"]
115
+         $data2[ ] = [
116
+        'value' => $department[ "id" ],
117
+        'text'  => $department[ "name" ]
118 118
         ];
119 119
 
120 120
         }
Please login to merge, or discard this patch.
app/Http/Controllers/StaffController.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
82 82
      */
83 83
     public function index()
84
-	{
85
-		$data['users'] = User::paginate(15);
86
-    	return view('users/index', $data);
84
+    {
85
+        $data['users'] = User::paginate(15);
86
+        return view('users/index', $data);
87 87
     }
88 88
 
89 89
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $id = auth()->user()->id;
125 125
         $data['tokens'] = ApiKey::where('user_id', $id)->get();
126
-    	return view('users/profile', $data);
126
+        return view('users/profile', $data);
127 127
     }
128 128
 
129 129
     /**
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $data2 = [];
150 150
         foreach($items as $role)
151 151
         {
152
-         $data2[] = [
152
+            $data2[] = [
153 153
         'value' => $role["id"],
154 154
         'text'  => $role["name"]
155 155
         ];
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 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['tokens'] = ApiKey::where('user_id', $id)->get();
125
+        $data[ 'tokens' ] = ApiKey::where('user_id', $id)->get();
126 126
     	return view('users/profile', $data);
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');
@@ -146,12 +146,12 @@  discard block
 block discarded – undo
146 146
     public function get_roles()
147 147
     {
148 148
         $items = Roles::all();
149
-        $data2 = [];
150
-        foreach($items as $role)
149
+        $data2 = [ ];
150
+        foreach ($items as $role)
151 151
         {
152
-         $data2[] = [
153
-        'value' => $role["id"],
154
-        'text'  => $role["name"]
152
+         $data2[ ] = [
153
+        'value' => $role[ "id" ],
154
+        'text'  => $role[ "name" ]
155 155
         ];
156 156
 
157 157
         }
Please login to merge, or discard this patch.