Skip to content

Commit

Permalink
renamed buildRequest -> build
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 22, 2017
1 parent 7340b9c commit 8718fc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getQuery()
return $this->query;
}

protected function buildRequest()
protected function build()
{
if ($this->isBuilt === null) {
if (!empty($this->query)) {
Expand Down Expand Up @@ -189,7 +189,7 @@ public function getParts()
{
if (empty($this->parts)) {
$this->getWorker();
$this->buildRequest();
$this->build();
foreach (['dbname', 'method', 'uri', 'headers', 'body', 'version'] as $key) {
$this->parts[$key] = $this->{$key};
}
Expand Down
2 changes: 1 addition & 1 deletion src/ProxyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function send($options = [])
public function getWorker()
{
if ($this->worker === null) {
$this->buildRequest();
$this->build();
$this->worker = $this->createWorker();
}

Expand Down

0 comments on commit 8718fc3

Please sign in to comment.