mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed coding style in CreditCardField::Field()
This commit is contained in:
parent
b2d16fd538
commit
54507d7a8f
@ -8,8 +8,7 @@ class CreditCardField extends TextField {
|
||||
|
||||
function Field() {
|
||||
$parts = $this->value;
|
||||
if(!is_array($parts))
|
||||
$parts = explode("\n", chunk_split($parts,4,"\n"));
|
||||
if(!is_array($parts)) $parts = explode("\n", chunk_split($parts,4,"\n"));
|
||||
$parts = array_pad($parts, 4, "");
|
||||
|
||||
// TODO Mark as disabled/readonly
|
||||
|
Loading…
x
Reference in New Issue
Block a user