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

src/actions/organizations/ViewOrganizationType.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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\ViewRecord;
12
use flipbox\organizations\records\OrganizationType;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class ViewOrganizationType extends ViewRecord
19
{
20
    /**
21
     * @inheritdoc
22
     */
23
    public function run($type)
24
    {
25
        return parent::run($type);
26
    }
27
28
    /**
29
     * @inheritdoc
30
     * @return OrganizationType
31
     */
32
    protected function find($identifier)
33
    {
34
        return OrganizationType::findOne($identifier);
0 ignored issues
show
Bug Compatibility introduced by Nate Iler
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...wOrganizationType::find of type flipbox\organizations\re...s\OrganizationType|null.
Loading history...
35
    }
36
}
37