| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | private function getCredentials() |
||
| 45 | { |
||
| 46 | if (file_exists(__DIR__.'/../../../app/config/credentials/credentials.json')) { |
||
| 47 | $this->path = __DIR__.'/../../../app/config/credentials/credentials.json'; |
||
| 48 | |||
| 49 | return $this->path; |
||
| 50 | } else { |
||
| 51 | throw new \Google_Exception('Credentials is not valid'); |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 62 |