Test Setup Failed
Branch master (40d9e8)
by sarnado
02:27
created
src/Collections/CryptoRatesCollection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     public function filterByPair(string $crypto, string $fiat): CryptoRatesCollection
51 51
     {
52
-        return $this->filter(function (CryptoRateObject $rate) use ($crypto, $fiat)
52
+        return $this->filter(function(CryptoRateObject $rate) use ($crypto, $fiat)
53 53
         {
54 54
             return $rate->getCrypto() === $crypto && $rate->getFiat() === $fiat;
55 55
         });
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
         if ($this->check($data))
22 22
         {
23 23
             parent::__construct($data);
24
-        }
25
-        else
24
+        } else
26 25
         {
27 26
             throw new \InvalidArgumentException('Item from array must be instance of CryptoRateObject');
28 27
         }
Please login to merge, or discard this patch.
src/Collections/FiatRatesCollection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     public function filterByPair(string $from, string $to): FiatRatesCollection
53 53
     {
54
-        return $this->filter(function (FiatRateObject $rate) use ($from, $to)
54
+        return $this->filter(function(FiatRateObject $rate) use ($from, $to)
55 55
         {
56 56
             return $rate->getFrom() === $from && $rate->getTo() === $to;
57 57
         });
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
         if ($this->check($data))
24 24
         {
25 25
             parent::__construct($data);
26
-        }
27
-        else
26
+        } else
28 27
         {
29 28
             throw new \InvalidArgumentException('Item from array must be instance of FiatRateObject');
30 29
         }
Please login to merge, or discard this patch.