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

OauthWarehouseConfig::getAllowedUserScopes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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