Passed
Pull Request — master (#132)
by Arman
02:54
created
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/Console/Commands/ModuleGenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         $modules = require_once $modulesConfigPath;
94 94
 
95 95
         foreach ($modules['modules'] as $module => $options) {
96
-            if ($module == $newModuleName  || $options['prefix'] == strtolower($newModuleName)) {
96
+            if ($module == $newModuleName || $options['prefix'] == strtolower($newModuleName)) {
97 97
                 $this->error('A module or prefix named ' . $newModuleName . ' already exists');
98 98
                 return;
99 99
             }
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/Router/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $this->findPatternMatches($uri);
101 101
 
102 102
         if (!count($this->matchedRoutes)) {
103
-            stop(function () {
103
+            stop(function() {
104 104
                 $this->handleNotFound();
105 105
             });
106 106
         }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         if (filter_var(config()->get(Debugger::DEBUG_ENABLED), FILTER_VALIDATE_BOOLEAN)) {
121 121
             $routeInfo = [];
122 122
 
123
-            array_walk($matchedRoute, function ($value, $key) use (&$routeInfo) {
123
+            array_walk($matchedRoute, function($value, $key) use (&$routeInfo) {
124 124
                 $routeInfo[ucfirst($key)] = json_encode($value);
125 125
             });
126 126
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $routePattern = '(\/)?';
192 192
         $routeParams = [];
193 193
 
194
-        $lastIndex = (int)array_key_last($routeSegments);
194
+        $lastIndex = (int) array_key_last($routeSegments);
195 195
 
196 196
         foreach ($routeSegments as $index => $segment) {
197 197
             $segmentParam = $this->checkSegment($segment, $index, $lastIndex);
Please login to merge, or discard this patch.
src/Libraries/Validation/Rules/General.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         if (!empty($value)) {
74 74
             $recaptcha = new ReCaptcha(env('RECAPTCHA_SECRET_KEY'), new CurlPost());
75 75
 
76
-            if (!$recaptcha->verify($value)->isSuccess()){
76
+            if (!$recaptcha->verify($value)->isSuccess()) {
77 77
                 $this->addError($field, 'recaptcha', $param);
78 78
             }
79 79
         }
Please login to merge, or discard this patch.
src/Libraries/Database/Sleekdb/Statements/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function get(): array
35 35
     {
36
-        $result = array_map(function ($element) {
36
+        $result = array_map(function($element) {
37 37
             $item = clone $this;
38 38
             $item->data = $element;
39 39
             $item->modifiedFields = $element;
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.