Completed
Push — master ( 6b5dbd...7c2e51 )
by Ivannis Suárez
10:23
created
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
@@ -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.