Passed
Pull Request — master (#356)
by Denys
05:13
created

OauthWarehouseConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
dl 0
loc 18
rs 10
c 3
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllowedUserScopes() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace Pyz\Zed\OauthWarehouse;
9
10
use Spryker\Zed\OauthWarehouse\OauthWarehouseConfig as SprykerOauthWarehouseConfig;
11
12
class OauthWarehouseConfig extends SprykerOauthWarehouseConfig
13
{
14
    /**
15
     * @uses \Spryker\Zed\OauthUserConnector\OauthUserConnectorConfig::SCOPE_BACK_OFFICE_USER
16
     *
17
     * @var string
18
     */
19
    protected const SCOPE_BACK_OFFICE_USER = 'back-office-user';
20
21
    /**
22
     * {@inheritDoc}
23
     *
24
     * @return list<string>
25
     */
26
    public function getAllowedUserScopes(): array
27
    {
28
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(static::SCOPE_BACK_OFFICE_USER) returns the type array<integer,string> which is incompatible with the documented return type Pyz\Zed\OauthWarehouse\list.
Loading history...
29
            static::SCOPE_BACK_OFFICE_USER,
30
        ];
31
    }
32
}
33