@@ -630,7 +630,7 @@ |
||
630 | 630 | |
631 | 631 | if (!$faq->getNumberOfVotings($recordId)) { |
632 | 632 | $faq->addVoting($votingData); |
633 | - } else { |
|
633 | + } else { |
|
634 | 634 | $faq->updateVoting($votingData); |
635 | 635 | } |
636 | 636 | $faqRating = new PMF_Rating($faqConfig); |
@@ -407,7 +407,7 @@ |
||
407 | 407 | onclick="saveStatus(<?php print $cid . ', [' . $record['id'] . ']' ?>, 'active', '<?php echo $user->getCsrfTokenFromSession() ?>');" |
408 | 408 | id="active_record_<?php print $cid . '_' . $record['id'] ?>" |
409 | 409 | <?php 'yes' == $record['active'] ? print 'checked="checked"' : print ' ' ?> /> |
410 | - <?php } else { ?> |
|
410 | + <?php } else { ?> |
|
411 | 411 | <span class="label label-important"><i class="icon-white icon-ban-circle"></i></span> |
412 | 412 | <?php } ?> |
413 | 413 | </td> |
@@ -210,8 +210,9 @@ discard block |
||
210 | 210 | 'auto_join' => $group_auto_join |
211 | 211 | ); |
212 | 212 | |
213 | - if ($user->perm->addGroup($group_data) <= 0) |
|
214 | - $messages[] = $PMF_LANG['ad_adus_dberr']; |
|
213 | + if ($user->perm->addGroup($group_data) <= 0) { |
|
214 | + $messages[] = $PMF_LANG['ad_adus_dberr']; |
|
215 | + } |
|
215 | 216 | } |
216 | 217 | // no errors, show list |
217 | 218 | if (count($messages) == 0) { |
@@ -228,8 +229,9 @@ discard block |
||
228 | 229 | } |
229 | 230 | } |
230 | 231 | |
231 | -if (!isset($message)) |
|
232 | +if (!isset($message)) { |
|
232 | 233 | $message = ''; |
234 | +} |
|
233 | 235 | |
234 | 236 | // show new group form |
235 | 237 | if ($groupAction == 'add' && $permission['addgroup']) { |
@@ -160,7 +160,7 @@ |
||
160 | 160 | $source . '/' . $file, |
161 | 161 | $dest . '/' . $directoryName . '/' . $file |
162 | 162 | ); |
163 | - } else { |
|
163 | + } else { |
|
164 | 164 | $this->recursiveCopy($source . '/' . $file, $dest . '/' . $directoryName); |
165 | 165 | } |
166 | 166 | } |
@@ -364,7 +364,9 @@ |
||
364 | 364 | if (count($matches[1])) { |
365 | 365 | $languages = array_combine($matches[1], $matches[4]); |
366 | 366 | foreach ($languages as $lang => $val) { |
367 | - if ($val === '') $languages[$lang] = 1; |
|
367 | + if ($val === '') { |
|
368 | + $languages[$lang] = 1; |
|
369 | + } |
|
368 | 370 | } |
369 | 371 | arsort($languages, SORT_NUMERIC); |
370 | 372 | } |
@@ -329,8 +329,7 @@ |
||
329 | 329 | if ($nextline < 1) { |
330 | 330 | $nextline = 2; |
331 | 331 | } |
332 | - } |
|
333 | - else { |
|
332 | + } else { |
|
334 | 333 | $nextline += rand(1, 7); |
335 | 334 | } |
336 | 335 | $w1 += rand(-4, 4); |
@@ -329,8 +329,7 @@ |
||
329 | 329 | if ($nextline < 1) { |
330 | 330 | $nextline = 2; |
331 | 331 | } |
332 | - } |
|
333 | - else { |
|
332 | + } else { |
|
334 | 333 | $nextline += rand(1, 7); |
335 | 334 | } |
336 | 335 | $w1 += rand(-4, 4); |
@@ -187,8 +187,9 @@ |
||
187 | 187 | // check user rights, set them TRUE |
188 | 188 | $allUserRights = $user->perm->getAllUserRights($user->getUserId()); |
189 | 189 | foreach ($allRights as $right) { |
190 | - if (in_array($right['right_id'], $allUserRights)) |
|
191 | - $this->permission[$right['name']] = true; |
|
190 | + if (in_array($right['right_id'], $allUserRights)) { |
|
191 | + $this->permission[$right['name']] = true; |
|
192 | + } |
|
192 | 193 | } |
193 | 194 | } |
194 | 195 |
@@ -595,8 +595,9 @@ discard block |
||
595 | 595 | if ($result) { |
596 | 596 | while ($row = $this->_config->getDb()->fetchObject($result)) { |
597 | 597 | $tags[$row->tagging_id] = $row->freq; |
598 | - if (--$limit === 0) |
|
599 | - break; |
|
598 | + if (--$limit === 0) { |
|
599 | + break; |
|
600 | + } |
|
600 | 601 | } |
601 | 602 | } |
602 | 603 | return $tags; |
@@ -632,10 +633,12 @@ discard block |
||
632 | 633 | */ |
633 | 634 | public function is_english($chr) |
634 | 635 | { |
635 | - if (($chr >= 'A') && ($chr <= 'Z')) |
|
636 | - return true; |
|
637 | - if (($chr >= 'a') && ($chr <= 'z')) |
|
638 | - return true; |
|
636 | + if (($chr >= 'A') && ($chr <= 'Z')) { |
|
637 | + return true; |
|
638 | + } |
|
639 | + if (($chr >= 'a') && ($chr <= 'z')) { |
|
640 | + return true; |
|
641 | + } |
|
639 | 642 | return false; |
640 | 643 | } |
641 | 644 | } |