@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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 | } |