summaryrefslogtreecommitdiff
path: root/actions/showstream.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 /actions/showstream.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 'actions/showstream.php')
-rw-r--r--actions/showstream.php42
1 files changed, 28 insertions, 14 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 485c2e3d1..c31bce87a 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -26,7 +26,8 @@ define('SUBSCRIPTIONS', 80);
class ShowstreamAction extends StreamAction {
- function handle($args) {
+ function handle($args)
+ {
parent::handle($args);
@@ -76,7 +77,8 @@ class ShowstreamAction extends StreamAction {
common_show_footer();
}
- function show_top($user) {
+ function show_top($user)
+ {
$cur = common_current_user();
if ($cur && $cur->id == $user->id) {
@@ -100,7 +102,8 @@ class ShowstreamAction extends StreamAction {
'item' => 'foaf')));
}
- function show_header($user) {
+ function show_header($user)
+ {
# Feeds
common_element('link', array('rel' => 'alternate',
'href' => common_local_url('api',
@@ -153,11 +156,13 @@ class ShowstreamAction extends StreamAction {
array('nickname' => $profile->nickname))));
}
- function no_such_user() {
+ function no_such_user()
+ {
$this->client_error(_('No such user.'), 404);
}
- function show_profile($profile) {
+ function show_profile($profile)
+ {
common_element_start('div', array('id' => 'profile', 'class' => 'vcard'));
@@ -172,7 +177,8 @@ class ShowstreamAction extends StreamAction {
common_element_end('div');
}
- function show_personal($profile) {
+ function show_personal($profile)
+ {
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
common_element_start('div', array('id' => 'profile_avatar'));
@@ -246,7 +252,8 @@ class ShowstreamAction extends StreamAction {
common_element_end('div');
}
- function show_remote_subscribe_link($profile) {
+ function show_remote_subscribe_link($profile)
+ {
$url = common_local_url('remotesubscribe',
array('nickname' => $profile->nickname));
common_element('a', array('href' => $url,
@@ -254,7 +261,8 @@ class ShowstreamAction extends StreamAction {
_('Subscribe'));
}
- function show_unsubscribe_form($profile) {
+ function show_unsubscribe_form($profile)
+ {
common_element_start('form', array('id' => 'unsubscribe', 'method' => 'post',
'action' => common_local_url('unsubscribe')));
common_hidden('token', common_session_token());
@@ -268,7 +276,8 @@ class ShowstreamAction extends StreamAction {
common_element_end('form');
}
- function show_subscriptions($profile) {
+ function show_subscriptions($profile)
+ {
global $config;
$subs = DB_DataObject::factory('subscription');
@@ -340,7 +349,8 @@ class ShowstreamAction extends StreamAction {
common_element_end('div');
}
- function show_statistics($profile) {
+ function show_statistics($profile)
+ {
// XXX: WORM cache this
$subs = DB_DataObject::factory('subscription');
@@ -400,7 +410,8 @@ class ShowstreamAction extends StreamAction {
common_element_end('div');
}
- function show_notices($user) {
+ function show_notices($user)
+ {
$page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@@ -413,7 +424,8 @@ class ShowstreamAction extends StreamAction {
'showstream', array('nickname' => $user->nickname));
}
- function show_last_notice($profile) {
+ function show_last_notice($profile)
+ {
common_element('h2', null, _('Currently'));
@@ -438,13 +450,15 @@ class ShowstreamAction extends StreamAction {
# We don't show the author for a profile, since we already know who it is!
class ProfileNoticeList extends NoticeList {
- function newListItem($notice) {
+ function newListItem($notice)
+ {
return new ProfileNoticeListItem($notice);
}
}
class ProfileNoticeListItem extends NoticeListItem {
- function showAuthor() {
+ function showAuthor()
+ {
return;
}
}