Passed
Push — sudav3 ( b29c56...468d62 )
by 世昌
02:20
created
suda/src/orm/struct/TableStructBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
                 } else {
125 125
                     $length = null;
126 126
                 }
127
-                return [$type, $length , trim($match[3] ?? '')];
127
+                return [$type, $length, trim($match[3] ?? '')];
128 128
             }
129 129
         }
130 130
         return ['text', null, ''];
Please login to merge, or discard this patch.
suda/src/orm/middleware/ObjectMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         if ($doc = $property->getDocComment()) {
99 99
             if (is_string($doc) && preg_match('/@var\s+(\w+)/i', $doc, $match)) {
100 100
                 $type = \strtolower($match[1]);
101
-                if (\in_array($type, ['boolean', 'bool', 'integer', 'int' , 'float' , 'double', 'string'])) {
101
+                if (\in_array($type, ['boolean', 'bool', 'integer', 'int', 'float', 'double', 'string'])) {
102 102
                     return ObjectMiddleware::RAW;
103 103
                 }
104 104
             }
Please login to merge, or discard this patch.