Completed
Push — master ( 3d6e9d...c2497e )
by Ivannis Suárez
05:37
created
Tests/Units/DecimalTests.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
                 $number = $this->fromNative($this->randomNativeNumber())
135 135
             )
136 136
             ->then
137
-               ->boolean($positiveInfinite->subInteger($number->toInteger())->equals($positiveInfinite))
137
+                ->boolean($positiveInfinite->subInteger($number->toInteger())->equals($positiveInfinite))
138 138
                     ->isTrue()
139 139
                 ->boolean($positiveInfinite->subReal($number->toReal())->equals($positiveInfinite))
140 140
                     ->isTrue()
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -235,13 +235,13 @@  discard block
 block discarded – undo
235 235
                 $zero = $this->fromNative(0)
236 236
             )
237 237
             ->then
238
-                ->exception(function () use ($positiveInfinite, $zero) {
238
+                ->exception(function() use ($positiveInfinite, $zero) {
239 239
                     $positiveInfinite->pow($zero);
240 240
                 })->isInstanceOf(NotImplementedException::class)
241
-                ->exception(function () use ($positiveInfinite, $negativeInfinite) {
241
+                ->exception(function() use ($positiveInfinite, $negativeInfinite) {
242 242
                     $negativeInfinite->pow($positiveInfinite);
243 243
                 })->isInstanceOf(\DomainException::class)
244
-                ->exception(function () use ($negativeInfinite, $number) {
244
+                ->exception(function() use ($negativeInfinite, $number) {
245 245
                     $negativeInfinite->powReal($number->toReal());
246 246
                 })->isInstanceOf(NotImplementedException::class)
247 247
         ;
@@ -269,10 +269,10 @@  discard block
 block discarded – undo
269 269
                     ->isEqualTo(\bcsqrt($native, Decimal::defaultScale()))
270 270
                 ->variable($c->toNative())
271 271
                     ->isEqualTo(\bcsqrt($native, 2))
272
-                ->exception(function () use ($a, $invalidScale) {
272
+                ->exception(function() use ($a, $invalidScale) {
273 273
                     $a->sqrt($invalidScale);
274 274
                 })->isInstanceOf(\InvalidArgumentException::class)
275
-                ->exception(function () use ($positiveInfinite) {
275
+                ->exception(function() use ($positiveInfinite) {
276 276
                     $positiveInfinite->sqrt();
277 277
                 })->isInstanceOf(NotImplementedException::class)
278 278
         ;
@@ -291,12 +291,12 @@  discard block
 block discarded – undo
291 291
                     ->isEqualTo($scale)
292 292
             ->if($invalidScale = 8.1)
293 293
             ->then
294
-                ->exception(function () use ($invalidScale) {
294
+                ->exception(function() use ($invalidScale) {
295 295
                     Decimal::setDefaultScale($invalidScale);
296 296
                 })->isInstanceOf(\InvalidArgumentException::class)
297 297
             ->if($negativeScale = -2)
298 298
             ->then
299
-                ->exception(function () use ($negativeScale) {
299
+                ->exception(function() use ($negativeScale) {
300 300
                     Decimal::setDefaultScale($negativeScale);
301 301
                 })->isInstanceOf(\InvalidArgumentException::class)
302 302
         ;
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         $this
311 311
             ->if($number = $this->randomNativeNumber())
312 312
             ->then
313
-                ->exception(function () use ($number) {
313
+                ->exception(function() use ($number) {
314 314
                     DecimalInfinite::fromNative($number);
315 315
                 })->isInstanceOf(\InvalidArgumentException::class)
316 316
         ;
Please login to merge, or discard this patch.
Tests/Units/NumberTestCase.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,25 +51,25 @@  discard block
 block discarded – undo
51 51
         $this->getAssertionManager()
52 52
             ->setHandler(
53 53
                 'randomNativeNumber',
54
-                function () {
54
+                function() {
55 55
                     return $this->randomNativeNumber();
56 56
                 }
57 57
             )
58 58
             ->setHandler(
59 59
                 'invalidNativeNumber',
60
-                function () {
60
+                function() {
61 61
                     return $this->invalidNativeNumber();
62 62
                 }
63 63
             )
64 64
             ->setHandler(
65 65
                 'uniqueNativeNumber',
66
-                function () {
66
+                function() {
67 67
                     return $this->uniqueNativeNumber();
68 68
                 }
69 69
             )
70 70
             ->setHandler(
71 71
                 'negativeNativeNumber',
72
-                function () {
72
+                function() {
73 73
                     return $this->negativeNativeNumber();
74 74
                 }
75 75
             )
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
                 $number = $this->fromNative($this->randomNativeNumber())
747 747
             )
748 748
             ->then
749
-                ->exception(function () use ($number, $zero) {
749
+                ->exception(function() use ($number, $zero) {
750 750
                     $number->div($zero);
751 751
                 })
752 752
                 ->isInstanceOf(\DomainException::class)
@@ -831,7 +831,7 @@  discard block
 block discarded – undo
831 831
                     ->isEqualTo(-1)
832 832
                 ->variable($number->compareTo($less))
833 833
                     ->isEqualTo(1)
834
-            ->exception(function () use ($number) {
834
+            ->exception(function() use ($number) {
835 835
                 $number->toInteger()->compareTo(StringLiteral::fromNative('foo'));
836 836
             })
837 837
             ->isInstanceOf(\InvalidArgumentException::class)
Please login to merge, or discard this patch.
Tests/Units/IntegerTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
                     ->isEqualTo(\sqrt($native))
82 82
                 ->variable($c->toNative())
83 83
                     ->isEqualTo(\bcsqrt($native, 2))
84
-                ->exception(function () use ($a, $invalidScale) {
84
+                ->exception(function() use ($a, $invalidScale) {
85 85
                     $a->sqrt($invalidScale);
86 86
                 })->isInstanceOf(\InvalidArgumentException::class)
87 87
         ;
Please login to merge, or discard this patch.
Tests/Units/RealTestCase.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
         $this->getAssertionManager()
45 45
             ->setHandler(
46 46
                 'positiveInfiniteNativeNumber',
47
-                function () {
47
+                function() {
48 48
                     return $this->positiveInfiniteNativeNumber();
49 49
                 }
50 50
             )
51 51
             ->setHandler(
52 52
                 'negativeInfiniteNativeNumber',
53
-                function () {
53
+                function() {
54 54
                     return $this->negativeInfiniteNativeNumber();
55 55
                 }
56 56
             )
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                     ->isTrue()
178 178
                 ->boolean($negativeInfinite->add($negativeInfinite)->equals($negativeInfinite))
179 179
                     ->isTrue()
180
-                ->exception(function () use ($positiveInfinite, $negativeInfinite) {
180
+                ->exception(function() use ($positiveInfinite, $negativeInfinite) {
181 181
                     $positiveInfinite->add($negativeInfinite);
182 182
                 })->isInstanceOf(\Exception::class)
183 183
         ;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                     ->isTrue()
210 210
                 ->boolean($negativeInfinite->sub($positiveInfinite)->equals($negativeInfinite))
211 211
                     ->isTrue()
212
-                ->exception(function () use ($positiveInfinite) {
212
+                ->exception(function() use ($positiveInfinite) {
213 213
                     $positiveInfinite->sub($positiveInfinite);
214 214
                 })->isInstanceOf(\Exception::class)
215 215
         ;
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 ->boolean($negativeInfinite->mult($positiveInfinite)->equals($negativeInfinite))
258 258
                     ->isTrue()
259 259
 
260
-                ->exception(function () use ($positiveInfinite) {
260
+                ->exception(function() use ($positiveInfinite) {
261 261
                     $zero = $this->fromNative(0);
262 262
                     $positiveInfinite->mult($zero);
263 263
                 })->isInstanceOf(\Exception::class)
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
                 ->boolean($negativeInfinite->div($negativeNumber)->equals($positiveInfinite))
294 294
                     ->isTrue()
295 295
 
296
-                ->exception(function () use ($positiveInfinite) {
296
+                ->exception(function() use ($positiveInfinite) {
297 297
                     $positiveInfinite->div($positiveInfinite);
298 298
                 })->isInstanceOf(\Exception::class)
299 299
         ;
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
                     ->isEqualTo(1)
371 371
                 ->variable($negativeInfinite->compareTo($positiveInfinite))
372 372
                     ->isEqualTo(-1)
373
-                ->exception(function () use ($positiveInfinite) {
373
+                ->exception(function() use ($positiveInfinite) {
374 374
                     $positiveInfinite->compareTo($positiveInfinite);
375 375
                 })->isInstanceOf(\Exception::class)
376 376
         ;
Please login to merge, or discard this patch.
Tests/Units/RealTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
                     ->isEqualTo(\sqrt($native))
82 82
                 ->variable($c->toNative())
83 83
                     ->isEqualTo(\bcsqrt($native, 2))
84
-                ->exception(function () use ($a, $invalidScale) {
84
+                ->exception(function() use ($a, $invalidScale) {
85 85
                     $a->sqrt($invalidScale);
86 86
                 })->isInstanceOf(\InvalidArgumentException::class)
87 87
         ;
Please login to merge, or discard this patch.