@@ -139,7 +139,7 @@ |
||
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, '']; |
@@ -61,7 +61,7 @@ |
||
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; |
@@ -251,7 +251,7 @@ |
||
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 | } |