Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lesstif committed Mar 11, 2019
1 parent c081b2d commit 373d57c
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Configuration/DotEnvConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,6 @@ public function __construct($path = '.')
{
$this->loadDotEnv($path);

/*
// support for dotenv 1.x and 2.x. see also https://github.com/lesstif/php-jira-rest-client/issues/102
if (class_exists('\Dotenv\Dotenv')) {
// check dotenv v3 or v2
//create
//Dotenv::create($app->environmentPath(), $app->environmentFile())->safeLoad();
$dotenv = new \Dotenv\Dotenv($path);
$dotenv->load();
$dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
} elseif (class_exists('\Dotenv')) {
\Dotenv::load($path);
\Dotenv::required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
} else {
throw new JiraException('can not load PHP dotenv class.!');
}
*/

$this->jiraHost = $this->env('JIRA_HOST');
$this->jiraUser = $this->env('JIRA_USER');
$this->jiraPassword = $this->env('JIRA_PASS');
Expand Down

0 comments on commit 373d57c

Please sign in to comment.