Completed
Push — master ( b7c60d...6b701b )
by Dmitry
02:55 queued 25s
created

RegistrationController::actions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 0
cts 9
cp 0
rs 9.7
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hiam\mrdp\controllers;
4
5
use hiam\actions\ConfirmEmail;
6
use yii\web\Controller;
7
8
class RegistrationController extends Controller
9
{
10
    public function actions()
11
    {
12
        return [
13
            'client-confirm-email' => [
14
                'class' => ConfirmEmail::class,
15
                'actionAttributeName' => 'what',
16
                'actionAttributeValue' => 'clientConfirmEmail',
17
                'usernameAttributeName' => 'client',
18
            ],
19
            'contact-confirm-email' => [
20
                'class' => ConfirmEmail::class,
21
                'actionAttributeName' => 'what',
22
                'actionAttributeValue' => 'contactConfirmEmail',
23
                'usernameAttributeName' => 'client',
24
            ],
25
        ];
26
    }
27
}
28