Passed
Push — master ( 2bd104...ffa3c7 )
by Darío
03:48
created
public/index.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 date_default_timezone_set("America/Bogota");
7 7
 
8 8
 // Memory limit
9
-ini_set("memory_limit","256M");
9
+ini_set("memory_limit", "256M");
10 10
 
11 11
 // Run application
12 12
 require_once("vendor/autoload.php");
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 try
15 15
 {
16
-	$config = include "config/application.config.php";
17
-	$mvc = new Drone\Mvc\Application($config);
18
-	$mvc->run();
16
+    $config = include "config/application.config.php";
17
+    $mvc = new Drone\Mvc\Application($config);
18
+    $mvc->run();
19 19
 }
20 20
 # to load only the error view
21 21
 catch (Drone\Mvc\Exception\ViewNotFoundException $e)
Please login to merge, or discard this patch.
module/Auth/source/Controller/LogIn.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $http = new Http();
87 87
             $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED);
88 88
 
89
-            die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
89
+            die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
90 90
         }
91 91
 
92 92
         $this->checkSession();
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 $http = new Http();
117 117
                 $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED);
118 118
 
119
-                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
119
+                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
120 120
             }
121 121
 
122 122
             # STANDARD VALIDATIONS [check needed arguments]
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     $http = new Http();
129 129
                     $http->writeStatus($http::HTTP_BAD_REQUEST);
130 130
 
131
-                    die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
131
+                    die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
132 132
                 }
133 133
             });
134 134
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
             foreach ($errors as $errno => $error)
269 269
             {
270 270
                 $errorInformation .=
271
-                    "<strong style='color: #a94442'>".
271
+                    "<strong style='color: #a94442'>" .
272 272
                         $method
273 273
                             . "</strong>: <span style='color: #e24f4c'>{$error}</span> \n<br />";
274 274
             }
Please login to merge, or discard this patch.
module/Auth/source/Controller/LogOut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             $http = new Http();
21 21
             $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED);
22 22
 
23
-            die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
23
+            die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
24 24
         }
25 25
 
26 26
         $config = include 'module/Auth/config/user.config.php';
Please login to merge, or discard this patch.
module/Auth/lang/en.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@
 block discarded – undo
3 3
 return [
4 4
     "Register form" => "Register form",
5 5
     "User registering" => "User registering",
6
-	"Username" => "Username",
7
-	"username" => "username",
8
-	"Email" => "Email",
9
-	"email" => "email",
10
-	"Password" => "Password",
11
-	"password" => "password",
6
+    "Username" => "Username",
7
+    "username" => "username",
8
+    "Email" => "Email",
9
+    "email" => "email",
10
+    "Password" => "Password",
11
+    "password" => "password",
12 12
     "Repeat your password" => "Repeat your password",
13 13
     "Register now" => "Register now",
14 14
     "Log in" => "Log in",
Please login to merge, or discard this patch.
module/Auth/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
-        	'Auth' => [
7
-        		'module' => 'Auth',
8
-        		'controller' => 'LogIn',
9
-        		'view' => 'index'
10
-        	]
6
+            'Auth' => [
7
+                'module' => 'Auth',
8
+                'controller' => 'LogIn',
9
+                'view' => 'index'
10
+            ]
11 11
         ],
12 12
     ],
13 13
     'view_manager' => [
Please login to merge, or discard this patch.
module/Utils/source/Model/Entity.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class Entity extends DbEntity
8 8
 {
9
-	// general table gateway
9
+    // general table gateway
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
module/Utils/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.
module/Utils/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
-        	'Utils' => [
7
-        		'module' => 'Utils',
8
-        		'controller' => '',
9
-        		'view' => ''
10
-        	]
6
+            'Utils' => [
7
+                'module' => 'Utils',
8
+                'controller' => '',
9
+                'view' => ''
10
+            ]
11 11
         ],
12 12
     ],
