Completed
Push — master ( 3c3f7e...cb27b7 )
by Mahmoud
03:18
created

ListUserApplicationsRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A rules() 0 4 1
A authorize() 0 4 1
1
<?php
2
3
namespace App\Containers\Application\UI\API\Requests;
4
5
use App\Port\Request\Abstracts\Request;
6
7
/**
8
 * Class ListUserApplicationsRequest.
9
 *
10
 * @author Mahmoud Zalt <[email protected]>
11
 */
12
class ListUserApplicationsRequest extends Request
13
{
14
15
    /**
16
     * @return  array
17
     */
18
    public function rules()
19
    {
20
21
    }
22
23
    /**
24
     * @return  bool
25
     */
26
    public function authorize()
27
    {
28
        return $this->user()->hasPermissionTo('list-applications');
29
    }
30
}
31