Completed
Push — master ( b27204...a2c64d )
by Nate
05:15 queued 02:48
created

DeleteUserType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 19
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
A find() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/organization/license
6
 * @link       https://www.flipboxfactory.com/software/organization/
7
 */
8
9
namespace flipbox\organizations\actions\users;
10
11
use flipbox\craft\ember\actions\records\DeleteRecord;
12
use flipbox\organizations\records\UserType;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class DeleteUserType extends DeleteRecord
19
{
20
    /**
21
     * @inheritdoc
22
     */
23
    public function run($type)
24
    {
25
        return parent::run($type);
26
    }
27
28
    /**
29
     * @inheritdoc
30
     * @return UserType
31
     */
32
    protected function find($identifier)
33
    {
34
        return UserType::findOne($identifier);
0 ignored issues
show
Bug Compatibility introduced by
The expression \flipbox\organizations\r...::findOne($identifier); of type yii\db\ActiveRecordInterface|array|null adds the type array to the return on line 34 which is incompatible with the return type documented by flipbox\organizations\ac...rs\DeleteUserType::find of type flipbox\organizations\records\UserType|null.
Loading history...
35
    }
36
}
37