13 13
     'view_manager' => [
Please login to merge, or discard this patch.
module/Connections/source/Controller/Tools.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
                     $sql_text = strstr($sql_text, ';', true);
482 482
             }
483 483
 
484
-             # clean comments and other characters
484
+                # clean comments and other characters
485 485
 
486 486
             // (/**/)
487 487
             $clean_code = preg_replace('/(\s)*\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\//', '', $sql_text);
@@ -923,7 +923,7 @@  discard block
 block discarded – undo
923 923
                     $sql_text = strstr($sql_text, ';', true);
924 924
             }
925 925
 
926
-             # clean comments and other characters
926
+                # clean comments and other characters
927 927
 
928 928
             // (/**/)
929 929
             $clean_code = preg_replace('/(\s)*\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\//', '', $sql_text);
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -183,8 +183,8 @@  discard block
 block discarded – undo
183 183
         $data = [];
184 184
 
185 185
         # environment settings
186
-        $post = $this->getPost();           # catch $_POST
187
-        $this->setTerminal(true);           # set terminal
186
+        $post = $this->getPost(); # catch $_POST
187
+        $this->setTerminal(true); # set terminal
188 188
 
189 189
         # TRY-CATCH-BLOCK
190 190
         try {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
                 $http = new Http();
196 196
                 $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED);
197 197
 
198
-                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
198
+                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
199 199
             }
200 200
 
201 201
             $idenfiers = $this->getIdentifiersEntity()->select([]);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                         $http = new Http();
213 213
                         $http->writeStatus($http::HTTP_BAD_REQUEST);
214 214
 
215
-                        die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
215
+                        die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
216 216
                     }
217 217
                 });
218 218
 
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                         $http = new Http();
243 243
                         $http->writeStatus($http::HTTP_BAD_REQUEST);
244 244
 
245
-                        die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
245
+                        die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
246 246
                     }
247 247
                 });
248 248
 
@@ -361,14 +361,14 @@  discard block
 block discarded – undo
361 361
             $http = new Http();
362 362
             $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED);
363 363
 
364
-            die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
364
+            die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
365 365
         }
366 366
 
367 367
         # data to send
368 368
         $data = [];
369 369
 
370
-        $this->setTerminal(true);           # set terminal
371
-        $post = $this->getPost();           # catch $_POST
370
+        $this->setTerminal(true); # set terminal
371
+        $post = $this->getPost(); # catch $_POST
372 372
 
373 373
         $data["id"]   = $post["id"];
374 374
         $data["conn"] = $post["conn"];
@@ -390,8 +390,8 @@  discard block
 block discarded – undo
390 390
         $data = [];
391 391
 
392 392
         # environment settings
393
-        $post = $this->getPost();           # catch $_POST
394
-        $this->setTerminal(true);           # set terminal
393
+        $post = $this->getPost(); # catch $_POST
394
+        $this->setTerminal(true); # set terminal
395 395
 
396 396
         # TRY-CATCH-BLOCK
397 397
         try {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
                 $http = new Http();
403 403
                 $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED);
404 404
 
405
-                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
405
+                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
406 406
             }
407 407
 
408 408
             # STANDARD VALIDATIONS [check needed arguments]
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
                     $http = new Http();
415 415
                     $http->writeStatus($http::HTTP_BAD_REQUEST);
416 416
 
417
-                    die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
417
+                    die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
418 418
                 }
419 419
             });
420 420
 
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
                         $http = new Http();
545 545
                         $http->writeStatus($http::HTTP_BAD_REQUEST);
546 546
 
547
-                        die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
547
+                        die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
548 548
                     }
549 549
 
550 550
                     $row_start = $post["row_start"] + $step;
@@ -694,11 +694,11 @@  discard block
 block discarded – undo
694 694
 
695 695
                         if (gettype($value) == 'object')
