Skip to content

Commit 474ea5e

Browse files
committed
Fixed check request
1 parent 164cefe commit 474ea5e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Clients/CLIClient.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ public function request($type, $file = null)
115115
return $this->cache[sha1($file)][$type];
116116
}
117117

118-
// check the request
119-
$file = parent::checkRequest($type, $file);
120-
121118
// command arguments
122119
$arguments = $this->getArguments($type, $file);
123120

121+
// check the request
122+
$file = parent::checkRequest($type, $file);
123+
124124
// add last argument
125125
if($file)
126126
{

src/Clients/WebClient.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ public function request($type, $file = null)
265265
$retries[sha1($file)] = $this->retries;
266266
}
267267

268-
// check the request
269-
$file = parent::checkRequest($type, $file);
270-
271268
// parameters for cURL request
272269
list($resource, $headers) = $this->getParameters($type, $file);
273270

271+
// check the request
272+
$file = parent::checkRequest($type, $file);
273+
274274
// cURL options
275275
$options = $this->getCurlOptions($type, $file);
276276

0 commit comments

Comments
 (0)