Passed
Push — master ( f173b7...c5754d )
by Darío
04:54 queued 26s
created
module/NotFound/config/module.config.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 return [
4 4
     'router' => [
5 5
         'routes' => [
6
-        	'NotFound' => [
7
-        		'module' => 'NotFound',
8
-        		'controller' => '',
9
-        		'view' => ''
10
-        	]
6
+            'NotFound' => [
7
+                'module' => 'NotFound',
8
+                'controller' => '',
9
+                'view' => ''
10
+            ]
11 11
         ],
12 12
     ],
13 13
     'view_manager' => [
Please login to merge, or discard this patch.
module/NotFound/config/user.config.php 3 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -2,41 +2,41 @@
 block discarded – undo
2 2
 
3 3
 if (!function_exists('ifdef'))
4 4
 {
5
-	function ifdef($value, Array $array)
6
-	{
7
-		$global = __DIR__  . '/../../../config/global.config.php';
5
+    function ifdef($value, Array $array)
6
+    {
7
+        $global = __DIR__  . '/../../../config/global.config.php';
8 8
 
9
-		if (file_exists($global))
10
-		{
11
-			$key = array_shift($array);
12
-			$in  = include $global;
9
+        if (file_exists($global))
10
+        {
11
+            $key = array_shift($array);
12
+            $in  = include $global;
13 13
 
14
-			do
15
-			{
16
-				if (is_array($in))
17
-				{
18
-					if (array_key_exists($key, $in))
19
-						$in = $in[$key];
20
-					else
21
-						return $value;
22
-				}
23
-				else
24
-					return $value;
14
+            do
15
+            {
16
+                if (is_array($in))
17
+                {
18
+                    if (array_key_exists($key, $in))
19
+                        $in = $in[$key];
20
+                    else
21
+                        return $value;
22
+                }
23
+                else
24
+                    return $value;
25 25
 
26
-				$key = ($array) ? array_shift($array) : NULL;
26
+                $key = ($array) ? array_shift($array) : NULL;
27 27
 
28
-				if (!$key)
29
-					return $in;
28
+                if (!$key)
29
+                    return $in;
30 30
 
31
-			} while($key);
32
-		}
33
-		else
34
-			return $value;
35
-	}
31
+            } while($key);
32
+        }
33
+        else
34
+            return $value;
35
+    }
36 36
 }
37 37
 
38 38
 return [
39
-	'project' => [
40
-		'name' => ifdef('PROTOTYPE4', ["project", "name"]),			# The name of your project
41
-	],
39
+    'project' => [
40
+        'name' => ifdef('PROTOTYPE4', ["project", "name"]),			# The name of your project
41
+    ],
42 42
 ];
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 {
5 5
 	function ifdef($value, Array $array)
6 6
 	{
7
-		$global = __DIR__  . '/../../../config/global.config.php';
7
+		$global = __DIR__ . '/../../../config/global.config.php';
8 8
 
9 9
 		if (file_exists($global))
10 10
 		{
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 				if (!$key)
29 29
 					return $in;
30 30
 
31
-			} while($key);
31
+			} while ($key);
32 32
 		}
33 33
 		else
34 34
 			return $value;
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
 
38 38
 return [
39 39
 	'project' => [
40
-		'name' => ifdef('PROTOTYPE4', ["project", "name"]),			# The name of your project
40
+		'name' => ifdef('PROTOTYPE4', ["project", "name"]), # The name of your project
41 41
 	],
42 42
 ];
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +12 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,23 +15,25 @@
 block discarded – undo
15 15
 			{
16 16
 				if (is_array($in))
17 17
 				{
18
-					if (array_key_exists($key, $in))
19
-						$in = $in[$key];
20
-					else
21
-						return $value;
18
+					if (array_key_exists($key, $in)) {
19
+											$in = $in[$key];
20
+					} else {
21
+											return $value;
22
+					}
23
+				} else {
24
+									return $value;
22 25
 				}
23
-				else
24
-					return $value;
25 26
 
26 27
 				$key = ($array) ? array_shift($array) : NULL;
27 28
 
28
-				if (!$key)
29
-					return $in;
29
+				if (!$key) {
30
+									return $in;
31
+				}
30 32
 
31 33
 			} while($key);
34
+		} else {
35
+					return $value;
32 36
 		}
33
-		else
34
-			return $value;
35 37
 	}
36 38
 }
37 39
 
Please login to merge, or discard this patch.
module/NotFound/Module.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 
8 8
 class Module extends AbstractionModule
9 9
 {
10
-	public function init(AbstractionController $c)
11
-	{
12
-		// init procedures
13
-	}
10
+    public function init(AbstractionController $c)
11
+    {
12
+        // init procedures
13
+    }
14 14
 }
15 15
\ No newline at end of file
Please login to merge, or discard this patch.
config/global.config.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -2,21 +2,21 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     'project' => [
5
-		'id'   => 'id8931896',              # Unique ID for the project
6
-		'name' => 'PHPStudio'           # The name of your project
5
+        'id'   => 'id8931896',              # Unique ID for the project
6
+        'name' => 'PHPStudio'           # The name of your project
7 7
     ],
8
-	'mail' => [
9
-		"noreply" => "",
10
-		"host"    => ""
11
-	],
12
-	"authentication" => [
13
-		"method"  => "_COOKIE",				# the method to store credentials (_COOKIE, _SESSION)
14
-		"key"     => "session_id6899112",		# the key in the array to store credentials
15
-	],
16
-	"database" => [
17
-	    /** TABLE PREFIX:
18
-	     * Database prefix of tables, specifically here, the prefix of entity gateway above.
19
-	     */
20
-		"prefix" => "PHS"
21
-	]
8
+    'mail' => [
9
+        "noreply" => "",
10
+        "host"    => ""
11
+    ],
12
+    "authentication" => [
13
+        "method"  => "_COOKIE",				# the method to store credentials (_COOKIE, _SESSION)
14
+        "key"     => "session_id6899112",		# the key in the array to store credentials
15
+    ],
16
+    "database" => [
17
+        /** TABLE PREFIX:
18
+         * Database prefix of tables, specifically here, the prefix of entity gateway above.
19
+         */
20
+        "prefix" => "PHS"
21
+    ]
22 22
 ];
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
     'project' => [
5
-		'id'   => 'id8931896',              # Unique ID for the project
5
+		'id'   => 'id8931896', # Unique ID for the project
6 6
 		'name' => 'PHPStudio'           # The name of your project
7 7
     ],
8 8
 	'mail' => [
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 		"host"    => ""
11 11
 	],
12 12
 	"authentication" => [
13
-		"method"  => "_COOKIE",				# the method to store credentials (_COOKIE, _SESSION)
14
-		"key"     => "session_id6899112",		# the key in the array to store credentials
13
+		"method"  => "_COOKIE", # the method to store credentials (_COOKIE, _SESSION)
14
+		"key"     => "session_id6899112", # the key in the array to store credentials
15 15
 	],
16 16
 	"database" => [
17 17
 	    /** TABLE PREFIX:
Please login to merge, or discard this patch.