696 696
                         {
697
-                            if  (get_class($value) == 'OCI-Lob')
697
+                            if (get_class($value) == 'OCI-Lob')
698 698
                             {
699 699
                                 if (($val = @$value->load()) === false)
700 700
                                 {
701
-                                    $val = null;   # only for default, this value is not used
701
+                                    $val = null; # only for default, this value is not used
702 702
                                     $column_errors[] = $column;
703 703
                                 }
704 704
 
@@ -778,8 +778,8 @@  discard block
 block discarded – undo
778 778
         $data = [];
779 779
 
780 780
         # environment settings
781
-        $post = $this->getPost();           # catch $_POST
782
-        $this->setTerminal(true);           # set terminal
781
+        $post = $this->getPost(); # catch $_POST
782
+        $this->setTerminal(true); # set terminal
783 783
 
784 784
         # TRY-CATCH-BLOCK
785 785
         try {
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
                 $http = new Http();
791 791
                 $http->writeStatus($http::HTTP_METHOD_NOT_ALLOWED);
792 792
 
793
-                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED .' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
793
+                die('Error ' . $http::HTTP_METHOD_NOT_ALLOWED . ' (' . $http->getStatusText($http::HTTP_METHOD_NOT_ALLOWED) . ')!!');
794 794
             }
795 795
 
796 796
             # STANDARD VALIDATIONS [check needed arguments]
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
                     $http = new Http();
803 803
                     $http->writeStatus($http::HTTP_BAD_REQUEST);
804 804
 
805
-                    die('Error ' . $http::HTTP_BAD_REQUEST .' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
805
+                    die('Error ' . $http::HTTP_BAD_REQUEST . ' (' . $http->getStatusText($http::HTTP_BAD_REQUEST) . ')!!');
806 806
                 }
807 807
             });
808 808
 
@@ -1085,11 +1085,11 @@  discard block
 block discarded – undo
1085 1085
 
1086 1086
                                 if (gettype($value) == 'object')
1087 1087
                                 {
1088
-                                    if  (get_class($value) == 'OCI-Lob')
1088
+                                    if (get_class($value) == 'OCI-Lob')
1089 1089
                                     {
1090 1090
                                         if (($val = @$value->load()) === false)
1091 1091
                                         {
1092
-                                            $val = null;   # only for default, this value is not used
1092
+                                            $val = null; # only for default, this value is not used
1093 1093
                                             $column_errors[] = $column;
1094 1094
                                         }
1095 1095
 
@@ -1111,7 +1111,7 @@  discard block
 block discarded – undo
1111 1111
 
1112 1112
                             foreach ($column_names as $column_name)
1113 1113
                             {
1114
-                                $table .= "\t\t\t<td>". $row[$column_name] ."</td>\r\n";
1114
+                                $table .= "\t\t\t<td>" . $row[$column_name] . "</td>\r\n";
1115 1115
                             }
1116 1116
 
1117 1117
                             $table .= "\t\t</tr>\r\n";
@@ -1153,11 +1153,11 @@  discard block
 block discarded – undo
1153 1153
 
1154 1154
                                 if (gettype($value) == 'object')
1155 1155
                                 {
1156
-                                    if  (get_class($value) == 'OCI-Lob')
1156
+                                    if (get_class($value) == 'OCI-Lob')
1157 1157
                                     {
1158 1158
                                         if (($val = @$value->load()) === false)
1159 1159
                                         {
1160
-                                            $val = null;   # only for default, this value is not used
1160
+                                            $val = null; # only for default, this value is not used
1161 1161
                                             $column_errors[] = $column;
1162 1162
                                         }
1163 1163
 
@@ -1258,7 +1258,7 @@  discard block
 block discarded – undo
1258 1258
             foreach ($errors as $errno => $error)
1259 1259
             {
1260 1260
                 $errorInformation .=
1261
-                    "<strong style='color: #a94442'>".
1261
+                    "<strong style='color: #a94442'>" .
1262 1262
                         $method
1263 1263
                             . "</strong>: <span style='color: #e24f4c'>{$error}</span> \n<br />";
1264 1264
             }
Please login to merge, or discard this patch.