@@ -130,7 +130,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
130
130
unset($ data [$ paramName ]);
131
131
} elseif (!$ constructorParameter ->isOptional ()) {
132
132
throw new RuntimeException (sprintf (
133
- 'Cannot create an instance of %s from serialized data because ' .
133
+ 'Cannot create an instance of %s from serialized data because ' .
134
134
'its constructor requires parameter "%s" to be present. ' ,
135
135
$ class ,
136
136
$ constructorParameter ->name
@@ -140,7 +140,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
140
140
141
141
$ object = $ reflectionClass ->newInstanceArgs ($ params );
142
142
} else {
143
- $ object = new $ class ;
143
+ $ object = new $ class() ;
144
144
}
145
145
146
146
foreach ($ data as $ propertyName => $ value ) {
@@ -162,15 +162,15 @@ public function denormalize($data, $class, $format = null, array $context = arra
162
162
}
163
163
164
164
/**
165
- * {@inheritDoc }
165
+ * {@inheritdoc }
166
166
*/
167
167
public function supportsNormalization ($ data , $ format = null )
168
168
{
169
169
return is_object ($ data ) && $ this ->supports (get_class ($ data ));
170
170
}
171
171
172
172
/**
173
- * {@inheritDoc }
173
+ * {@inheritdoc }
174
174
*/
175
175
public function supportsDenormalization ($ data , $ type , $ format = null )
176
176
{
@@ -181,6 +181,7 @@ public function supportsDenormalization($data, $type, $format = null)
181
181
* Format an attribute name, for example to convert a snake_case name to camelCase.
182
182
*
183
183
* @param string $attributeName
184
+ *
184
185
* @return string
185
186
*/
186
187
protected function formatAttribute ($ attributeName )
@@ -199,7 +200,7 @@ protected function formatAttribute($attributeName)
199
200
*
200
201
* @param string $class
201
202
*
202
- * @return Boolean
203
+ * @return bool
203
204
*/
204
205
private function supports ($ class )
205
206
{
0 commit comments