Skip to content

Commit

Permalink
Update Exchange.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rdehnhardt authored Sep 13, 2017
1 parent 078ad42 commit b3e76be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ class Exchange
* Exchange constructor.
* @param Fixer $fixer
*/
public function __construct(Fixer $fixer = null)
public function __construct(Fixer $fixer)
{
if ($fixer === null) {
$fixer = new Fixer();
}

$this->fixer = $fixer;
}

Expand All @@ -38,4 +34,4 @@ public function rate($amount, $from, $to, $rate = null)

return $amount * $rate;
}
}
}

0 comments on commit b3e76be

Please sign in to comment.