Completed
Push — develop ( 033e04...96a0e5 )
by Greg
03:36 queued 01:39
created
app/User.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
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 = [
Please login to merge, or discard this patch.
app/Http/Controllers/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/CategoryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.