File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments