Skip to content

Commit 93f39f2

Browse files
committed
- use psr-1
1 parent 82a0f9c commit 93f39f2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

dHttp/Client.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function put($fields = array(), array $options = array())
140140
public function get(array $options = array())
141141
{
142142
$this->addOptions($options);
143-
return $this->_exec();
143+
return $this->exec();
144144
}
145145

146146
/**
@@ -171,7 +171,7 @@ public function multi(array $handlers)
171171
if (!$item instanceof Client) {
172172
throw new \Exception('Handler should be object instance of dHttp\Client');
173173
}
174-
$res = $item->_init();
174+
$res = $item->init();
175175

176176
curl_multi_add_handle($mc, $res);
177177
$resources[] = $res;
@@ -209,9 +209,9 @@ public function multi(array $handlers)
209209
*
210210
* @return Response
211211
*/
212-
private function _exec()
212+
private function exec()
213213
{
214-
$ch = $this->_init();
214+
$ch = $this->init();
215215
// Collect response data
216216
$response = new Response(array(
217217
'response' => curl_exec($ch),
@@ -233,11 +233,11 @@ private function _exec()
233233
*
234234
* @return resource
235235
*/
236-
public function _init()
236+
public function init()
237237
{
238238
$ch = curl_init();
239239
// The initial parameters
240-
$this->_setCurlOptions($ch, $this->_options);
240+
$this->setCurlOptions($ch, $this->_options);
241241
return $ch;
242242
}
243243

@@ -248,7 +248,7 @@ public function _init()
248248
* @param array $options
249249
* @return void
250250
*/
251-
private function _setCurlOptions(&$ch, array $options)
251+
private function setCurlOptions(&$ch, array $options)
252252
{
253253
curl_setopt_array($ch, $options);
254254
}

0 commit comments

Comments
 (0)