Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 30, 2018
1 parent 806e01e commit 8d2703f
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions src/Illuminate/Hashing/ArgonHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@
class ArgonHasher implements HasherContract
{
/**
* The default threads factor.
* The default memory cost factor.
*
* @var int
*/
protected $threads = 2;
protected $memory = 1024;

/**
* The default memory cost factor.
* The default time cost factor.
*
* @var int
*/
protected $memory = 1024;
protected $time = 2;

/**
* The default time cost factor.
* The default threads factor.
*
* @var int
*/
protected $time = 2;
protected $threads = 2;

/**
* Get information about the given hashed value.
Expand Down Expand Up @@ -95,43 +95,40 @@ public function needsRehash($hashedValue, array $options = [])
}

/**
* Set the default password threads factor.
*
* @param int $threads
* Set the default password memory factor.
*
* @return $this;
* @param int $memory
* @return $this
*/
public function setThreads(int $threads)
public function setMemory(int $memory)
{
$this->threads = $threads;
$this->memory = $memory;

return $this;
}

/**
* Set the default password memory factor.
*
* @param int $memory
* Set the default password timing factor.
*
* @param int $time
* @return $this
*/
public function setMemory(int $memory)
public function setTime(int $time)
{
$this->memory = $memory;
$this->time = $time;

return $this;
}

/**
* Set the default password timing factor.
*
* @param int $time
* Set the default password threads factor.
*
* @param int $threads
* @return $this
*/
public function setTime(int $time)
public function setThreads(int $threads)
{
$this->time = $time;
$this->threads = $threads;

return $this;
}
Expand Down

0 comments on commit 8d2703f

Please sign in to comment.