Test Failed
Branch master (4a7e9e)
by Paulão
05:28
created
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * @author   PaulaoDev <[email protected]>
8 8
  */
9 9
 
10
-$url = urldecode(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
10
+$url = urldecode(parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH));
11 11
 if ($url !== '/' && file_exists(__DIR__ . '/public' . $url)) {
12 12
 	return false;
13 13
 }
Please login to merge, or discard this patch.
config/strategy/MyStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 		const logout = "../login";
12 12
 
13 13
 		// Ignore key init session
14
-		const ignoreSession = ["password"];
14
+		const ignoreSession = [ "password" ];
15 15
 
16 16
 		const login = [
17 17
 			// fields POST and COLUMNS
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
 			"email", "password", "name", "icone"
24 24
 		];
25 25
 
26
-		public static function extendsRegister($data){
26
+		public static function extendsRegister($data) {
27 27
 			// event
28 28
 			return $data;
29 29
 		}
30 30
 
31
-		public static function extendsValidate($data){
31
+		public static function extendsValidate($data) {
32 32
 			// event
33 33
 			return $data;
34 34
 		}
Please login to merge, or discard this patch.
config/strategy/AuthStrategy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 		const logout = "../login";
12 12
 
13 13
 		// Ignore key init session
14
-		const ignoreSession = ["password"];
14
+		const ignoreSession = [ "password" ];
15 15
 
16 16
 		const login = [
17 17
 			// fields POST and COLUMNS
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 			"email", "password", "name", "icone"
24 24
 		];
25 25
 
26
-		public static function extendsRegister($data){
27
-			$data["password"] = md5($data["password"]);
26
+		public static function extendsRegister($data) {
27
+			$data[ "password" ] = md5($data[ "password" ]);
28 28
 			return $data;
29 29
 		}
30 30
 
31
-		public static function extendsValidate($data){
32
-			$data["password"] = md5($data["password"]);
31
+		public static function extendsValidate($data) {
32
+			$data[ "password" ] = md5($data[ "password" ]);
33 33
 			return $data;
34 34
 		}
35 35
 
Please login to merge, or discard this patch.
config/routes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-Container::bind("teste", function () {
3
+Container::bind("teste", function() {
4 4
 	return "Comece o desenvolvimento!!";
5 5
 });
6 6
 
7
-Router::notFound(function ($req, $res) {
7
+Router::notFound(function($req, $res) {
8 8
 	$res->setStatusCode(404);
9 9
 	return die("Route not found insert in router!!");
10 10
 });
11 11
 
12
-Router::get('/', function ($req, $res) {
12
+Router::get('/', function($req, $res) {
13 13
 	$message = Container::get('teste')();
14 14
 	$res->render('index.html', [
15 15
 		'message' => $message,
16 16
 	]);
17 17
 });
18 18
 
19
-Router::get('/form', function ($req, $res) {
19
+Router::get('/form', function($req, $res) {
20 20
 	return $res->render('csrf.html');
21 21
 });
22 22
 
23
-Router::post('/form', function ($req, $res) {
23
+Router::post('/form', function($req, $res) {
24 24
 	return Router::csrf_token_verify($req->post('token'))
25 25
 	? 'verdadeiro' : 'falso';
26 26
 });
Please login to merge, or discard this patch.
config/app.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-    /*  Config Khan Framework  */
3
+	/*  Config Khan Framework  */
4 4
 
5
-    return [
5
+	return [
6 6
 
7
-      "timezone" => "America/Brasilia",
7
+	  "timezone" => "America/Brasilia",
8 8
 
9
-      /*  Config Strategy Hash */
9
+	  /*  Config Strategy Hash */
10 10
 
11
-      "strategy" => [
12
-          "hash" => "password_hash"
13
-      ]
11
+	  "strategy" => [
12
+		  "hash" => "password_hash"
13
+	  ]
14 14
 
15
-    ];
15
+	];
Please login to merge, or discard this patch.