| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 40 | private function getCredentials() |
||
| 41 | { |
||
| 42 | if (!file_exists(__DIR__.'/../../../app/config/credentials/credentials.json')) { |
||
| 43 | throw new \Google_Exception('Credentials is not valid'); |
||
| 44 | } |
||
| 45 | $this->path = __DIR__.'/../../../app/config/credentials/credentials.json'; |
||
| 46 | |||
| 47 | return $this->path; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |