Area   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllowedList() 0 6 1
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