We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35c1db2 + 489e53c commit f04c432Copy full SHA for f04c432
src/Client.php
@@ -17,9 +17,7 @@ public function __construct($config)
17
{
18
$this->config = $config;
19
$this->company_id = $this->config['company_id'];
20
- if (function_exists('storage_path')) {
21
- $this->file = storage_path('token.ini');
22
- }
+ $this->file = function_exists('storage_path') ? storage_path('token.ini') : realpath(__DIR__ . '/token.ini');
23
$this->checkTokens();
24
}
25
0 commit comments