Completed
Pull Request — master (#73)
by Tim
02:26
created
app/Http/Controllers/StaffController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function create()
38 38
     {
39
-        $data['departments'] = Departments::all();
39
+        $data[ 'departments' ] = Departments::all();
40 40
         return view('staff.create', $data);
41 41
     }
42 42
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function edit($id)
77 77
     {
78
-        $data['query'] = User::find($id);
78
+        $data[ 'query' ] = User::find($id);
79 79
         return view('staff.edit', $data);
80 80
     }
81 81
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function index()
88 88
 	{
89
-		$data['users'] = User::paginate(15);
89
+		$data[ 'users' ] = User::paginate(15);
90 90
     	return view('users/index', $data);
91 91
     }
92 92
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     public function profile()
127 127
     {
128 128
         $id = auth()->user()->id;
129
-        $data['tokens'] = ApiKey::where('user_id', $id)->get();
129
+        $data[ 'tokens' ] = ApiKey::where('user_id', $id)->get();
130 130
     	return view('users/profile', $data);
131 131
     }
132 132
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     public function destroy($id)
140 140
     {
141 141
         $user = User::find($id);
142
-        $user->roles()->sync([]);
142
+        $user->roles()->sync([ ]);
143 143
 
144 144
         User::destroy($id);
145 145
         session()->flash('message', 'User deleted');
@@ -150,12 +150,12 @@  discard block
 block discarded – undo
150 150
     public function get_roles()
151 151
     {
152 152
         $items = Roles::all();
153
-        $data2 = [];
154
-        foreach($items as $role)
153
+        $data2 = [ ];
154
+        foreach ($items as $role)
155 155
         {
156
-         $data2[] = [
157
-        'value' => $role["id"],
158
-        'text'  => $role["name"]
156
+         $data2[ ] = [
157
+        'value' => $role[ "id" ],
158
+        'text'  => $role[ "name" ]
159 159
         ];
160 160
 
161 161
         }
Please login to merge, or discard this patch.
app/Http/Controllers/CustomersController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function index()
29 29
     {
30
-        $data['customers'] = Customer::paginate(15);
30
+        $data[ 'customers' ] = Customer::paginate(15);
31 31
         return view('customers/index', $data);
32 32
     }
33 33
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function register()
40 40
     {
41
-        $data['countries'] = Countries::all();
41
+        $data[ 'countries' ] = Countries::all();
42 42
         return view('customers/register', $data);
43 43
     }
44 44
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function edit($id)
66 66
     {
67
-        $data['customer'] = Customer::where('id', $id)->get();
67
+        $data[ 'customer' ] = Customer::where('id', $id)->get();
68 68
         return view('customers/edit', $data);
69 69
     }
70 70
 }
Please login to merge, or discard this patch.
app/Departments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class Departments extends Model
8 8
 {
9
-    protected $fillable = ['name', 'manager'];
9
+    protected $fillable = [ 'name', 'manager' ];
10 10
 
11 11
     /**
12 12
      * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
Please login to merge, or discard this patch.