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

blameable_user()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 1
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 3
rs 10
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