Passed
Push — master ( a3e60c...72c09c )
by Richan
12:04
created

helpers.php ➔ blameable_user()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
nc 2
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
if (!function_exists('blameable_user')) {
4
    /**
5
     * Get the blameable User identifier.
6
     *
7
     * @return mixed
8
     */
9
    function blameable_user()
10
    {
11
        return ($user = \Auth::user()) ? $user->getKey() : null;
12
    }
13
}
14