Completed
Push — master ( 69686b...b3f98f )
by Arman
21s queued 16s
created
src/Http/Request/Body.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
                 $data = self::$__request[$key];
54 54
             } else {
55 55
                 $data = is_array(self::$__request[$key]) ?
56
-                    filter_var_array(self::$__request[$key], FILTER_SANITIZE_STRING) :
57
-                    filter_var(self::$__request[$key], FILTER_SANITIZE_STRING);
56
+                    filter_var_array(self::$__request[$key], FILTER_SANITIZE_STRING) : filter_var(self::$__request[$key], FILTER_SANITIZE_STRING);
58 57
             }
59 58
         }
60 59
 
Please login to merge, or discard this patch.
src/Libraries/Validation/Rules/Length.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
             $error = false;
43 43
 
44 44
             if (function_exists('mb_strlen')) {
45
-                if (mb_strlen($value) < (int)$param) {
45
+                if (mb_strlen($value) < (int) $param) {
46 46
                     $error = true;
47 47
                 }
48 48
             } else {
49
-                if (strlen($value) < (int)$param) {
49
+                if (strlen($value) < (int) $param) {
50 50
                     $error = true;
51 51
                 }
52 52
             }
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
             $error = false;
71 71
 
72 72
             if (function_exists('mb_strlen')) {
73
-                if (mb_strlen($value) > (int)$param) {
73
+                if (mb_strlen($value) > (int) $param) {
74 74
                     $error = true;
75 75
                 }
76 76
             } else {
77
-                if (strlen($value) > (int)$param) {
77
+                if (strlen($value) > (int) $param) {
78 78
                     $error = true;
79 79
                 }
80 80
             }
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
             $error = false;
100 100
 
101 101
             if (function_exists('mb_strlen')) {
102
-                if (mb_strlen($value) !== (int)$param) {
102
+                if (mb_strlen($value) !== (int) $param) {
103 103
                     $error = true;
104 104
                 }
105 105
             } else {
106
-                if (strlen($value) !== (int)$param) {
106
+                if (strlen($value) !== (int) $param) {
107 107
                     $error = true;
108 108
                 }
109 109
             }
Please login to merge, or discard this patch.
src/Libraries/Validation/Rules/Lists.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     protected function containsList(string $field, string $value, array $param)
63 63
     {
64 64
         if (!empty($value)) {
65
-            $param = array_map(function ($param) {
65
+            $param = array_map(function($param) {
66 66
                 return trim(strtolower($param));
67 67
             }, $param);
68 68
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     protected function doesntContainsList(string $field, string $value, array $param)
84 84
     {
85 85
         if (!empty($value)) {
86
-            $param = array_map(function ($param) {
86
+            $param = array_map(function($param) {
87 87
                 return trim(strtolower($param));
88 88
             }, $param);
89 89
 
Please login to merge, or discard this patch.
src/Http/Request/Params.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
             'size' => $fs->size($tempName),
235 235
         ]);
236 236
 
237
-        register_shutdown_function(function () use ($fs, $tempName) {
237
+        register_shutdown_function(function() use ($fs, $tempName) {
238 238
             $fs->remove($tempName);
239 239
         });
240 240
 
Please login to merge, or discard this patch.
src/Libraries/Validation/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
             foreach ($this->errors as $field => $errors) {
197 197
                 if (count($errors)) {
198 198
                     foreach ($errors as $rule => $param) {
199
-                        $translationParams = [t('common.'.$field)];
199
+                        $translationParams = [t('common.' . $field)];
200 200
 
201 201
                         if ($param) {
202 202
                             $translationParams[] = $param;
Please login to merge, or discard this patch.
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/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/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/Storage/Adapters/Dropbox/DropboxFileSystemAdapter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     public function get(string $filename)
89 89
     {
90 90
         try {
91
-            return (string)$this->dropboxApp->contentRequest(DropboxApp::ENDPOINT_DOWNLOAD_FILE, $this->dropboxApp->path($filename));
91
+            return (string) $this->dropboxApp->contentRequest(DropboxApp::ENDPOINT_DOWNLOAD_FILE, $this->dropboxApp->path($filename));
92 92
         } catch (Exception $e) {
93 93
             return false;
94 94
         }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     public function size(string $filename)
169 169
     {
170 170
         try {
171
-            $meta = (array)$this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($filename));
171
+            $meta = (array) $this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($filename));
172 172
             return $meta['size'];
173 173
         } catch (Exception $e) {
174 174
             return false;
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     public function lastModified(string $filename)
182 182
     {
183 183
         try {
184
-            $meta = (array)$this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($filename));
184
+            $meta = (array) $this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($filename));
185 185
             return isset($meta['server_modified']) ? strtotime($meta['server_modified']) : false;
186 186
         } catch (Exception $e) {
187 187
             return false;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     public function isFile(string $filename): bool
210 210
     {
211 211
         try {
212
-            $meta = (array)$this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($filename));
212
+            $meta = (array) $this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($filename));
213 213
             return $meta['.tag'] == 'file';
214 214
         } catch (Exception $e) {
215 215
             return false;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     public function isDirectory(string $dirname): bool
224 224
     {
225 225
         try {
226
-            $meta = (array)$this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($dirname));
226
+            $meta = (array) $this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_FILE_METADATA, $this->dropboxApp->path($dirname));
227 227
             return $meta['.tag'] == 'folder';
228 228
         } catch (Exception $e) {
229 229
             return false;
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     public function listDirectory(string $dirname)
237 237
     {
238 238
         try {
239
-            $response = (array)$this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_LIST_FOLDER, $this->dropboxApp->path($dirname));
239
+            $response = (array) $this->dropboxApp->rpcRequest(DropboxApp::ENDPOINT_LIST_FOLDER, $this->dropboxApp->path($dirname));
240 240
             return $response['entries'];
241 241
         } catch (Exception $e) {
242 242
             return false;
Please login to merge, or discard this patch.