@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | ->array($data = $this->testedInstance->serialize( |
76 | 76 | $cart, |
77 | 77 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
78 | - [ 'serializeRelations' => ['cart_items'] ] |
|
78 | + ['serializeRelations' => ['cart_items']] |
|
79 | 79 | )) |
80 | 80 | ->isIdenticalTo([ |
81 | 81 | '@id' => '/v1/carts/8', |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ->array($data = $this->testedInstance->serialize( |
104 | 104 | $cart, |
105 | 105 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
106 | - [ 'serializeRelations' => ['cart_items'] ] |
|
106 | + ['serializeRelations' => ['cart_items']] |
|
107 | 107 | )) |
108 | 108 | ->isIdenticalTo([ |
109 | 109 | '@id' => '/v1/carts/8', |
@@ -245,8 +245,8 @@ discard block |
||
245 | 245 | 'who' => 'John', |
246 | 246 | ], |
247 | 247 | 'cartItemDetailList' => [ |
248 | - [ 'name' => 'Bill' ], |
|
249 | - [ 'name' => 'Bill', ], |
|
248 | + ['name' => 'Bill'], |
|
249 | + ['name' => 'Bill', ], |
|
250 | 250 | ], |
251 | 251 | ], |
252 | 252 | ], |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | ->array($data = $this->testedInstance->serialize( |
276 | 276 | $cart, |
277 | 277 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
278 | - [ 'serializeRelations' => ['cart_items'] ] |
|
278 | + ['serializeRelations' => ['cart_items']] |
|
279 | 279 | )) |
280 | 280 | ->isIdenticalTo([ |
281 | 281 | '@id' => '/v1/carts/8', |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | ->then |
339 | 339 | ->object($cartItemDetail->getCartItem()) |
340 | 340 | ->isInstanceOf('Mapado\RestClientSdk\Tests\Model\CartItem') |
341 | - ->exception(function () use ($testedInstance, $cartItemDetail) { |
|
341 | + ->exception(function() use ($testedInstance, $cartItemDetail) { |
|
342 | 342 | $testedInstance->serialize($cartItemDetail, 'Mapado\RestClientSdk\Tests\Model\CartItemDetail'); |
343 | 343 | }) |
344 | 344 | ->isInstanceOf('Mapado\RestClientSdk\Exception\SdkException') |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | ->array($data = $this->testedInstance->serialize( |
514 | 514 | $cart, |
515 | 515 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
516 | - [ 'serializeRelations' => ['cart_items'] ] |
|
516 | + ['serializeRelations' => ['cart_items']] |
|
517 | 517 | )) |
518 | 518 | ->isIdenticalTo([ |
519 | 519 | 'weirdId' => '/v1/carts/8', |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | ->array($data = $this->testedInstance->serialize( |
542 | 542 | $cart, |
543 | 543 | 'Mapado\RestClientSdk\Tests\Model\Cart', |
544 | - [ 'serializeRelations' => ['cart_items'] ] |
|
544 | + ['serializeRelations' => ['cart_items']] |
|
545 | 545 | )) |
546 | 546 | ->isIdenticalTo([ |
547 | 547 | 'weirdId' => '/v1/carts/8', |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | |
804 | 804 | $cartRepositoryMock = $this->getCartRepositoryMock($sdk, $restClient, 'Mapado\RestClientSdk\Tests\Model\Cart'); |
805 | 805 | |
806 | - $this->calling($sdk)->getRepository = function ($modelName) use ($cartRepositoryMock) { |
|
806 | + $this->calling($sdk)->getRepository = function($modelName) use ($cartRepositoryMock) { |
|
807 | 807 | switch ($modelName) { |
808 | 808 | case 'Mapado\RestClientSdk\Tests\Model\Cart': |
809 | 809 | return $cartRepositoryMock; |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | |
826 | 826 | $_this = $this; |
827 | 827 | |
828 | - $this->calling($repository)->find = function ($id) use ($_this) { |
|
828 | + $this->calling($repository)->find = function($id) use ($_this) { |
|
829 | 829 | return $_this->createCart(); |
830 | 830 | }; |
831 | 831 |