Completed
Push — master ( 2a34d4...10baf1 )
by Adriel
08:49
created
Core/Exceptions/ExceptionHandler.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
     {
20 20
         if ($this->exception instanceof AuthException) {
21 21
             die('User must be logged in');
22
-        }else if ($this->exception instanceof NotCallableException) {
22
+        } else if ($this->exception instanceof NotCallableException) {
23 23
             die('Method not found');
24 24
         } if ($this->exception instanceof MethodNotAllowedException) {
25 25
             die('Not allowed');
26
-        }else {
26
+        } else {
27 27
             echo $this->exception->getMessage();
28 28
         }
29 29
     }
Please login to merge, or discard this patch.
Core/Helpers/Utils.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,8 +174,9 @@
 block discarded – undo
174 174
 	public static function generateToken($length = 20) {
175 175
 		if(function_exists('openssl_random_pseudo_bytes')) {
176 176
 			$token = base64_encode(openssl_random_pseudo_bytes($length, $strong));
177
-			if($strong == TRUE)
178
-				return strtr(substr($token, 0, $length), '+/=', '-_,');
177
+			if($strong == TRUE) {
178
+							return strtr(substr($token, 0, $length), '+/=', '-_,');
179
+			}
179 180
 		}
180 181
 
181 182
 		$characters = '0123456789';
Please login to merge, or discard this patch.
Core/Helpers/Paginate.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 			echo /** @lang text */ '<ul class="pagination">';
122 122
 			if($this->getCurrentPage() > 1){
123 123
 				echo /** @lang text */ '<li><a href="?page='.($this->getCurrentPage()-1).'" aria-label="Previous"><span aria-hidden="true">Anterior</span></a></li>';
124
-			}else{
124
+			} else{
125 125
 				echo /** @lang text */ '<li class="disabled"><a aria-label="Previous"><span aria-hidden="true">Anterior</span></a></li>';
126 126
 			}
127 127
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 			}
134 134
 			if($this->getCurrentPage() < $this->getTotal()){
135 135
 				echo /** @lang text */ '<li><a href="?page='.($this->getCurrentPage()+1).'" aria-label="Next"><span aria-hidden="true">Próxima</span></a></li>';
136
-			}else{
136
+			} else{
137 137
 				echo /** @lang text */ '<li class="disabled"><a aria-label="Next"><span aria-hidden="true">Próxima</span></a></li>';
138 138
 			}
139 139
 			echo '</ul>';
Please login to merge, or discard this patch.
Core/Application.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
            $this->capsuleDb->bootEloquent();
32 32
            $this->capsuleDb->setAsGlobal();
33 33
            $this->db = $this->capsuleDb->getConnection();
34
-       }catch (\PDOException $exc){
34
+       } catch (\PDOException $exc){
35 35
            die("Database ".Config::get('database.providers.pdo.database')." not found");
36 36
        }
37 37
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 			$controllerFullName = "\\App\\Controllers\\" . $routerParams["_controller"];
111 111
 			try{
112 112
 				return $this->di->call($controllerFullName."::".$routerParams["_method"], $controllerParams);
113
-			}catch (Exception $e){
113
+			} catch (Exception $e){
114 114
 				new ExceptionHandler($e);
115 115
 			}
116 116
 
Please login to merge, or discard this patch.
Core/Lib/Controller.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	public function hasFile($key) {
73 73
 		if($this->request->capture()->hasFile($key)){
74 74
 			return $this->request->capture()->file($key);
75
-		}else{
75
+		} else{
76 76
 			return $this->request->capture()->hasFile($key);
77 77
 		}
78 78
 	}
Please login to merge, or discard this patch.