Passed
Push — master ( e6c475...db71b9 )
by Darío
04:47
created
module/Workarea/Module.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@  discard block
 block discarded – undo
9 9
 
10 10
 class Module extends AbstractionModule
11 11
 {
12
-	public function init(AbstractionController  $c)
13
-	{
14
-		$config = $this->getUserConfig("Auth");
15
-		$_config = $this->toFormConfig($config);
12
+    public function init(AbstractionController  $c)
13
+    {
14
+        $config = $this->getUserConfig("Auth");
15
+        $_config = $this->toFormConfig($config);
16 16
 
17
-		# config constraints
17
+        # config constraints
18 18
 
19 19
         $components = [
20 20
             "attributes" => [
@@ -86,21 +86,21 @@  discard block
 block discarded – undo
86 86
         {
87 87
             case '_COOKIE':
88 88
 
89
-		        if (!array_key_exists($key, $_COOKIE) || empty($_COOKIE[$key]))
90
-		            header("location: " . $c->basePath ."/public/". "Auth");
89
+                if (!array_key_exists($key, $_COOKIE) || empty($_COOKIE[$key]))
90
+                    header("location: " . $c->basePath ."/public/". "Auth");
91 91
 
92 92
                 break;
93 93
 
94 94
             case '_SESSION':
95 95
 
96
-		        if (!array_key_exists($key, $_SESSION) || empty($_SESSION[$key]))
97
-		            header("location: " . $c->basePath ."/public/". "Auth");
96
+                if (!array_key_exists($key, $_SESSION) || empty($_SESSION[$key]))
97
+                    header("location: " . $c->basePath ."/public/". "Auth");
98 98
 
99 99
                 break;
100 100
         }
101 101
 
102 102
         $this->setTranslator($c);
103
-	}
103
+    }
104 104
 
105 105
     private function setTranslator(AbstractionController $c)
106 106
     {
@@ -122,30 +122,30 @@  discard block
 block discarded – undo
122 122
         $c->translator = new \Zend\Mvc\I18n\Translator($i18nTranslator);
123 123
     }
124 124
 
125
-	public function getUserConfig($module)
126
-	{
127
-		return include __DIR__ . "/../$module/config/user.config.php";
128
-	}
129
-
130
-	private function toFormConfig($config)
131
-	{
132
-		$new_config = [];
133
-		$again = false;
134
-
135
-		foreach ($config as $param => $configure)
136
-		{
137
-			if (is_array($configure))
138
-			{
139
-				foreach ($configure as $key => $value)
140
-				{
141
-					$again = true;
142
-					$new_config[$param . "_" . $key] = $value;
143
-				}
144
-			}
145
-			else
146
-				$new_config[$param] = $configure;
147
-		}
148
-
149
-		return (!$again) ? $new_config : $this->toFormConfig($new_config);
150
-	}
125
+    public function getUserConfig($module)
126
+    {
127
+        return include __DIR__ . "/../$module/config/user.config.php";
128
+    }
129
+
130
+    private function toFormConfig($config)
131
+    {
132
+        $new_config = [];
133
+        $again = false;
134
+
135
+        foreach ($config as $param => $configure)
136
+        {
137
+            if (is_array($configure))
138
+            {
139
+                foreach ($configure as $key => $value)
140
+                {
141
+                    $again = true;
142
+                    $new_config[$param . "_" . $key] = $value;
143
+                }
144
+            }
145
+            else
146
+                $new_config[$param] = $configure;
147
+        }
148
+
149
+        return (!$again) ? $new_config : $this->toFormConfig($new_config);
150
+    }
151 151
 }
152 152
\ No newline at end of file
Please login to merge, or discard this patch.
module/Catcher/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.