@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | ->then |
72 | 72 | ->object($this->testedInstance->get('/not-json')) |
73 | 73 | ->isInstanceOf('\GuzzleHttp\Psr7\Response') |
74 | - ; |
|
74 | + ; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | ->isInstanceOf('Mapado\RestClientSdk\Exception\RestException') |
111 | 111 | ->hasMessage('Error while deleting resource') |
112 | 112 | ->hasCode(2) |
113 | - ; |
|
113 | + ; |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
@@ -340,10 +340,10 @@ discard block |
||
340 | 340 | $this |
341 | 341 | ->if($repository->findBy(['section' => $section1])) |
342 | 342 | // ->then(ldd(iterator_to_array($arrayAdapter->getItems()))) |
343 | - ->then |
|
344 | - ->mock($this->mockedRestClient) |
|
345 | - ->call('get') |
|
346 | - ->withArguments('/sections?section=%2Fsections%2F1')->once() |
|
343 | + ->then |
|
344 | + ->mock($this->mockedRestClient) |
|
345 | + ->call('get') |
|
346 | + ->withArguments('/sections?section=%2Fsections%2F1')->once() |
|
347 | 347 | |
348 | 348 | ->if($repository->findAll()) |
349 | 349 | // ->then(ldd(iterator_to_array($arrayAdapter->getItems()))) |
@@ -351,11 +351,11 @@ discard block |
||
351 | 351 | ->boolean($arrayAdapter->hasItem('test_prefix__sections_1')) |
352 | 352 | ->isTrue() |
353 | 353 | |
354 | - ->if($repository->find(1)) |
|
355 | - ->then |
|
356 | - ->mock($this->mockedRestClient) |
|
357 | - ->call('get') |
|
358 | - ->withArguments('/sections/1')->never() |
|
354 | + ->if($repository->find(1)) |
|
355 | + ->then |
|
356 | + ->mock($this->mockedRestClient) |
|
357 | + ->call('get') |
|
358 | + ->withArguments('/sections/1')->never() |
|
359 | 359 | |
360 | 360 | // after update |
361 | 361 | ->if($repository->update($section1)) |
@@ -33,13 +33,13 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * convertId |
|
37 | - * |
|
38 | - * @param string $id |
|
39 | - * @param string $modelName |
|
40 | - * @access public |
|
41 | - * @return string |
|
42 | - */ |
|
36 | + * convertId |
|
37 | + * |
|
38 | + * @param string $id |
|
39 | + * @param string $modelName |
|
40 | + * @access public |
|
41 | + * @return string |
|
42 | + */ |
|
43 | 43 | public function convertId($id, $modelName) |
44 | 44 | { |
45 | 45 | $id = (string) $id; |