Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 21, 2021
1 parent 3a0af0a commit 45567e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Validation/NotPwnedVerifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class NotPwnedVerifier implements UncompromisedVerifier
*
* @var int
*/
public $timeout;
protected $timeout;

/**
* Create a new uncompromised verifier.
Expand All @@ -32,7 +32,7 @@ class NotPwnedVerifier implements UncompromisedVerifier
public function __construct($factory, $timeout = null)
{
$this->factory = $factory;
$this->timeout = $timeout ?? 15;
$this->timeout = $timeout ?? 10;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/Validation/ValidationNotPwnedVerifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testApiResponseGoesWrong()
$httpFactory
->shouldReceive('timeout')
->once()
->with(15)
->with(10)
->andReturn($httpFactory);

$httpFactory->shouldReceive('get')
Expand Down Expand Up @@ -86,7 +86,7 @@ public function testApiGoesDown()
$httpFactory
->shouldReceive('timeout')
->once()
->with(15)
->with(10)
->andReturn($httpFactory);

$httpFactory->shouldReceive('get')
Expand Down Expand Up @@ -127,7 +127,7 @@ public function testDnsDown()
$httpFactory
->shouldReceive('timeout')
->once()
->with(15)
->with(10)
->andReturn($httpFactory);

$httpFactory
Expand Down

0 comments on commit 45567e0

Please sign in to comment.