CommerceRequest::authorize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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