Completed
Push — develop ( 404ef8...8e1225 )
by Nate
02:57
created

DissociateUserFromOrganization   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 14
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A performAction() 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\organizations;
10
11
use flipbox\craft\ember\actions\records\DeleteRecordTrait;
12
use flipbox\organizations\records\UserAssociation;
13
use yii\base\Action;
14
15
/**
16
 * @author Flipbox Factory <[email protected]>
17
 * @since 3.0.0
18
 */
19
class DissociateUserFromOrganization extends Action
20
{
21
    use DeleteRecordTrait, LookupAssociationTrait;
22
23
    /**
24
     * @inheritdoc
25
     * @param UserAssociation $record
0 ignored issues
show
Bug introduced by
There is no parameter named $record. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
26
     * @return bool
27
     */
28
    protected function performAction(UserAssociation $association): bool
29
    {
30
        return $association->save();
31
    }
32
}
33