Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 17, 2018
1 parent d0ee95d commit d6e3ca9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/Illuminate/Hashing/ArgonHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ class ArgonHasher implements HasherContract
protected $threads = 2;

/**
* Constructor.
* Create a new hasher instance.
*
* @param array $options
* @param array $options
* @return void
*/
public function __construct($options = null)
public function __construct(array $options = [])
{
$this->memory = $options['memory'] ?? $this->memory;
$this->time = $options['time'] ?? $this->time;
$this->memory = $options['memory'] ?? $this->memory;
$this->threads = $options['threads'] ?? $this->threads;
}

Expand Down
7 changes: 4 additions & 3 deletions src/Illuminate/Hashing/BcryptHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ class BcryptHasher implements HasherContract
protected $rounds = 10;

/**
* Constructor.
* Create a new hasher instance.
*
* @param array $options
* @param array $options
* @return void
*/
public function __construct($options = null)
public function __construct(array $options = [])
{
$this->rounds = $options['rounds'] ?? $this->rounds;
}
Expand Down

0 comments on commit d6e3ca9

Please sign in to comment.