Completed
Push — master ( d8fbea...c06e4f )
by Arman
28s queued 12s
created
src/Helpers/misc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 function _message(string $subject, $params): string
46 46
 {
47 47
     if (is_array($params)) {
48
-        return preg_replace_callback('/{%\d+}/', function () use (&$params) {
48
+        return preg_replace_callback('/{%\d+}/', function() use (&$params) {
49 49
             return array_shift($params);
50 50
         }, $subject);
51 51
     } else {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
  */
141 141
 function stop(Closure $closure = null)
142 142
 {
143
-    if($closure) {
143
+    if ($closure) {
144 144
         $closure();
145 145
     }
146 146
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     for ($i = 0; $i < $length; $i++) {
159 159
         $randomString .= rand(0, 9);
160 160
     }
161
-    return (int)$randomString;
161
+    return (int) $randomString;
162 162
 }
163 163
 
164 164
 /**
Please login to merge, or discard this patch.
src/Libraries/Csrf/Csrf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public static function generateToken(SessionStorageInterface $storage, string $key): ?string
47 47
     {
48
-        if (!self::$token ) {
48
+        if (!self::$token) {
49 49
             self::deleteToken($storage);
50 50
             self::$token = base64_encode($key);
51 51
             self::setToken($storage, self::$token);
Please login to merge, or discard this patch.
src/Libraries/Lang/Lang.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
             throw LangException::misconfiguredDefaultConfig();
105 105
         }
106 106
 
107
-        if (empty($lang) || !in_array($lang, (array)config()->get('langs'))) {
107
+        if (empty($lang) || !in_array($lang, (array) config()->get('langs'))) {
108 108
             $lang = config()->get('lang_default');
109 109
         }
110 110
 
Please login to merge, or discard this patch.
src/Libraries/Curl/Curl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $responseHeaders = [];
161 161
 
162 162
         while ($this->responseHeaders->valid()) {
163
-            $responseHeaders[strtolower((string)$this->responseHeaders->key())] = $this->responseHeaders->current();
163
+            $responseHeaders[strtolower((string) $this->responseHeaders->key())] = $this->responseHeaders->current();
164 164
             $this->responseHeaders->next();
165 165
         }
166 166
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     private function fetch(): Curl
221 221
     {
222 222
         if ($this->curl instanceof MultiCurl) {
223
-            $this->curl->complete(function ($instance) {
223
+            $this->curl->complete(function($instance) {
224 224
                 if ($instance->error) {
225 225
                     $this->errors[] = [
226 226
                         'code' => $instance->getErrorCode(),
Please login to merge, or discard this patch.
src/Libraries/Storage/LocalFileSystemAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function fileName(string $path): string
184 184
     {
185
-        return (string)pathinfo($path, PATHINFO_FILENAME);
185
+        return (string) pathinfo($path, PATHINFO_FILENAME);
186 186
     }
187 187
 
188 188
     /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function extension(string $path): string
194 194
     {
195
-        return (string)pathinfo($path, PATHINFO_EXTENSION);
195
+        return (string) pathinfo($path, PATHINFO_EXTENSION);
196 196
     }
197 197
 
198 198
     /**
Please login to merge, or discard this patch.
src/Routes/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
 
115 115
         if (filter_var(config()->get('debug'), FILTER_VALIDATE_BOOLEAN)) {
116 116
             $routeInfo = [];
117
-            array_walk($matchedRoute, function ($value, $key) use (&$routeInfo) {
117
+            array_walk($matchedRoute, function($value, $key) use (&$routeInfo) {
118 118
                 $routeInfo[ucfirst($key)] = is_array($value) ? implode(', ', $value) : $value;
119 119
             });
120 120
             Debugger::addToStore(Debugger::ROUTES, LogLevel::INFO, $routeInfo);
Please login to merge, or discard this patch.
src/App.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 block discarded – undo
17 17
 use Quantum\Tracer\ErrorHandler;
18 18
 use Quantum\Di\Di;
19 19
 
20
-if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
20
+if (!defined('DS')) {
21
+    define('DS', DIRECTORY_SEPARATOR);
22
+}
21 23
 
22 24
 /**
23 25
  * Class App
Please login to merge, or discard this patch.
src/Console/QtConsole.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function init(string $baseDir): int
56 56
     {
57
-        App::loadCoreFunctions($baseDir.  DS . 'vendor' . DS .'quantum' . DS . 'framework' . DS . 'src' . DS . 'Helpers');
57
+        App::loadCoreFunctions($baseDir . DS . 'vendor' . DS . 'quantum' . DS . 'framework' . DS . 'src' . DS . 'Helpers');
58 58
 
59 59
         App::setBaseDir($baseDir);
60 60
 
Please login to merge, or discard this patch.