summaryrefslogtreecommitdiff
path: root/lib/facebookaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-23 14:33:23 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-23 14:33:23 -0500
commit04ef1ba8eee7a9e2a565d7b4b747ef607665d562 (patch)
treed56ac33bd6bfb8f8641cc9f63b0f6af52b6edfb9 /lib/facebookaction.php
parenteb2f9c98ac115ce67e9a740b200c832153ffa05c (diff)
change function headers to K&R style
Another huge change, for PEAR code standards compliance. Function headers have to be in K&R style (opening brace on its own line), instead of having the opening brace on the same line as the function and parameters. So, a little perl magic found all the function definitions and move the opening brace to the next line (properly indented... usually). darcs-hash:20081223193323-84dde-a28e36ecc66672c783c2842d12fc11043c13ab28.gz
Diffstat (limited to 'lib/facebookaction.php')
-rw-r--r--lib/facebookaction.php30
1 files changed, 20 insertions, 10 deletions
diff --git a/lib/facebookaction.php b/lib/facebookaction.php
index 731460f12..43464b19b 100644
--- a/lib/facebookaction.php
+++ b/lib/facebookaction.php
@@ -23,17 +23,20 @@ require_once(INSTALLDIR.'/extlib/facebook/facebook.php');
class FacebookAction extends Action {
- function handle($args) {
+ function handle($args)
+ {
parent::handle($args);
}
- function get_facebook() {
+ function get_facebook()
+ {
$apikey = common_config('facebook', 'apikey');
$secret = common_config('facebook', 'secret');
return new Facebook($apikey, $secret);
}
- function update_profile_box($facebook, $fbuid, $user) {
+ function update_profile_box($facebook, $fbuid, $user)
+ {
$notice = $user->getCurrentNotice();
@@ -86,7 +89,8 @@ class FacebookAction extends Action {
# Display methods
- function show_header($selected ='Home') {
+ function show_header($selected ='Home')
+ {
# Add a timestamp to the CSS file so Facebook cache wont ignore our changes
$ts = filemtime(theme_file('facebookapp.css'));
@@ -108,12 +112,14 @@ class FacebookAction extends Action {
}
- function show_footer() {
+ function show_footer()
+ {
$footer = '</div>';
echo $footer;
}
- function show_login_form() {
+ function show_login_form()
+ {
$loginform =
' <h2>To add the Identi.ca application, you need to log into your Identi.ca account.</h2>'
@@ -148,7 +154,8 @@ class FacebookAction extends Action {
echo $loginform;
}
- function render_notice($notice) {
+ function render_notice($notice)
+ {
global $config;
@@ -207,7 +214,8 @@ class FacebookAction extends Action {
return $html;
}
- function source_link($source) {
+ function source_link($source)
+ {
$source_name = _($source);
$html = '<span class="noticesource">';
@@ -235,7 +243,8 @@ class FacebookAction extends Action {
return $html;
}
- function pagination($have_before, $have_after, $page, $fbaction, $args=null) {
+ function pagination($have_before, $have_after, $page, $fbaction, $args=null)
+ {
$html = '';
@@ -266,7 +275,8 @@ class FacebookAction extends Action {
}
}
- function pagination_url($fbaction, $args=null) {
+ function pagination_url($fbaction, $args=null)
+ {
global $config;
$extra = '';