@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | 'payload' => 'test-payload', |
| 22 | 22 | ] |
| 23 | 23 | ), |
| 24 | - function (RpcRequestInterface $request) { |
|
| 24 | + function(RpcRequestInterface $request) { |
|
| 25 | 25 | self::assertEquals('test-entity/find', $request->getMethod()); |
| 26 | 26 | self::assertEquals(['id' => 1], $request->getParameters()); |
| 27 | 27 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | 'sub-payload' => 'sub-payload', |
| 51 | 51 | ] |
| 52 | 52 | ), |
| 53 | - function (RpcRequestInterface $request) { |
|
| 53 | + function(RpcRequestInterface $request) { |
|
| 54 | 54 | self::assertEquals('test-entity/find', $request->getMethod()); |
| 55 | 55 | self::assertEquals(['id' => 2], $request->getParameters()); |
| 56 | 56 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | 'payload' => 'test-payload', |
| 80 | 80 | ] |
| 81 | 81 | ), |
| 82 | - function (RpcRequestInterface $request) { |
|
| 82 | + function(RpcRequestInterface $request) { |
|
| 83 | 83 | self::assertEquals('composite-key-entity/find', $request->getMethod()); |
| 84 | 84 | self::assertEquals(['first_key' => 2, 'second_key' => 'test'], $request->getParameters()); |
| 85 | 85 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | $this->getClient('test-reference-client')->push( |
| 16 | 16 | $this->getResponseMock(true, 241), |
| 17 | - function (RpcRequestInterface $request) { |
|
| 17 | + function(RpcRequestInterface $request) { |
|
| 18 | 18 | self::assertEquals('test-reference/create', $request->getMethod()); |
| 19 | 19 | self::assertEquals( |
| 20 | 20 | [ |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $this->getClient()->push( |
| 13 | 13 | $this->getResponseMock(true, 5), |
| 14 | - function (RpcRequestInterface $request) { |
|
| 14 | + function(RpcRequestInterface $request) { |
|
| 15 | 15 | self::assertEquals('prefixed-entity/create', $request->getMethod()); |
| 16 | 16 | self::assertEquals( |
| 17 | 17 | [ |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | 'payload' => 'test-payload', |
| 24 | 24 | ] |
| 25 | 25 | ), |
| 26 | - function (RpcRequestInterface $request) { |
|
| 26 | + function(RpcRequestInterface $request) { |
|
| 27 | 27 | self::assertEquals('custom-entity/find', $request->getMethod()); |
| 28 | 28 | self::assertEquals(['id' => 1], $request->getParameters()); |
| 29 | 29 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $cache = $this->prophesize(CacheItemPoolInterface::class); |
| 99 | 99 | $that = $this; |
| 100 | 100 | $cache->getItem(Argument::type('string'))->will( |
| 101 | - function ($args) use (&$items, $that) { |
|
| 101 | + function($args) use (&$items, $that) { |
|
| 102 | 102 | $key = $args[0]; |
| 103 | 103 | if (!array_key_exists($key, $items)) { |
| 104 | 104 | $item = $that->prophesize(CacheItemInterface::class); |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $item->isHit()->willReturn(false); |
| 107 | 107 | $item->get()->willReturn(null); |
| 108 | 108 | $item->set(Argument::any())->will( |
| 109 | - function ($args) use ($item) { |
|
| 109 | + function($args) use ($item) { |
|
| 110 | 110 | $item->get()->willReturn($args[0]); |
| 111 | 111 | |
| 112 | 112 | return $item; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | ); |
| 125 | 125 | $cache->save(Argument::type(CacheItemInterface::class))->will( |
| 126 | - function ($args) use (&$items) { |
|
| 126 | + function($args) use (&$items) { |
|
| 127 | 127 | $item = $args[0]; |
| 128 | 128 | $items[$item->getKey()]->isHit()->willReturn(true); |
| 129 | 129 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | ], |
| 37 | 37 | ] |
| 38 | 38 | ), |
| 39 | - function (RpcRequestInterface $request) { |
|
| 39 | + function(RpcRequestInterface $request) { |
|
| 40 | 40 | self::assertEquals('test-entity/search', $request->getMethod()); |
| 41 | 41 | self::assertEquals( |
| 42 | 42 | [ |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | if (array_key_exists('entityPath', $element['client'])) { |
| 62 | 62 | $pathSeparator = |
| 63 | 63 | array_key_exists('entityPathSeparator', $element['client']) ? |
| 64 | - $element['client']['entityPathSeparator'] : |
|
| 65 | - EntityMethodProvider::DEFAULT_PATH_SEPARATOR; |
|
| 64 | + $element['client']['entityPathSeparator'] : EntityMethodProvider::DEFAULT_PATH_SEPARATOR; |
|
| 66 | 65 | $methodProvider = |
| 67 | 66 | new EntityMethodProvider($element['client']['entityPath'], $pathSeparator, $methodProvider); |
| 68 | 67 | } |