@@ -52,7 +52,7 @@ |
||
| 52 | 52 | private function checkValueIsValidForCollection($value): void |
| 53 | 53 | { |
| 54 | 54 | if (get_class($value) != $this->itemClass()) { |
| 55 | - throw new \InvalidArgumentException("Provided value is not a valid " . $this->itemClass()); |
|
| 55 | + throw new \InvalidArgumentException("Provided value is not a valid ".$this->itemClass()); |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | // Arrange |
| 15 | 15 | $money1 = Money::create(2320, Currency::fromValue(Currency::EUR)); |
| 16 | 16 | $money2 = Money::create(32423, Currency::fromValue(Currency::USD)); |
| 17 | - $money3 = Money::create(23423,Currency::fromValue(Currency::VES)); |
|
| 17 | + $money3 = Money::create(23423, Currency::fromValue(Currency::VES)); |
|
| 18 | 18 | $moneyArray = [ |
| 19 | 19 | $money1, |
| 20 | 20 | $money2, |
@@ -38,11 +38,11 @@ discard block |
||
| 38 | 38 | ); |
| 39 | 39 | $this->assertEquals(3, count($moneyCollection)); |
| 40 | 40 | |
| 41 | - for($i = 0; $i < 3; $i++) { |
|
| 41 | + for ($i = 0; $i < 3; $i++) { |
|
| 42 | 42 | $this->assertEquals($moneyArray[$i], $moneyCollection[$i]); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - foreach($moneyCollection as $key => $money) { |
|
| 45 | + foreach ($moneyCollection as $key => $money) { |
|
| 46 | 46 | $this->assertInstanceOf(Money::class, $money); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | public function testGivenAnInvalidValueItThrowsAnException(): void |
| 64 | 64 | { |
| 65 | 65 | $this->expectException(\InvalidArgumentException::class); |
| 66 | - $this->expectExceptionMessage("Provided value is not a valid " . Money::class); |
|
| 66 | + $this->expectExceptionMessage("Provided value is not a valid ".Money::class); |
|
| 67 | 67 | |
| 68 | 68 | $money1 = new \stdClass(); |
| 69 | 69 | |
@@ -37,11 +37,11 @@ discard block |
||
| 37 | 37 | ); |
| 38 | 38 | $this->assertEquals(3, count($currencyCollection)); |
| 39 | 39 | |
| 40 | - for($i = 0; $i < 3; $i++) { |
|
| 40 | + for ($i = 0; $i < 3; $i++) { |
|
| 41 | 41 | $this->assertEquals($currencyArray[$i], $currencyCollection[$i]); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - foreach($currencyCollection as $key => $currency) { |
|
| 44 | + foreach ($currencyCollection as $key => $currency) { |
|
| 45 | 45 | $this->assertInstanceOf(Currency::class, $currency); |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | public function testGivenAnInvalidValueItThrowsAnException(): void |
| 63 | 63 | { |
| 64 | 64 | $this->expectException(\InvalidArgumentException::class); |
| 65 | - $this->expectExceptionMessage("Provided value is not a valid " . Currency::class); |
|
| 65 | + $this->expectExceptionMessage("Provided value is not a valid ".Currency::class); |
|
| 66 | 66 | |
| 67 | 67 | $currency1 = new \stdClass(); |
| 68 | 68 | |