Passed
Push — master ( 9bc88c...903b03 )
by 世昌
02:14
created
suda/src/orm/struct/TableStructBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
             if (is_string($doc) && preg_match('/@field\s+(\w+)(?:\((.+?)\))?\s+(.+)?$/im', $doc, $match)) {
140 140
                 $type = strtoupper($match[1]);
141 141
                 $length = static::parseLength($match[2] ?? '');
142
-                return [$type, $length , trim($match[3] ?? '')];
142
+                return [$type, $length, trim($match[3] ?? '')];
143 143
             }
144 144
         }
145 145
         return ['text', null, ''];
Please login to merge, or discard this patch.
suda/src/orm/struct/TableClassStructBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * @param strring $classDoc
62 62
      * @return array|null
63 63
      */
64
-    public static function readClassDocField(string $classDoc):?array
64
+    public static function readClassDocField(string $classDoc): ?array
65 65
     {
66 66
         if (preg_match_all('/@field\s+(\w+)\s+(\w+)(?:\((.+?)\))?\s+(.+)?$/im', $classDoc, $match)) {
67 67
             return $match;
Please login to merge, or discard this patch.
suda/src/orm/DataAccess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
     protected function createDefaultMiddleware(string $object, TableStruct $struct)
252 252
     {
253 253
         $reflectObject = new ReflectionClass($object);
254
-        $classDoc = $reflectObject->getDocComment()?:'';
254
+        $classDoc = $reflectObject->getDocComment() ?: '';
255 255
         if (\preg_match('/@field-serialize\s+(\w+)/i', $classDoc, $matchs)) {
256 256
             return new TableStructMiddleware($object, $struct);
257 257
         }
Please login to merge, or discard this patch.