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::getByYmlParam()   B

Complexity

Conditions 5
Paths 8

Size

Total Lines 22
Code Lines 14

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 22
rs 8.6737
cc 5
eloc 14
nc 8
nop 4
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