Passed
Push — master ( c79051...5600d0 )
by 世昌
02:50 queued 11s
created
suda/src/orm/struct/TableClassStructBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function __construct(string $object)
41 41
     {
42 42
         parent::__construct($object);
43
-        $this->classDoc = is_string($this->reflectObject->getDocComment())?$this->reflectObject->getDocComment():'';
43
+        $this->classDoc = is_string($this->reflectObject->getDocComment()) ? $this->reflectObject->getDocComment() : '';
44 44
     }
45 45
 
46 46
 
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
      * @param string $classDoc
64 64
      * @return array|null
65 65
      */
66
-    public static function readClassDocField(string $classDoc):?array
66
+    public static function readClassDocField(string $classDoc): ?array
67 67
     {
68 68
         if (preg_match_all(
69 69
             '/^.+\s+\@field(?:\-(?:serialize|json))?\s+(\w+)\s+(\w+)(?:\((.+?)\))?(.*?)$/im',
70 70
             $classDoc,
71 71
             $match
72 72
         ) > 0) {
73
-            return is_array($match)?$match:null;
73
+            return is_array($match) ? $match : null;
74 74
         }
75 75
         return null;
76 76
     }
Please login to merge, or discard this patch.