| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | private function setScope($scope) |
||
| 43 | { |
||
| 44 | if ($scope !== null && ! in_array($scope, self::DEFAULT_SCOPES)) { |
||
| 45 | throw new \InvalidArgumentException(sprintf("%s is not a valid scope", $scope)); |
||
| 46 | } |
||
| 47 | |||
| 48 | if ($scope === null) { |
||
| 49 | $this->googleClient->setScopes(self::DEFAULT_SCOPES); |
||
| 50 | } else { |
||
| 51 | $this->googleClient->addScope($scope); |
||
| 52 | } |
||
| 63 |