Revert "Coding convention applied - part 1"

This commit is contained in:
Hypolite Petovan 2017-03-21 12:02:59 -04:00 committed by GitHub
parent 9c2c483996
commit 7b352f3f74
181 changed files with 3507 additions and 4338 deletions

View file

@ -50,7 +50,7 @@ class ForumManager {
if (!$contacts)
return($forumlist);
foreach ($contacts as $contact) {
foreach($contacts as $contact) {
$forumlist[] = array(
'url' => $contact['url'],
'name' => $contact['name'],
@ -76,7 +76,7 @@ class ForumManager {
*/
public static function widget($uid,$cid = 0) {
if (! intval(feature_enabled(local_user(),'forumlist_widget')))
if(! intval(feature_enabled(local_user(),'forumlist_widget')))
return;
$o = '';
@ -92,7 +92,7 @@ class ForumManager {
$id = 0;
foreach ($contacts as $contact) {
foreach($contacts as $contact) {
$selected = (($cid == $contact['id']) ? ' forum-selected' : '');
@ -136,7 +136,7 @@ class ForumManager {
public static function profile_advanced($uid) {
$profile = intval(feature_enabled($uid,'forumlist_profile'));
if (! $profile)
if(! $profile)
return;
$o = '';
@ -151,20 +151,16 @@ class ForumManager {
$total_shown = 0;
foreach ($contacts as $contact) {
foreach($contacts as $contact) {
$forumlist .= micropro($contact,false,'forumlist-profile-advanced');
$total_shown ++;
if ($total_shown == $show_total) {
if($total_shown == $show_total)
break;
}
}
if (count($contacts) > 0) {
if(count($contacts) > 0)
$o .= $forumlist;
}
return $o;
return $o;
}
/**