Skip to content

Commit cc6d284

Browse files
committed
Fix CS
1 parent b26ec8d commit cc6d284

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Omnipay/Common/CreditCard.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ public function validate()
141141
throw new InvalidCreditCardException('Card number is invalid');
142142
}
143143

144-
if (!is_null($this->getNumber()) && !preg_match('/^\d{12,19}$/i', $this->getNumber())) {
145-
throw new InvalidCreditCardException('Card number should have 12 to 19 digits');
146-
}
144+
if (!is_null($this->getNumber()) && !preg_match('/^\d{12,19}$/i', $this->getNumber())) {
145+
throw new InvalidCreditCardException('Card number should have 12 to 19 digits');
146+
}
147147
}
148148

149149
public function getTitle()

tests/Omnipay/Common/CreditCardTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,6 @@ public function testGender()
596596
public function testInvalidShortCard()
597597
{
598598
$this->card->setNumber('43');
599-
$this->card->validate();
599+
$this->card->validate();
600600
}
601601
}

0 commit comments

Comments
 (0)