|
@@ -38,7 +38,7 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
{ |
|
39
|
39
|
$this->object = $object; |
|
40
|
40
|
$this->reflectObject = new ReflectionClass($object); |
|
41
|
|
- $this->classDoc = is_string($this->reflectObject->getDocComment())?$this->reflectObject->getDocComment():''; |
|
|
41
|
+ $this->classDoc = is_string($this->reflectObject->getDocComment()) ? $this->reflectObject->getDocComment() : ''; |
|
42
|
42
|
} |
|
43
|
43
|
|
|
44
|
44
|
|
|
@@ -61,7 +61,7 @@ discard block |
|
|
block discarded – undo |
|
61
|
61
|
* @param string $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(?:-(?:serialize|json))?\s+(\w+)\s+(\w+)(?:\((.+?)\))?\s+(.+)?$/im', $classDoc, $match) > 0) { |
|
67
|
67
|
return $match; |
Please login to merge, or discard this patch.