@@ -38,7 +38,7 @@ discard block |
||
| 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,10 +61,10 @@ discard block |
||
| 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('/^.+\s+\@field(?:\-(?:serialize|json))?\s+(\w+)\s+(\w+)(?:\((.+?)\))?(.+?)$/im', $classDoc, $match) > 0) { |
| 67 | - return is_array($match)?$match:null; |
|
| 67 | + return is_array($match) ? $match : null; |
|
| 68 | 68 | } |
| 69 | 69 | return null; |
| 70 | 70 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | private function inputSerialize($data) |
| 193 | 193 | { |
| 194 | - return $data === null? $data : \serialize($data); |
|
| 194 | + return $data === null ? $data : \serialize($data); |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | /** |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | */ |
| 214 | 214 | private function inputJson($data) |
| 215 | 215 | { |
| 216 | - return $data === null? $data : \json_encode($data); |
|
| 216 | + return $data === null ? $data : \json_encode($data); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function register() |
| 39 | 39 | { |
| 40 | - set_exception_handler([$this,'uncaughtException']); |
|
| 40 | + set_exception_handler([$this, 'uncaughtException']); |
|
| 41 | 41 | return $this; |
| 42 | 42 | } |
| 43 | 43 | |