Continued a bit:
- converted some else if to elseif (only PHP) - converted some space -> tab (intending) Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
c2d8738285
commit
d9c22c7f3e
6 changed files with 42 additions and 30 deletions
|
@ -100,25 +100,25 @@ function notifications_content(App $a) {
|
|||
$notifs = $nm->introNotifs($all, $startrec, $perpage);
|
||||
|
||||
// Get the network notifications
|
||||
} else if (($a->argc > 1) && ($a->argv[1] == 'network')) {
|
||||
} elseif (($a->argc > 1) && ($a->argv[1] == 'network')) {
|
||||
|
||||
$notif_header = t('Network Notifications');
|
||||
$notifs = $nm->networkNotifs($show, $startrec, $perpage);
|
||||
|
||||
// Get the system notifications
|
||||
} else if (($a->argc > 1) && ($a->argv[1] == 'system')) {
|
||||
} elseif (($a->argc > 1) && ($a->argv[1] == 'system')) {
|
||||
|
||||
$notif_header = t('System Notifications');
|
||||
$notifs = $nm->systemNotifs($show, $startrec, $perpage);
|
||||
|
||||
// Get the personal notifications
|
||||
} else if (($a->argc > 1) && ($a->argv[1] == 'personal')) {
|
||||
} elseif (($a->argc > 1) && ($a->argv[1] == 'personal')) {
|
||||
|
||||
$notif_header = t('Personal Notifications');
|
||||
$notifs = $nm->personalNotifs($show, $startrec, $perpage);
|
||||
|
||||
// Get the home notifications
|
||||
} else if (($a->argc > 1) && ($a->argv[1] == 'home')) {
|
||||
} elseif (($a->argc > 1) && ($a->argv[1] == 'home')) {
|
||||
|
||||
$notif_header = t('Home Notifications');
|
||||
$notifs = $nm->homeNotifs($show, $startrec, $perpage);
|
||||
|
|
|
@ -32,7 +32,7 @@ function pubsubhubbub_init(App $a) {
|
|||
// check for valid hub_mode
|
||||
if ($hub_mode === 'subscribe') {
|
||||
$subscribe = 1;
|
||||
} else if ($hub_mode === 'unsubscribe') {
|
||||
} elseif ($hub_mode === 'unsubscribe') {
|
||||
$subscribe = 0;
|
||||
} else {
|
||||
logger("pubsubhubbub: invalid hub_mode=$hub_mode, ignoring.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue