Passed
Pull Request — master (#357)
by Arman
02:56
created
src/Libraries/Validation/Traits/Lists.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $value = trim(strtolower($value));
49 49
 
50
-        $list = array_map(function ($item) {
50
+        $list = array_map(function($item) {
51 51
             return trim(strtolower($item));
52 52
         }, $list);
53 53
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $value = trim(strtolower($value));
67 67
 
68
-        $list = array_map(function ($item) {
68
+        $list = array_map(function($item) {
69 69
             return trim(strtolower($item));
70 70
         }, $list);
71 71
 
Please login to merge, or discard this patch.
src/Paginator/Adapters/ModelPaginator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
62 62
             ->offset($this->perPage * ($this->page - 1))
63 63
             ->get();
64 64
 
65
-        if($this->modelClass != '@anonymous') {
66
-            $result = array_map(function ($item) {
65
+        if ($this->modelClass != '@anonymous') {
66
+            $result = array_map(function($item) {
67 67
                 return wrapToModel($item->getOrmInstance(), $this->modelClass);
68 68
             }, iterator_to_array($result));
69 69
         }
Please login to merge, or discard this patch.
src/Libraries/Auth/Adapters/JwtAuthAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
     {
121 121
         $user = $this->authService->get('uuid', $uuid);
122 122
 
123
-        if(!$user) {
123
+        if (!$user) {
124 124
             return false;
125 125
         }
126 126
 
Please login to merge, or discard this patch.
src/Http/Traits/Request/Body.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public static function get(string $key, ?string $default = null, bool $raw = false)
51 51
     {
52
-        if(!self::has($key)) {
52
+        if (!self::has($key)) {
53 53
             return $default;
54 54
         }
55 55
 
Please login to merge, or discard this patch.
src/Environment/Server.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
             return [];
46 46
         }
47 47
 
48
-        return array_reduce(array_keys($data), function ($headers, $key) use ($data) {
48
+        return array_reduce(array_keys($data), function($headers, $key) use ($data) {
49 49
             if (strpos($key, 'HTTP_') === 0) {
50 50
                 $formattedKey = strtolower(str_replace('_', '-', substr($key, 5)));
51 51
                 $headers[$formattedKey] = $data[$key];
Please login to merge, or discard this patch.
src/Libraries/Lang/Factories/LangFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         }
54 54
 
55 55
         $isEnabled = filter_var(config()->get('lang.enabled'), FILTER_VALIDATE_BOOLEAN);
56
-        $supported = (array)config()->get('lang.supported');
56
+        $supported = (array) config()->get('lang.supported');
57 57
         $default = config()->get('lang.default');
58 58
 
59 59
         $queryLang = Request::getQueryParam('lang');
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             : null;
64 64
 
65 65
         if (empty($lang)) {
66
-            $segmentIndex = (int)config()->get('lang.url_segment');
66
+            $segmentIndex = (int) config()->get('lang.url_segment');
67 67
 
68 68
             if (!empty(route_prefix()) && $segmentIndex == 1) {
69 69
                 $segmentIndex++;
Please login to merge, or discard this patch.