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 — master ( e91cf6...3a6b3f )
by Alexander
10:43
created

YmlController::prepareProperties()   D

Complexity

Conditions 9
Paths 7

Size

Total Lines 32
Code Lines 22

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 32
rs 4.909
c 1
b 0
f 0
cc 9
eloc 22
nc 7
nop 0
1
<?php
2
namespace app\modules\shop\commands;
3
4
use app\modules\shop\models\Yml;
5
use Yii;
6
7
class YmlController extends \yii\console\Controller
8
{
9
    /**
10
     * @return bool
0 ignored issues
show
Documentation introduced by
Should the return type not be false|integer?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
11
     */
12
    public function actionGenerate()
13
    {
14
        $config = new Yml();
15
        if (false === $config->loadConfig()) {
16
            return false;
17
        }
18
19
        $yml = new \app\modules\shop\components\yml\Yml($config);
20
        return true === $yml->generate() ? 0 : 1;
21
    }
22
}
23