CommerceRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 4 1
1
<?php
2
3
namespace Finder\Http\Requests\Commerce;
4
5
use Illuminate\Support\Facades\Gate;
6
use Finder\Http\Requests\Request;
7
use Population\Models\Feature;
8
9
abstract class CommerceRequest extends Request
10
{
11
    /**
12
     * Determine if the user is authorized to make this request.
13
     *
14
     * @return bool
15
     */
16
    public function authorize()
17
    {
18
        return true; //@todo Fazer Gate::allows('has-feature', Feature::find('commerce'));
19
    }
20
}
21