@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ->array($data = $this->testedInstance->serialize( |
78 | 78 | $cart, |
79 | 79 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
80 | - [ 'serializeRelations' => ['cart_items'] ] |
|
80 | + ['serializeRelations' => ['cart_items']] |
|
81 | 81 | )) |
82 | 82 | ->isIdenticalTo([ |
83 | 83 | '@id' => '/v1/carts/8', |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | ->array($data = $this->testedInstance->serialize( |
106 | 106 | $cart, |
107 | 107 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
108 | - [ 'serializeRelations' => ['cart_items'] ] |
|
108 | + ['serializeRelations' => ['cart_items']] |
|
109 | 109 | )) |
110 | 110 | ->isIdenticalTo([ |
111 | 111 | '@id' => '/v1/carts/8', |
@@ -247,8 +247,8 @@ discard block |
||
247 | 247 | 'who' => 'John', |
248 | 248 | ], |
249 | 249 | 'cartItemDetailList' => [ |
250 | - [ 'name' => 'Bill' ], |
|
251 | - [ 'name' => 'Bill', ], |
|
250 | + ['name' => 'Bill'], |
|
251 | + ['name' => 'Bill', ], |
|
252 | 252 | ], |
253 | 253 | ], |
254 | 254 | ], |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | ->array($data = $this->testedInstance->serialize( |
278 | 278 | $cart, |
279 | 279 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
280 | - [ 'serializeRelations' => ['cart_items'] ] |
|
280 | + ['serializeRelations' => ['cart_items']] |
|
281 | 281 | )) |
282 | 282 | ->isIdenticalTo([ |
283 | 283 | '@id' => '/v1/carts/8', |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | ->then |
341 | 341 | ->object($cartItemDetail->getCartItem()) |
342 | 342 | ->isInstanceOf('Mapado\RestClientSdk\Tests\Model\CartItem') |
343 | - ->exception(function () use ($testedInstance, $cartItemDetail) { |
|
343 | + ->exception(function() use ($testedInstance, $cartItemDetail) { |
|
344 | 344 | $testedInstance->serialize($cartItemDetail, 'Mapado\RestClientSdk\Tests\Model\CartItemDetail'); |
345 | 345 | }) |
346 | 346 | ->isInstanceOf('Mapado\RestClientSdk\Exception\SdkException') |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | ->array($data = $this->testedInstance->serialize( |
516 | 516 | $cart, |
517 | 517 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
518 | - [ 'serializeRelations' => ['cart_items'] ] |
|
518 | + ['serializeRelations' => ['cart_items']] |
|
519 | 519 | )) |
520 | 520 | ->isIdenticalTo([ |
521 | 521 | 'weirdId' => '/v1/carts/8', |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | ->array($data = $this->testedInstance->serialize( |
544 | 544 | $cart, |
545 | 545 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
546 | - [ 'serializeRelations' => ['cart_items'] ] |
|
546 | + ['serializeRelations' => ['cart_items']] |
|
547 | 547 | )) |
548 | 548 | ->isIdenticalTo([ |
549 | 549 | 'weirdId' => '/v1/carts/8', |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | ->serialize( |
647 | 647 | $section, |
648 | 648 | 'Mapado\RestClientSdk\Tests\Model\Issue46\Section', |
649 | - [ 'serializeRelations' => ['articleList'] ] |
|
649 | + ['serializeRelations' => ['articleList']] |
|
650 | 650 | )) |
651 | 651 | ->isIdenticalTo([ |
652 | 652 | '@id' => '/sections/46', |
@@ -905,7 +905,7 @@ discard block |
||
905 | 905 | |
906 | 906 | $cartRepositoryMock = $this->getCartRepositoryMock($sdk, $restClient, 'Mapado\RestClientSdk\Tests\Model\Cart'); |
907 | 907 | |
908 | - $this->calling($sdk)->getRepository = function ($modelName) use ($cartRepositoryMock) { |
|
908 | + $this->calling($sdk)->getRepository = function($modelName) use ($cartRepositoryMock) { |
|
909 | 909 | switch ($modelName) { |
910 | 910 | case 'Mapado\RestClientSdk\Tests\Model\Cart': |
911 | 911 | return $cartRepositoryMock; |
@@ -927,7 +927,7 @@ discard block |
||
927 | 927 | |
928 | 928 | $_this = $this; |
929 | 929 | |
930 | - $this->calling($repository)->find = function ($id) use ($_this) { |
|
930 | + $this->calling($repository)->find = function($id) use ($_this) { |
|
931 | 931 | return $_this->createCart(); |
932 | 932 | }; |
933 | 933 |
@@ -262,7 +262,7 @@ |
||
262 | 262 | $mapping = $this->sdk->getMapping(); |
263 | 263 | |
264 | 264 | return array_map( |
265 | - function ($item) use ($mapping) { |
|
265 | + function($item) use ($mapping) { |
|
266 | 266 | if (is_object($item)) { |
267 | 267 | $classname = get_class($item); |
268 | 268 |