From 8d2703f68e03764abb1a591f88fbc1ed29ddfb97 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 30 Jan 2018 08:43:30 -0600 Subject: [PATCH] formatting --- src/Illuminate/Hashing/ArgonHasher.php | 41 ++++++++++++-------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/src/Illuminate/Hashing/ArgonHasher.php b/src/Illuminate/Hashing/ArgonHasher.php index c6536be73661..ce89abd4c549 100644 --- a/src/Illuminate/Hashing/ArgonHasher.php +++ b/src/Illuminate/Hashing/ArgonHasher.php @@ -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. @@ -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; }