@@ -178,8 +178,7 @@ |
||
| 178 | 178 | |
| 179 | 179 | if (is_array($object) || $object instanceof \Countable) { |
| 180 | 180 | $data['meta']['totalItems'] = $object instanceof PaginatorInterface ? |
| 181 | - (int) $object->getTotalItems() : |
|
| 182 | - count($object); |
|
| 181 | + (int) $object->getTotalItems() : count($object); |
|
| 183 | 182 | } |
| 184 | 183 | |
| 185 | 184 | if ($isPaginator) { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | public function denormalize($propertyName) |
| 73 | 73 | { |
| 74 | - $camelCasedName = preg_replace_callback('/(^|-|\.)+(.)/', function ($match) { |
|
| 74 | + $camelCasedName = preg_replace_callback('/(^|-|\.)+(.)/', function($match) { |
|
| 75 | 75 | return ('.' === $match[1] ? '-' : '').strtoupper($match[2]); |
| 76 | 76 | }, $propertyName); |
| 77 | 77 | |