Skip to content

Commit 5f1f6d3

Browse files
Cleanup
1 parent 66061d9 commit 5f1f6d3

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

app/Http/Controllers/Api/ComponentGroupController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ public function postGroups()
7979
*/
8080
public function putGroup(ComponentGroup $group)
8181
{
82-
$groupData = array_filter(Binput::only(['name', 'order']));
83-
8482
try {
8583
$group = $this->dispatch(new UpdateComponentGroupCommand(
8684
$group,

app/Http/Controllers/Dashboard/TeamController.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,7 @@ public function postAddUser()
9696
*/
9797
public function postUpdateUser(User $user)
9898
{
99-
$userData = array_filter(Binput::only([
100-
'username',
101-
'email',
102-
'password',
103-
'level',
104-
]));
99+
$userData = array_filter(Binput::only(['username', 'email', 'password', 'level']));
105100

106101
try {
107102
$user->update($userData);

app/Http/Controllers/Dashboard/UserController.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ public function showUser()
4040
*/
4141
public function postUser()
4242
{
43-
$userData = array_filter(Binput::only([
44-
'username',
45-
'email',
46-
'password',
47-
'google2fa',
48-
]));
43+
$userData = array_filter(Binput::only(['username', 'email', 'password', 'google2fa']));
4944

5045
$enable2FA = (bool) array_pull($userData, 'google2fa');
5146

0 commit comments

Comments
 (0)