Completed
Pull Request — master (#14)
by Pavel
05:32 queued 02:29
created
Tests/EntityCacheTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Tests/CollectionLoadingTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
                     [
Please login to merge, or discard this patch.
Mapping/Driver/YmlMetadataDriver.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Tests/IndirectFieldsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
                     [
Please login to merge, or discard this patch.
Tests/ProxyTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     'sub-payload' => 'sub-payload',
168 168
                 ]
169 169
             ),
170
-            function (RpcRequestInterface $request) {
170
+            function(RpcRequestInterface $request) {
171 171
                 self::assertEquals('test-entity/find', $request->getMethod());
172 172
                 self::assertEquals(['id' => 1], $request->getParameters());
173 173
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
                     ],
192 192
                 ]
193 193
             ),
194
-            function (RpcRequestInterface $request) {
194
+            function(RpcRequestInterface $request) {
195 195
                 self::assertEquals('test-reference/search', $request->getMethod());
196 196
                 self::assertEquals(
197 197
                     [
Please login to merge, or discard this patch.
Tests/CountingTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
                     [
Please login to merge, or discard this patch.
Tests/CustomRepositoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
                     [
Please login to merge, or discard this patch.
EntityManager.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     public function remove($object)
95 95
     {
96 96
         $this->getUnitOfWork()->getEntityPersister(get_class($object))
97
-             ->delete($object);
97
+                ->delete($object);
98 98
     }
99 99
 
100 100
     /** {@inheritdoc} */
Please login to merge, or discard this patch.
Tests/CommitTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
                     [
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
         $this->getClient()->push(
45 45
             $this->getResponseMock(true, 42),
46
-            function (RpcRequestInterface $request) {
46
+            function(RpcRequestInterface $request) {
47 47
                 self::assertEquals('test-entity/create', $request->getMethod());
48 48
                 self::assertEquals(
49 49
                     [
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $this->getClient('test-reference-client')->push(
61 61
             $this->getResponseMock(true, 241),
62
-            function (RpcRequestInterface $request) {
62
+            function(RpcRequestInterface $request) {
63 63
                 self::assertEquals('test-reference/create', $request->getMethod());
64 64
                 self::assertEquals(
65 65
                     [
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $newParent = new TestEntity();
97 97
         $this->getClient()->push(
98 98
             $this->getResponseMock(true, 17),
99
-            function (RpcRequestInterface $request) {
99
+            function(RpcRequestInterface $request) {
100 100
                 self::assertEquals('test-entity/create', $request->getMethod());
101 101
                 self::assertEquals(
102 102
                     [
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         );
112 112
         $this->getClient('test-reference-client')->push(
113 113
             $this->getResponseMock(true, null),
114
-            function (RpcRequestInterface $request) {
114
+            function(RpcRequestInterface $request) {
115 115
                 self::assertEquals('test-reference/patch', $request->getMethod());
116 116
                 self::assertEquals(
117 117
                     [
Please login to merge, or discard this patch.