{$scope}) && $scope !== 'scopes') { return boolval($this->{$scope}); } if ($this->manager && $this->scopes && preg_match('/^(\w+):(.+)$/', $scope, $matches)) { if ($this->scopes === true) { return true; } if (is_array($this->scopes) && in_array($scope, $this->scopes)) { return true; } if (is_array($this->scopes) && in_array($matches[1] . ':*', $this->scopes)) { return true; } } return false; } }