Completed
Push — master ( e089fb...e812a5 )
by Mahmoud
03:46
created

GetAuthenticatedUserTask   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 1
1
<?php
2
3
namespace App\Containers\User\Tasks;
4
5
use App\Port\Task\Abstracts\Task;
6
use Illuminate\Support\Facades\Auth;
7
8
/**
9
 * Class GetAuthenticatedUserTask.
10
 *
11
 * @author Mahmoud Zalt <[email protected]>
12
 */
13
class GetAuthenticatedUserTask extends Task
14
{
15
16
    /**
17
     * @param $id
18
     *
19
     * @return  mixed
20
     */
21
    public function run()
22
    {
23
        $user = Auth::user();
24
25
        return $user;
26
    }
27
28
}
29