Passed
Push — Showing-Posts ( 1ec90b...1f11b9 )
by Stone
02:31
created
App/Controllers/Admin/Home.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         } elseif ($this->auth->isUser()) {
16 16
             $this->data['userRole'] = 'User';
17 17
             $this->data['userLevel'] = $this->auth->getUserLevel();
18
-        }else {
18
+        } else {
19 19
             $this->alertBox->setAlert("You must be connected to acces the admin interface", 'warning');
20 20
             $this->container->getResponse()->redirect();
21 21
         }
Please login to merge, or discard this patch.
Core/Traits/StringFunctions.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
         $trimed = '';
79 79
         for ( $wordCounter = 0; $wordCounter < $count; $wordCounter++ ){
80 80
             $trimed .= $string[$wordCounter];
81
-            if ( $wordCounter < $count-1 ){ $trimed .= " "; }
82
-            else { $trimed .= "..."; }
81
+            if ( $wordCounter < $count-1 ){ $trimed .= " "; } else { $trimed .= "..."; }
83 82
         }
84 83
         $trimed = trim($trimed);
85 84
         return $trimed;
Please login to merge, or discard this patch.