@@ -130,7 +130,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
130130 unset($ data [$ paramName ]);
131131 } elseif (!$ constructorParameter ->isOptional ()) {
132132 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 ' .
134134 'its constructor requires parameter "%s" to be present. ' ,
135135 $ class ,
136136 $ constructorParameter ->name
@@ -140,7 +140,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
140140
141141 $ object = $ reflectionClass ->newInstanceArgs ($ params );
142142 } else {
143- $ object = new $ class ;
143+ $ object = new $ class() ;
144144 }
145145
146146 foreach ($ data as $ propertyName => $ value ) {
@@ -162,15 +162,15 @@ public function denormalize($data, $class, $format = null, array $context = arra
162162 }
163163
164164 /**
165- * {@inheritDoc }
165+ * {@inheritdoc }
166166 */
167167 public function supportsNormalization ($ data , $ format = null )
168168 {
169169 return is_object ($ data ) && $ this ->supports (get_class ($ data ));
170170 }
171171
172172 /**
173- * {@inheritDoc }
173+ * {@inheritdoc }
174174 */
175175 public function supportsDenormalization ($ data , $ type , $ format = null )
176176 {
@@ -181,6 +181,7 @@ public function supportsDenormalization($data, $type, $format = null)
181181 * Format an attribute name, for example to convert a snake_case name to camelCase.
182182 *
183183 * @param string $attributeName
184+ *
184185 * @return string
185186 */
186187 protected function formatAttribute ($ attributeName )
@@ -199,7 +200,7 @@ protected function formatAttribute($attributeName)
199200 *
200201 * @param string $class
201202 *
202- * @return Boolean
203+ * @return bool
203204 */
204205 private function supports ($ class )
205206 {
0 commit comments