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

YmlOffersEvent::setOffers()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
namespace app\modules\shop\events\yml;
3
4
use yii\base\Event;
5
6
class YmlOffersEvent extends Event
7
{
8
    private $offers = [];
9
10
    /**
11
     * @return array
12
     */
13
    public function getOffers()
14
    {
15
        return $this->offers;
16
    }
17
18
    /**
19
     * @param array $offers
20
     * @return YmlOffersEvent
21
     */
22
    public function setOffers($offers)
23
    {
24
        if (true === is_array($offers)) {
25
            $this->offers = $offers;
26
        }
27
28
        return $this;
29
    }
30
31
    /**
32
     * @return $this
33
     */
34
    public function clearHandled()
35
    {
36
        $this->handled = false;
37
        return $this;
38
    }
39
}
40