Issues (150)

src/models/Oauth2ClientScope.php (1 issue)

Severity
1
<?php
2
3
namespace rhertogh\Yii2Oauth2Server\models;
4
5
use rhertogh\Yii2Oauth2Server\interfaces\models\Oauth2ClientScopeInterface;
6
7
class Oauth2ClientScope extends base\Oauth2ClientScope implements Oauth2ClientScopeInterface
8
{
9
    /**
10
     * @inheritDoc
11
     */
12 3
    public function getAppliedByDefault()
13
    {
14 3
        $appliedByDefault = $this->applied_by_default;
15 3
        return $appliedByDefault !== null ? (int)$appliedByDefault : null;
0 ignored issues
show
The condition $appliedByDefault !== null is always true.
Loading history...
16
    }
17
18
    /**
19
     * @inheritDoc
20
     */
21 3
    public function getRequiredOnAuthorization()
22
    {
23 3
        return $this->required_on_authorization === null ? null : (bool)$this->required_on_authorization;
24
    }
25
}
26