Completed
Push — master ( fdda97...b0b47a )
by Arman
17s queued 11s
created
src/Middleware/MiddlewareManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $currentMiddleware = new $middlewareClass();
84 84
 
85 85
         if ($currentMiddleware instanceof QtMiddleware) {
86
-            list($modifiedRequest, $modifiedResponse) = $currentMiddleware->apply($request, $response, function ($request, $response) {
86
+            list($modifiedRequest, $modifiedResponse) = $currentMiddleware->apply($request, $response, function($request, $response) {
87 87
                 next($this->middlewares);
88 88
                 return [$request, $response];
89 89
             });
Please login to merge, or discard this patch.
src/Helpers/functions/misc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     function _message($subject, $params)
97 97
     {
98 98
         if (is_array($params)) {
99
-            return preg_replace_callback('/{%\d+}/', function () use (&$params) {
99
+            return preg_replace_callback('/{%\d+}/', function() use (&$params) {
100 100
                 return array_shift($params);
101 101
             }, $subject);
102 102
         } else {
Please login to merge, or discard this patch.
src/Libraries/Mailer/Mailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -478,7 +478,7 @@
 block discarded – undo
478 478
     {
479 479
         if (config()->get('debug')) {
480 480
             $this->mailer->SMTPDebug = 1;
481
-            $this->mailer->Debugoutput = function ($str, $level) {
481
+            $this->mailer->Debugoutput = function($str, $level) {
482 482
                 $this->log .= $str . '&';
483 483
                 session()->set('_qt_mailer_log', $this->log);
484 484
             };
Please login to merge, or discard this patch.
src/Http/HttpRequest.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     {
306 306
         $queryParams = self::$__query ? explode('&', self::$__query) : []; 
307 307
         array_push($queryParams, $key . '=' . $value);  
308
-        self::$__query =  implode('&', $queryParams);   
308
+        self::$__query = implode('&', $queryParams);   
309 309
     }
310 310
 
311 311
     /**
@@ -317,9 +317,9 @@  discard block
 block discarded – undo
317 317
     {  
318 318
         $query = explode('&', self::$__query);    
319 319
 
320
-        foreach($query as $items){
320
+        foreach ($query as $items) {
321 321
            $item = explode('=', $items); 
322
-           if($item[0] == $key){
322
+           if ($item[0] == $key) {
323 323
                 return $item[1];
324 324
            }
325 325
         }
@@ -363,8 +363,7 @@  discard block
 block discarded – undo
363 363
                 $data = self::$__request[$key];
364 364
             } else {
365 365
                 $data = is_array(self::$__request[$key]) ?
366
-                        filter_var_array(self::$__request[$key], FILTER_SANITIZE_STRING) :
367
-                        filter_var(self::$__request[$key], FILTER_SANITIZE_STRING);
366
+                        filter_var_array(self::$__request[$key], FILTER_SANITIZE_STRING) : filter_var(self::$__request[$key], FILTER_SANITIZE_STRING);
368 367
             }
369 368
         }
370 369
 
Please login to merge, or discard this patch.
src/Libraries/Validation/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -469,11 +469,11 @@
 block discarded – undo
469 469
      */
470 470
     protected function float(string $field, string $value, $param = null)
471 471
     {
472
-    if(empty($value)) {
472
+    if (empty($value)) {
473 473
     return true;
474 474
     }
475 475
 
476
-    if(  filter_var($value, FILTER_VALIDATE_FLOAT) === false) {
476
+    if (filter_var($value, FILTER_VALIDATE_FLOAT) === false) {
477 477
         $this->addError($field, 'float', $param);
478 478
     }
479 479
 }
Please login to merge, or discard this patch.
src/Mvc/MvcManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
             $callback = route_callback();
69 69
 
70
-            if ($callback){
70
+            if ($callback) {
71 71
                 call_user_func_array($callback, $this->getCallbackArgs($routeArgs, $callback, $request, $response));
72 72
             } else {
73 73
 
Please login to merge, or discard this patch.
src/Routes/Route.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             'module' => $this->module
90 90
         ];
91 91
 
92
-        if(is_callable($params[0])) {
92
+        if (is_callable($params[0])) {
93 93
             $this->currentRoute['callback'] = $params[0];
94 94
         } else {
95 95
             $this->currentRoute['controller'] = $params[0];
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function get($route, ...$params)
114 114
     {
115
-        return $this->add($route,'GET', ...$params);
115
+        return $this->add($route, 'GET', ...$params);
116 116
     }
117 117
 
118 118
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function post($route, ...$params)
125 125
     {
126
-        return $this->add($route,'POST', ...$params);
126
+        return $this->add($route, 'POST', ...$params);
127 127
     }
128 128
 
129 129
     /**
Please login to merge, or discard this patch.