Completed
Branch master (6b5dbd)
by Ivannis Suárez
10:15
created
Category
Tests/Units/QueryRepositoryTestCase.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
         $this->getAssertionManager()
62 62
             ->setHandler(
63 63
                 'randomRepository',
64
-                function ($size = null) {
64
+                function($size = null) {
65 65
                     return $this->randomRepository($size);
66 66
                 }
67 67
             )
68 68
             ->setHandler(
69 69
                 'emptyRepository',
70
-                function () {
70
+                function() {
71 71
                     return $this->emptyRepository();
72 72
                 }
73 73
             )
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             ->given($repository = $this->randomRepository())
171 171
             ->given($id = UserId::next())
172 172
             ->then()
173
-                ->exception(function () use ($repository, $id) {
173
+                ->exception(function() use ($repository, $id) {
174 174
                     $repository->persist($id);
175 175
                 })->isInstanceOf(\InvalidArgumentException::class)
176 176
         ;
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             ->given($repository = $this->emptyRepository())
180 180
             ->and($value = $this->randomValue())
181 181
             ->and($age = $value->age())
182
-            ->when(function () use ($repository, $value, $age) {
182
+            ->when(function() use ($repository, $value, $age) {
183 183
                 $repository->persist($value);
184 184
                 $value->setAge($age + 1);
185 185
                 $repository->persist($value);
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             ->given($repository = $this->randomRepository())
219 219
             ->given($id = UserId::next())
220 220
             ->then()
221
-                ->exception(function () use ($repository, $id) {
221
+                ->exception(function() use ($repository, $id) {
222 222
                     $repository->persistAll([$id]);
223 223
                 })->isInstanceOf(\InvalidArgumentException::class)
224 224
         ;
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             ->given($repository = $this->emptyRepository())
228 228
             ->and($value = $this->randomValue())
229 229
             ->and($age = $value->age())
230
-            ->when(function () use ($repository, $value, $age) {
230
+            ->when(function() use ($repository, $value, $age) {
231 231
                 $repository->persistAll([$value]);
232 232
                 $value->setAge($age + 1);
233 233
                 $repository->persistAll([$value]);
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
             ->given($repository = $this->randomRepository())
263 263
             ->given($id = UserId::next())
264 264
             ->then()
265
-                ->exception(function () use ($repository, $id) {
265
+                ->exception(function() use ($repository, $id) {
266 266
                     $repository->remove($id);
267 267
                 })->isInstanceOf(\InvalidArgumentException::class)
268 268
         ;
Please login to merge, or discard this patch.
Tests/Units/InMemory/InMemoryQueryRepositoryTests.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
     public function testCreate()
37 37
     {
38 38
         $this
39
-            ->exception(function () {
39
+            ->exception(function() {
40 40
                 new InMemoryQueryRepository(UserId::class);
41 41
             })
42 42
             ->isInstanceOf(\LogicException::class)
Please login to merge, or discard this patch.
Tests/Units/InMemory/InMemoryRepositoryTests.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
     public function testCreate()
37 37
     {
38 38
         $this
39
-            ->exception(function () {
39
+            ->exception(function() {
40 40
                 new InMemoryRepository(UserId::class);
41 41
             })
42 42
             ->isInstanceOf(\LogicException::class)
Please login to merge, or discard this patch.
Tests/Units/RepositoryTestCase.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
         $this->getAssertionManager()
61 61
             ->setHandler(
62 62
                 'randomRepository',
63
-                function ($size = null) {
63
+                function($size = null) {
64 64
                     return $this->randomRepository($size);
65 65
                 }
66 66
             )
67 67
             ->setHandler(
68 68
                 'emptyRepository',
69
-                function () {
69
+                function() {
70 70
                     return $this->emptyRepository();
71 71
                 }
72 72
             )
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             ->given($repository = $this->randomRepository())
170 170
             ->given($id = UserId::next())
171 171
             ->then()
172
-                ->exception(function () use ($repository, $id) {
172
+                ->exception(function() use ($repository, $id) {
173 173
                     $repository->persist($id);
174 174
                 })->isInstanceOf(\InvalidArgumentException::class)
175 175
         ;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             ->given($repository = $this->emptyRepository())
179 179
             ->and($value = $this->randomValue())
180 180
             ->and($age = $value->age())
181
-            ->when(function () use ($repository, $value, $age) {
181
+            ->when(function() use ($repository, $value, $age) {
182 182
                 $repository->persist($value);
183 183
                 $value->setAge($age + 1);
184 184
                 $repository->persist($value);
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             ->given($repository = $this->randomRepository())
218 218
             ->given($id = UserId::next())
219 219
             ->then()
220
-                ->exception(function () use ($repository, $id) {
220
+                ->exception(function() use ($repository, $id) {
221 221
                     $repository->persistAll([$id]);
222 222
                 })->isInstanceOf(\InvalidArgumentException::class)
223 223
         ;
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             ->given($repository = $this->emptyRepository())
227 227
             ->and($value = $this->randomValue())
228 228
             ->and($age = $value->age())
229
-            ->when(function () use ($repository, $value, $age) {
229
+            ->when(function() use ($repository, $value, $age) {
230 230
                 $repository->persistAll([$value]);
231 231
                 $value->setAge($age + 1);
232 232
                 $repository->persistAll([$value]);
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             ->given($repository = $this->randomRepository())
262 262
             ->given($id = UserId::next())
263 263
             ->then()
264
-                ->exception(function () use ($repository, $id) {
264
+                ->exception(function() use ($repository, $id) {
265 265
                     $repository->remove($id);
266 266
                 })->isInstanceOf(\InvalidArgumentException::class)
267 267
         ;
Please login to merge, or discard this patch.