8000 Use camelCase for method names · mkhader88/codebird-php@c8a0484 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit c8a0484

Browse files
committed
Use camelCase for method names
1 parent 1b6479f commit c8a0484

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/codebird.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ public function oauth_authorize($force_login = NULL, $screen_name = NULL)
423423
public function oauth2_token()
424424
{
425425
if ($this->_use_curl) {
426-
return $this->_oauth2_token_curl();
426+
return $this->_oauth2_tokenCurl();
427427
}
428-
return $this->_oauth2_token_no_curl();
428+
return $this->_oauth2_tokenNoCurl();
429429
}
430430

431431
/**
@@ -434,7 +434,7 @@ public function oauth2_token()
434434
* @return string The OAuth bearer token
435435
*/
436436

437-
protected function _oauth2_token_curl()
437+
protected function _oauth2_tokenCurl()
438438
{
439439
if (self::$_oauth_consumer_key === null) {
440440
throw new \Exception('To obtain a bearer token, the consumer key must be set.');
@@ -498,7 +498,7 @@ protected function _oauth2_token_curl()
498498
* @return string The OAuth bearer token
499499
*/
500500

501-
protected function _oauth2_token_no_curl()
501+
protected function _oauth2_tokenNoCurl()
502502
{
503503
if (self::$_oauth_consumer_key == null) {
504504
throw new \Exception('To obtain a bearer token, the consumer key must be set.');
@@ -1170,9 +1170,9 @@ protected function _callApi($httpmethod, $method, $params = array(), $multipart
11701170
throw new \Exception('To call this API, the OAuth access token must be set.');
11711171
}
11721172
if ($this->_use_curl) {
1173-
return $this->_callApi_curl($httpmethod, $method, $params, $multipart, $app_only_auth, $internal);
1173+
return $this->_callApiCurl($httpmethod, $method, $params, $multipart, $app_only_auth, $internal);
11741174
}
1175-
return $this->_callApi_no_curl($httpmethod, $method, $params, $multipart, $app_only_auth, $internal);
1175+
return $this->_callApiNoCurl($httpmethod, $method, $params, $multipart, $app_only_auth, $internal);
11761176
}
11771177

11781178
/**
@@ -1188,7 +1188,7 @@ protected function _callApi($httpmethod, $method, $params = array(), $multipart
11881188
* @return mixed The API reply, encoded in the set return_format
11891189
*/
11901190

1191-
protected function _callApi_curl($httpmethod, $method, $params = array(), $multipart = false, $app_only_auth = false, $internal = false)
1191+
protected function _callApiCurl($httpmethod, $method, $params = array(), $multipart = false, $app_only_auth = false, $internal = false)
11921192
{
11931193
if ($internal) {
11941194
$params['adc'] = 'phone';
@@ -1295,7 +1295,7 @@ protected function _callApi_curl($httpmethod, $method, $params = array(), $multi
12951295
* @return mixed The API reply, encoded in the set return_format
12961296
*/
12971297

1298-
protected function 51AD _callApi_no_curl($httpmethod, $method, $params = array(), $multipart = false, $app_only_auth = false, $internal = false)
1298+
protected function _callApiNoCurl($httpmethod, $method, $params = array(), $multipart = false, $app_only_auth = false, $internal = false)
12991299
{
13001300
if ($internal) {
13011301
$params['adc'] = 'phone';

0 commit comments

Comments
 (0)
0