Skip to content

Commit 847a9bc

Browse files
authored
Merge pull request #1 from laravel-validation-rules/analysis-8myDl1
Apply fixes from StyleCI
2 parents 987bda4 + 96d0e64 commit 847a9bc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/Cards/Card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ protected function checkImplementation()
231231
*/
232232
protected function validPattern()
233233
{
234-
return ! ! preg_match(static::$pattern, $this->card_number);
234+
return (bool) preg_match(static::$pattern, $this->card_number);
235235
}
236236

237237
/**

tests/Unit/CardCvcTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function it_checks_cvc_code_length()
5757
$this->assertFalse(Card::isValidCvcLength('12345'));
5858
$this->assertFalse(Card::isValidCvcLength('123455'));
5959
}
60+
6061
/**
6162
* @param string|int $cvc
6263
*

tests/Unit/CardExpirationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function it_can_be_called_directly()
123123
$this->assertFalse(Card::isValidExpirationDate('', date('m')));
124124
$this->assertFalse(Card::isValidExpirationDate(date('Y'), ''));
125125
}
126+
126127
/**
127128
* @param string $year
128129
*

0 commit comments

Comments
 (0)