summaryrefslogtreecommitdiff
path: root/actions/imsettings.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/imsettings.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/imsettings.php')
-rw-r--r--actions/imsettings.php27
1 files changed, 18 insertions, 9 deletions
diff --git a/actions/imsettings.php b/actions/imsettings.php
index 8f546f8e7..cccd5db49 100644
--- a/actions/imsettings.php
+++ b/actions/imsettings.php
@@ -24,11 +24,13 @@ require_once(INSTALLDIR.'/lib/jabber.php');
class ImsettingsAction extends SettingsAction {
- function get_instructions() {
+ function get_instructions()
+ {
return _('You can send and receive notices through Jabber/GTalk [instant messages](%%doc.im%%). Configure your address and settings below.');
}
- function show_form($msg=null, $success=false) {
+ function show_form($msg=null, $success=false)
+ {
$user = common_current_user();
$this->form_header(_('IM Settings'), $msg, $success);
common_element_start('form', array('method' => 'post',
@@ -85,7 +87,8 @@ class ImsettingsAction extends SettingsAction {
common_show_footer();
}
- function get_confirmation() {
+ function get_confirmation()
+ {
$user = common_current_user();
$confirm = new Confirm_address();
$confirm->user_id = $user->id;
@@ -97,7 +100,8 @@ class ImsettingsAction extends SettingsAction {
}
}
- function handle_post() {
+ function handle_post()
+ {
# CSRF protection
$token = $this->trimmed('token');
@@ -119,7 +123,8 @@ class ImsettingsAction extends SettingsAction {
}
}
- function save_preferences() {
+ function save_preferences()
+ {
$jabbernotify = $this->boolean('jabbernotify');
$updatefrompresence = $this->boolean('updatefrompresence');
@@ -152,7 +157,8 @@ class ImsettingsAction extends SettingsAction {
$this->show_form(_('Preferences saved.'), true);
}
- function add_address() {
+ function add_address()
+ {
$user = common_current_user();
@@ -207,7 +213,8 @@ class ImsettingsAction extends SettingsAction {
$this->show_form($msg, TRUE);
}
- function cancel_confirmation() {
+ function cancel_confirmation()
+ {
$jabber = $this->arg('jabber');
$confirm = $this->get_confirmation();
if (!$confirm) {
@@ -230,7 +237,8 @@ class ImsettingsAction extends SettingsAction {
$this->show_form(_('Confirmation cancelled.'), TRUE);
}
- function remove_address() {
+ function remove_address()
+ {
$user = common_current_user();
$jabber = $this->arg('jabber');
@@ -258,7 +266,8 @@ class ImsettingsAction extends SettingsAction {
$this->show_form(_('The address was removed.'), TRUE);
}
- function jabber_exists($jabber) {
+ function jabber_exists($jabber)
+ {
$user = common_current_user();
$other = User::staticGet('jabber', $jabber);
if (!$other) {