GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — filters ( 0da638...f31b5a )
by
unknown
16:04
created

GetImages::getImages()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 8

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 18
rs 9.4286
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace app\traits;
4
5
use app\modules\image\models\Image;
6
7
/**
8
 * Trait to create relation of images width object
9
 * Class GetImages
10
 * @package app\traits
11
 */
12
trait GetImages
13
{
14
    public function getImages()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
15
    {
16
        /**
17
         * @var $object \app\models\Object
18
         * @var $model \app\properties\HasProperties | \yii\db\ActiveRecord
19
         * @return \yii\db\ActiveQueryInterface
20
         */
21
        $model = $this;
22
        $object = $model->object;
0 ignored issues
show
Bug introduced by
The property object cannot be accessed from this context as it is declared private in class app\properties\HasProperties.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
23
        return $model->hasMany(Image::className(), ['object_model_id' => 'id'])->andWhere(
24
            ['object_id' => $object->id]
25
        )->addOrderBy(
26
            [
27
                'sort_order' => SORT_ASC,
28
                'id' => SORT_ASC
29
            ]
30
        );
31
    }
32
33
}
34