Passed
Pull Request — master (#17)
by ARCANEDEV
05:21
created

AuthServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A policyClasses() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanesoft\Media\Providers;
6
7
use Arcanesoft\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
8
9
/**
10
 * Class     AuthServiceProvider
11
 *
12
 * @package  Arcanesoft\Media\Providers
13
 * @author   ARCANEDEV <[email protected]>
14
 */
15
class AuthServiceProvider extends ServiceProvider
16
{
17
    /* -----------------------------------------------------------------
18
     |  Getters
19
     | -----------------------------------------------------------------
20
     */
21
22
    /**
23
     * Get policy's classes.
24
     *
25
     * @return iterable
26
     */
27
    public function policyClasses(): iterable
28
    {
29
        return $this->app['config']->get('arcanesoft.media.policies', []);
30
    }
31
}
32