Passed
Pull Request — master (#184)
by
unknown
03:55
created
src/Helpers/misc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 function _message(string $subject, $params): string
49 49
 {
50 50
     if (is_array($params)) {
51
-        return preg_replace_callback('/{%\d+}/', function () use (&$params) {
51
+        return preg_replace_callback('/{%\d+}/', function() use (&$params) {
52 52
             return array_shift($params);
53 53
         }, $subject);
54 54
     } else {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     for ($i = 0; $i < $length; $i++) {
157 157
         $randomString .= rand(0, 9);
158 158
     }
159
-    return (int)$randomString;
159
+    return (int) $randomString;
160 160
 }
161 161
 
162 162
 /**
Please login to merge, or discard this patch.
src/Libraries/Database/Schema/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
      */
328 328
     private function columnKey(): int
329 329
     {
330
-        return (int)array_key_last($this->columns);
330
+        return (int) array_key_last($this->columns);
331 331
     }
332 332
 
333 333
 }
Please login to merge, or discard this patch.
src/Console/QtConsole.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,13 +90,13 @@
 block discarded – undo
90 90
             Config::getInstance()->load(new Setup('config', 'config'));
91 91
 
92 92
             if (config()->get('multilang')) {
93
-                Lang::getInstance((int)config()->get(Lang::LANG_SEGMENT))->load();
93
+                Lang::getInstance((int) config()->get(Lang::LANG_SEGMENT))->load();
94 94
             }
95 95
 
96 96
             return $this->application->run($input, $output);
97 97
         } catch (\Throwable $throwable) {
98 98
             $output->writeln("<error>" . $throwable->getMessage() . "</error>");
99
-            return (int)$throwable->getCode();
99
+            return (int) $throwable->getCode();
100 100
         }
101 101
     }
102 102
 
Please login to merge, or discard this patch.
src/Console/Commands/MigrationMigrateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             }
75 75
         }
76 76
 
77
-        $step = (int)$this->getOption('step') ?: null;
77
+        $step = (int) $this->getOption('step') ?: null;
78 78
 
79 79
         $migrationManager = new MigrationManager();
80 80
 
Please login to merge, or discard this patch.
src/Libraries/Curl/HttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $this->client = new MultiCurl();
97 97
 
98
-        $this->client->complete(function (Curl $instance) {
98
+        $this->client->complete(function(Curl $instance) {
99 99
             $this->handleResponse($instance);
100 100
         });
101 101
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
         $headers = [];
374 374
 
375 375
         while ($httpHeaders->valid()) {
376
-            $headers[strtolower((string)$httpHeaders->key())] = $httpHeaders->current();
376
+            $headers[strtolower((string) $httpHeaders->key())] = $httpHeaders->current();
377 377
             $httpHeaders->next();
378 378
         }
379 379
 
Please login to merge, or discard this patch.
src/Http/Request/HttpRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         self::$__query = self::$server->query();
98 98
 
99
-        self::$__headers = array_change_key_case((array)getallheaders(), CASE_LOWER);
99
+        self::$__headers = array_change_key_case((array) getallheaders(), CASE_LOWER);
100 100
 
101 101
         list('params' => $params, 'files' => $files) = self::parsedParams();
102 102
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         $csrfToken = null;
242 242
 
243 243
         if (self::has(Csrf::TOKEN_KEY)) {
244
-            $csrfToken = (string)self::get(Csrf::TOKEN_KEY);
244
+            $csrfToken = (string) self::get(Csrf::TOKEN_KEY);
245 245
         } elseif (self::hasHeader('X-' . Csrf::TOKEN_KEY)) {
246 246
             $csrfToken = self::getHeader('X-' . Csrf::TOKEN_KEY);
247 247
         }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     {
258 258
         $bearerToken = null;
259 259
 
260
-        $authorization = (string)self::getHeader('Authorization');
260
+        $authorization = (string) self::getHeader('Authorization');
261 261
 
262 262
         if (self::hasHeader('Authorization')) {
263 263
             if (preg_match('/Bearer\s(\S+)/', $authorization, $matches)) {
Please login to merge, or discard this patch.
src/Http/Response/HttpResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
      * @param array $arr
302 302
      * @param SimpleXMLElement $simpleXML
303 303
      */
304
-    private static function composeXML(array $arr, SimpleXMLElement &$simpleXML)
304
+    private static function composeXML(array $arr, SimpleXMLElement & $simpleXML)
305 305
     {
306 306
         foreach ($arr as $key => $value) {
307 307
             if (is_numeric($key)) {
Please login to merge, or discard this patch.
src/Libraries/JWToken/JWToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
      */
159 159
     public function fetchData(): ?array
160 160
     {
161
-        return isset($this->fetchedPayload->data) ? (array)$this->fetchedPayload->data : null;
161
+        return isset($this->fetchedPayload->data) ? (array) $this->fetchedPayload->data : null;
162 162
     }
163 163
 
164 164
     /**
Please login to merge, or discard this patch.
src/Libraries/Storage/Adapters/Dropbox/DropboxApp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@
 block discarded – undo
300 300
             return false;
301 301
         }
302 302
 
303
-        $error = (array)$message->error;
303
+        $error = (array) $message->error;
304 304
 
305 305
         if (!isset($error['.tag']) && !in_array($error['.tag'], self::ACCESS_TOKEN_STATUS)) {
306 306
             return false;
Please login to merge, or discard this patch.