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

SearchPagesByDescriptionHandler::editQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 11
rs 9.4286
cc 1
eloc 9
nc 1
nop 1
1
<?php
2
3
namespace app\components\search;
4
5
6
use app\modules\page\models\Page;
7
8
class SearchPagesByDescriptionHandler implements SearchInterface
9
{
10
    public static function editQuery(SearchEvent $event)
11
    {
12
        $event->activeQuery->select('`id`')
13
            ->from(Page::tableName())
14
            ->orWhere('`title` LIKE :q')
15
            ->orWhere('`h1` LIKE :q')
16
            ->orWhere('`content` LIKE :q')
17
            ->addParams([':q' => '%' . $event->q . '%'])
18
            ->andWhere('published=1')
19
            ->andWhere('searchable=1');
20
    }
21
}