@@ -15,27 +15,27 @@ |
||
| 15 | 15 | const USER_ENABLED = 1; |
| 16 | 16 | |
| 17 | 17 | const USER_STATUS = [ |
| 18 | - 0 => [ 'text' => 'users.disabled', |
|
| 18 | + 0 => ['text' => 'users.disabled', |
|
| 19 | 19 | 'icon' => '', |
| 20 | - 'unicon' => '' ], |
|
| 21 | - 1 => [ 'text' => 'users.enabled', |
|
| 20 | + 'unicon' => ''], |
|
| 21 | + 1 => ['text' => 'users.enabled', |
|
| 22 | 22 | 'icon' => 'fa-check', |
| 23 | - 'unicon' => '' ] |
|
| 23 | + 'unicon' => ''] |
|
| 24 | 24 | ]; |
| 25 | 25 | |
| 26 | 26 | const USER_LEVEL = [ |
| 27 | - 1 => [ 'text' => 'users.access.local', |
|
| 27 | + 1 => ['text' => 'users.access.local', |
|
| 28 | 28 | 'icon' => 'fa-support', |
| 29 | - 'unicon' => '' ], |
|
| 30 | - 3 => [ 'text' => 'users.access.global', |
|
| 29 | + 'unicon' => ''], |
|
| 30 | + 3 => ['text' => 'users.access.global', |
|
| 31 | 31 | 'icon' => 'fa-globe', |
| 32 | - 'unicon' => '' ], |
|
| 33 | - 5 => [ 'text' => 'users.access.admin', |
|
| 32 | + 'unicon' => ''], |
|
| 33 | + 5 => ['text' => 'users.access.admin', |
|
| 34 | 34 | 'icon' => 'fa-shield', |
| 35 | - 'unicon' => '' ], |
|
| 36 | - 9 => [ 'text' => 'users.access.super', |
|
| 35 | + 'unicon' => ''], |
|
| 36 | + 9 => ['text' => 'users.access.super', |
|
| 37 | 37 | 'icon' => 'fa-rocket', |
| 38 | - 'unicon' => '' ], |
|
| 38 | + 'unicon' => ''], |
|
| 39 | 39 | ]; |
| 40 | 40 | |
| 41 | 41 | const SEARCH_CRITERIA = [ |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | { |
| 102 | 102 | $group = Group::findOrFail($id); |
| 103 | 103 | $accounts = Group::Find($id)->accounts()->where('status', Account::ACCOUNT_DISABLE); |
| 104 | - if (count($accounts) > 0 ) { |
|
| 104 | + if (count($accounts) > 0) { |
|
| 105 | 105 | $accounts->delete(); |
| 106 | 106 | } |
| 107 | 107 | return redirect()->back()->with( |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use App\User; |
|
| 6 | 5 | use Auth; |
| 7 | 6 | |
| 8 | 7 | class UserController extends Controller |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | { |
| 95 | 95 | $category = Category::findOrFail($id); |
| 96 | 96 | $accounts = $category->accounts()->where('status', Account::ACCOUNT_DISABLE); |
| 97 | - if (count($accounts) > 0 ) { |
|
| 97 | + if (count($accounts) > 0) { |
|
| 98 | 98 | $accounts->delete(); |
| 99 | 99 | } |
| 100 | 100 | return redirect()->back()->with( |