Passed
Push — master ( b0573e...b2a2f5 )
by Olha
05:18
created

AgentSecurityMerchantPortalGuiConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRoutePatternAgentMerchantPortalLogin() 0 3 1
A getRoutePatternAgentMerchantPortal() 0 3 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
declare(strict_types = 1);
9
10
namespace Pyz\Zed\AgentSecurityMerchantPortalGui;
11
12
use Spryker\Zed\AgentSecurityMerchantPortalGui\AgentSecurityMerchantPortalGuiConfig as SprykerAgentSecurityMerchantPortalGuiConfig;
13
14
class AgentSecurityMerchantPortalGuiConfig extends SprykerAgentSecurityMerchantPortalGuiConfig
15
{
16
    /**
17
     * @return string
18
     */
19
    public function getRoutePatternAgentMerchantPortal(): string
20
    {
21
        return '^/(agent(.+)-merchant-portal-gui|multi-factor-auth/(agent-merchant-user|user-management-agent-merchant-portal))(?!agent-security-merchant-portal-gui\/login$)/';
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    public function getRoutePatternAgentMerchantPortalLogin(): string
28
    {
29
        return '^/(agent-security-merchant-portal-gui/login|multi-factor-auth/agent-merchant-user($|/))';
30
    }
31
}
32