We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbfe3a6 commit de830fbCopy full SHA for de830fb
1 file changed
src/Client.php
@@ -17,18 +17,18 @@ public function __construct($config)
17
{
18
$this->config = $config;
19
$this->company_id = $this->config['company_id'];
20
- $this->checkTokens();
21
if (function_exists('storage_path')) {
22
$this->file = storage_path('token.ini');
23
}
+ $this->checkTokens();
24
25
26
public function checkTokens()
27
28
try {
29
$tokens = parse_ini_file($this->file);
30
} catch (\Exception $e) {
31
- unlink($this->file);
+ @unlink($this->file);
32
33
34
if (! isset($tokens['access_token']) || ! isset($tokens['created_at'])) {
0 commit comments