@@ -39,12 +39,12 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | private function accountSummary() |
| 41 | 41 | { |
| 42 | - $list = [ 'total' => 0, 'summary' => []]; |
|
| 42 | + $list = ['total' => 0, 'summary' => []]; |
|
| 43 | 43 | $categories = Category::orderBy('name', 'asc')->get(); |
| 44 | 44 | foreach ($categories as $category) { |
| 45 | 45 | $count = Account::where('category_id', $category->id)->count(); |
| 46 | 46 | if ($count) { |
| 47 | - $list['summary'][]= [ |
|
| 47 | + $list['summary'][] = [ |
|
| 48 | 48 | 'count' => $count, |
| 49 | 49 | 'text' => $category->name |
| 50 | 50 | ]; |
@@ -56,11 +56,11 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | private function groupSummary() |
| 58 | 58 | { |
| 59 | - $list = [ 'total' => 0, 'summary' => []]; |
|
| 59 | + $list = ['total' => 0, 'summary' => []]; |
|
| 60 | 60 | $groups = Group::orderBy('name', 'asc')->get(); |
| 61 | 61 | foreach ($groups as $group) { |
| 62 | 62 | $count = Account::where('group_id', $group->id)->count(); |
| 63 | - $list['summary'][]= [ |
|
| 63 | + $list['summary'][] = [ |
|
| 64 | 64 | 'count' => $count, |
| 65 | 65 | 'text' => $group->name |
| 66 | 66 | ]; |
@@ -71,12 +71,12 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | private function listSummary() |
| 73 | 73 | { |
| 74 | - $list = [ 'total' => 0, 'summary' => [] ]; |
|
| 75 | - $types = [ 'domain', 'url' ]; |
|
| 74 | + $list = ['total' => 0, 'summary' => []]; |
|
| 75 | + $types = ['domain', 'url']; |
|
| 76 | 76 | foreach ($types as $type) { |
| 77 | 77 | $count = ProxyListItem::where('type', $type)->count(); |
| 78 | 78 | if ($count) { |
| 79 | - $list['summary'][]= [ |
|
| 79 | + $list['summary'][] = [ |
|
| 80 | 80 | 'count' => $count, |
| 81 | 81 | 'text' => "{$type}s" |
| 82 | 82 | ]; |
@@ -88,11 +88,11 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | private function userSummary() |
| 90 | 90 | { |
| 91 | - $list = [ 'total' => 0, 'summary' => []]; |
|
| 91 | + $list = ['total' => 0, 'summary' => []]; |
|
| 92 | 92 | foreach (User::USER_LEVEL as $id => $level) { |
| 93 | 93 | $count = User::where('level', $id)->count(); |
| 94 | 94 | if ($count) { |
| 95 | - $list['summary'][]= [ |
|
| 95 | + $list['summary'][] = [ |
|
| 96 | 96 | 'count' => $count, |
| 97 | 97 | 'text' => $level['text'] |
| 98 | 98 | ]; |