SecurityTxtWellKnownController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A actions() 0 4 1
1
<?php
2
3
namespace rhertogh\Yii2SecurityTxt\controllers\web;
4
5
use rhertogh\Yii2SecurityTxt\controllers\web\wellknown\SecurityTxtAction;
6
use rhertogh\Yii2SecurityTxt\SecurityTxtModule;
7
use yii\web\Controller;
8
9
/**
10
 * @property SecurityTxtModule $module
11
 * @since 1.0.0
12
 */
13
class SecurityTxtWellKnownController extends Controller
14
{
15
    public const CONTROLLER_NAME = 'well-known';
16
    public const ACTION_NAME_SECURITY_TXT = 'security.txt';
17
18
    /**
19
     * @inheritDoc
20
     */
21 2
    public function actions()
22
    {
23 2
        return [
24 2
            static::ACTION_NAME_SECURITY_TXT => SecurityTxtAction::class,
25 2
        ];
26
    }
27
}
28