Passed
Push — 1.0.0 ( dcbbd2...044a70 )
by Alex
02:02
created
src/Collection/AbstractCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Collection/MoneyCollectionTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Collection/CurrencyCollectionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.