Skip to content

Commit 373d57c

Browse files
committed
remove unused code
1 parent c081b2d commit 373d57c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Configuration/DotEnvConfiguration.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,6 @@ public function __construct($path = '.')
1818
{
1919
$this->loadDotEnv($path);
2020

21-
/*
22-
// support for dotenv 1.x and 2.x. see also https://github.com/lesstif/php-jira-rest-client/issues/102
23-
if (class_exists('\Dotenv\Dotenv')) {
24-
25-
// check dotenv v3 or v2
26-
//create
27-
//Dotenv::create($app->environmentPath(), $app->environmentFile())->safeLoad();
28-
$dotenv = new \Dotenv\Dotenv($path);
29-
30-
$dotenv->load();
31-
$dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
32-
} elseif (class_exists('\Dotenv')) {
33-
\Dotenv::load($path);
34-
\Dotenv::required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
35-
} else {
36-
throw new JiraException('can not load PHP dotenv class.!');
37-
}
38-
*/
39-
4021
$this->jiraHost = $this->env('JIRA_HOST');
4122
$this->jiraUser = $this->env('JIRA_USER');
4223
$this->jiraPassword = $this->env('JIRA_PASS');

0 commit comments

Comments
 (0)