Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

Commit

Permalink
base_uri should be constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed May 15, 2018
1 parent 38c3711 commit 6fa4c14
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/E621.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,16 @@ class E621
/**
* Library version
*
* @var string
* @const string
*/
const VERSION = '0.1.0';
const VERSION = '0.1.1';

/**
* Base URL for API calls
*
* @const string
*/
const BASE_URI = 'https://e621.net';

/**
* List of supported API methods and their execution settings
Expand Down Expand Up @@ -715,13 +722,6 @@ class E621
],
];

/**
* Base URL for API calls
*
* @var string
*/
private $base_uri = 'https://e621.net';

/**
* Guzzle's Client object
*
Expand Down Expand Up @@ -765,7 +765,7 @@ public function __construct($user_agent, array $custom_options = null)
}

$options = [
'base_uri' => $this->base_uri,
'base_uri' => self::BASE_URI,
'headers' => [
'User-Agent' => $user_agent . ' (E621API/' . self::VERSION . ' Guzzle/' . Client::VERSION . ' PHP/' . PHP_VERSION . ')',
'Accept' => 'application/json',
Expand Down

0 comments on commit 6fa4c14

Please sign in to comment.