Passed
Push — master ( 23853d...5334ba )
by Volodymyr
08:53
created

Area::getAllowedList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * Copyright (c) 2019. Volodymyr Hryvinskyi.  All rights reserved.
4
 * @author: <mailto:[email protected]>
5
 * @github: <https://github.com/hryvinskyi>
6
 */
7
8
declare(strict_types=1);
9
10
namespace Hryvinskyi\InvisibleCaptcha\Model;
11
12
use Magento\Framework\App\Area as BaseArea;
13
14
/**
15
 * Class Area
16
 */
17
class Area
18
{
19
    const GLOBAL = BaseArea::AREA_GLOBAL;
20
    const FRONTEND = BaseArea::AREA_FRONTEND;
21
    const BACKEND = BaseArea::AREA_ADMINHTML;
22
23
    /**
24
     * @return array
25
     */
26
    public function getAllowedList(): array
27
    {
28
        return [
29
            self::GLOBAL,
30
            self::BACKEND,
31
            self::FRONTEND,
32
        ];
33
    }
34
}
35