| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace DarkGold\Salesforce\TokenStore; |
||
| 45 | public function fetchAccessToken() |
||
| 46 | { |
||
| 47 | try { |
||
| 48 | $accessTokenJson = file_get_contents($this->filePath . '/' . $this->fileName); |
||
| 49 | } catch (\ErrorException $e) { |
||
| 50 | throw new \Exception('Salesforce access token not found'); |
||
| 51 | } |
||
| 52 | |||
| 53 | return $this->accessTokenGenerator->createFromJson($accessTokenJson); |
||
| 54 | } |
||
| 55 | |||
| 64 |