8000 Complying with PEAR standards. #14 · codezninja/codebird-php@032ba5a · GitHub
[go: up one dir, main page]

Skip to content

Commit 032ba5a

Browse files
committed
Complying with PEAR standards. jublo#14
1 parent b6481a6 commit 032ba5a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/codebird.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,12 @@ public function oauth_authenticate($force_login = NULL, $screen_name = NULL)
286286
throw new Exception('To get the authenticate URL, the OAuth token must be set.');
287287
}
288288
$url = self::$_endpoint_oauth . 'oauth/authenticate?oauth_token=' . $this->_url($this->_oauth_token);
289-
if($force_login) $url .= "&force_login=1";
290-
if($screen_name) $url .= "&screen_name=" . $screen_name;
289+
if ($force_login) {
290+
$url .= "&force_login=1";
291+
}
292+
if ($screen_name) {
293+
$url .= "&screen_name=" . $screen_name;
294+
}
291295
return $url;
292296
}
293297

@@ -302,8 +306,12 @@ public function oauth_authorize($force_login = NULL, $screen_name = NULL)
302306
throw new Exception('To get the authorize URL, the OAuth token must be set.');
303307
}
304308
$url = self::$_endpoint_oauth . 'oauth/authorize?oauth_token=' . $this->_url($this->_oauth_token);
305-
if($force_login) $url .= "&force_login=1";
306-
if($screen_name) $url .= "&screen_name=" . $screen_name;
309+
if ($force_login) {
310+
$url .= "&force_login=1";
311+
}
312+
if ($screen_name) {
313+
$url .= "&screen_name=" . $screen_name;
314+
}
307315
return $url;
308316
}
309317

0 commit comments

Comments
 (0)
0