@@ -71,7 +71,7 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | public function awake(Awaker $awaker, $value) |
| 73 | 73 | { |
| 74 | - if ($value === null || (! \is_array($value) && ! $value instanceof \ArrayAccess)) { |
|
| 74 | + if ($value === null || (!\is_array($value) && !$value instanceof \ArrayAccess)) { |
|
| 75 | 75 | return null; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | if (IsDateString::isValidDateString($value['date'])) { |
| 78 | - return new LocalDate($value['date'], $tz); |
|
| 78 | + return new LocalDate($value['date'], $tz); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | return null; |
@@ -77,11 +77,11 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function awake($data, $cls) |
| 79 | 79 | { |
| 80 | - if ($data === null || ! \is_array($data)) { |
|
| 80 | + if ($data === null || !\is_array($data)) { |
|
| 81 | 81 | return null; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - if (! $cls instanceof \ReflectionClass) { |
|
| 84 | + if (!$cls instanceof \ReflectionClass) { |
|
| 85 | 85 | $cls = new \ReflectionClass($cls); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -96,11 +96,11 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function awakeList($data, $cls) |
| 98 | 98 | { |
| 99 | - if (! \is_array($data) && ! $data instanceof \Traversable) { |
|
| 99 | + if (!\is_array($data) && !$data instanceof \Traversable) { |
|
| 100 | 100 | return []; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - if (! $cls instanceof \ReflectionClass) { |
|
| 103 | + if (!$cls instanceof \ReflectionClass) { |
|
| 104 | 104 | $cls = new \ReflectionClass($cls); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function create($data = null) |
| 43 | 43 | { |
| 44 | - if (! \is_array($data) && ! $data instanceof \ArrayAccess) { |
|
| 44 | + if (!\is_array($data) && !$data instanceof \ArrayAccess) { |
|
| 45 | 45 | return null; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | |
| 157 | 157 | $propertyName = $property->getName(); |
| 158 | 158 | |
| 159 | - if (! isset($result[$propertyName])) { |
|
| 159 | + if (!isset($result[$propertyName])) { |
|
| 160 | 160 | |
| 161 | 161 | $context = $this->getPropertyValidationContext($class, $property); |
| 162 | 162 | $marker = $this->getPropertyAnnotationsOfType($context); |