Completed
Push — master ( 2f3500...8bb4f2 )
by Arman
12s queued 10s
created
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
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         return [
74 74
             filter_var(config()->get('lang.enabled'), FILTER_VALIDATE_BOOLEAN),
75
-            (array)config()->get('lang.supported'),
75
+            (array) config()->get('lang.supported'),
76 76
             config()->get('lang.default'),
77 77
         ];
78 78
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     private static function getLangFromUrlSegment(array $supported): ?string
125 125
     {
126
-        $segmentIndex = (int)config()->get('lang.url_segment');
126
+        $segmentIndex = (int) config()->get('lang.url_segment');
127 127
 
128 128
         if (!empty(route_prefix()) && $segmentIndex == 1) {
129 129
             $segmentIndex++;
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Sleekdb/Statements/Join.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $modelToJoin = unserialize($nextItem['model']);
68 68
         $switch = $nextItem['switch'];
69 69
 
70
-        $queryBuilder->join(function ($item) use ($currentItem, $modelToJoin, $switch, $level) {
70
+        $queryBuilder->join(function($item) use ($currentItem, $modelToJoin, $switch, $level) {
71 71
 
72 72
             $sleekModel = new self(
73 73
                 $modelToJoin->table,
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Sleekdb/Statements/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function get(): array
38 38
     {
39 39
         try {
40
-            return array_map(function ($element) {
40
+            return array_map(function($element) {
41 41
                 $item = clone $this;
42 42
                 $item->updateOrmModel($element);
43 43
                 return $item;
Please login to merge, or discard this patch.