Skip to content

Commit d6e3ca9

Browse files
committed
formatting
1 parent d0ee95d commit d6e3ca9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/Illuminate/Hashing/ArgonHasher.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ class ArgonHasher implements HasherContract
2929
protected $threads = 2;
3030

3131
/**
32-
* Constructor.
32+
* Create a new hasher instance.
3333
*
34-
* @param array $options
34+
* @param array $options
35+
* @return void
3536
*/
36-
public function __construct($options = null)
37+
public function __construct(array $options = [])
3738
{
38-
$this->memory = $options['memory'] ?? $this->memory;
3939
$this->time = $options['time'] ?? $this->time;
40+
$this->memory = $options['memory'] ?? $this->memory;
4041
$this->threads = $options['threads'] ?? $this->threads;
4142
}
4243

src/Illuminate/Hashing/BcryptHasher.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ class BcryptHasher implements HasherContract
1515
protected $rounds = 10;
1616

1717
/**
18-
* Constructor.
18+
* Create a new hasher instance.
1919
*
20-
* @param array $options
20+
* @param array $options
21+
* @return void
2122
*/
22-
public function __construct($options = null)
23+
public function __construct(array $options = [])
2324
{
2425
$this->rounds = $options['rounds'] ?? $this->rounds;
2526
}

0 commit comments

Comments
 (0)