Passed
Push — master ( f173b7...c5754d )
by Darío
04:54 queued 26s
created
module/Catcher/config/user.config.php 1 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,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
 return [
39 39
 	'project' => [
40
-		'name' => ifdef('PROJECT NAME', ["project", "name"]),			# The name of your project
40
+		'name' => ifdef('PROJECT NAME', ["project", "name"]), # The name of your project
41 41
 	],
42 42
     'output' => [
43 43
         'cache'
Please login to merge, or discard this patch.
module/Catcher/Module.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
                 $data["messages"] = $validator->getMessages();
54 54
                 throw new \Exception("Module config errros in user.config!", 300);
55 55
             }
56
-        }
57
-        catch (\Exception $e)
56
+        } catch (\Exception $e)
58 57
         {
59 58
             $file = str_replace('\\', '', __CLASS__);
60 59
             $storage = new \Drone\Exception\Storage("cache/$file.json");
@@ -85,10 +84,11 @@  discard block
 block discarded – undo
85 84
             $layoutManager->setParams($data);
86 85
 
87 86
             # for AJAX requests!
88
-            if ($c->isXmlHttpRequest())
89
-                $layoutManager->content();
90
-            else
91
-                $layoutManager->fromTemplate($this, 'blank');
87
+            if ($c->isXmlHttpRequest()) {
88
+                            $layoutManager->content();
89
+            } else {
90
+                            $layoutManager->fromTemplate($this, 'blank');
91
+            }
92 92
         }
93 93
 	}
94 94
 
Please login to merge, or discard this patch.
config/global.config.php 1 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.