UsersDashboardController::totalUsers()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
1
<?php
2
3
namespace Acacha\Users\Http\Controllers;
4
use App\User;
5
6
/**
7
 * Class UsersDashboardController.
8
 *
9
 * @package Acacha\Users\Http\Controllers
10
 */
11
class UsersDashboardController extends Controller
12
{
13
    /**
14
     * Show users dashboard
15
     */
16
    public function index()
17
    {
18
        $this->authorize('see-users-dashboard');
19
        $data = [];
20
21
        return view('acacha_users::dashboard', $data);
22
    }
23
24
    /**
25
     * @return int
26
     */
27
    public function totalUsers()
28
    {
29
//        $this->authorize('obtain-users-dashboard-info');
0 ignored issues
show
Unused Code Comprehensibility introduced by
75% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
30
        return User::all()->count();
31
    }
32
33
    public function totalUserInvitations()
34
    {
35
36
    }
37
38
    public function pendingUserInvitations()
39
    {
40
41
    }
42
43
    public function acceptedUserInvitations()
44
    {
45
46
    }
47
}
48