Skip to content

Commit d5ef646

Browse files
committed
revert blank lines
1 parent 7aa54c1 commit d5ef646

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.idea
12
/vendor
23
/.php_cs.cache
34
/composer.lock

src/XBase/Record.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ public function getMemo($columnName)
300300
$data = $this->forceGetString($columnName);
301301
if ($data && strlen($data) == 2) {
302302
$pointer = unpack('s', $data)[1];
303-
304303
return $this->memoFile->get($pointer);
305304
} else {
306305
return $data;
@@ -494,32 +493,25 @@ public function setObject($columnObj, $value)
494493
switch ($columnObj->getType()) {
495494
case self::DBFFIELD_TYPE_CHAR:
496495
$this->setString($columnObj, $value);
497-
498496
return false;
499497
case self::DBFFIELD_TYPE_DOUBLE:
500498
case self::DBFFIELD_TYPE_FLOATING:
501499
$this->setFloat($columnObj, $value);
502-
503500
return false;
504501
case self::DBFFIELD_TYPE_DATE:
505502
$this->setDate($columnObj, $value);
506-
507503
return false;
508504
case self::DBFFIELD_TYPE_DATETIME:
509505
$this->setDateTime($columnObj, $value);
510-
511506
return false;
512507
case self::DBFFIELD_TYPE_LOGICAL:
513508
$this->setBoolean($columnObj, $value);
514-
515509
return false;
516510
case self::DBFFIELD_TYPE_MEMO:
517511
$this->setMemo($columnObj, $value);
518-
519512
return false;
520513
case self::DBFFIELD_TYPE_NUMERIC:
521514
$this->setInt($columnObj, $value);
522-
523515
return false;
524516
case self::DBFFIELD_IGNORE_0:
525517
return false;
@@ -540,13 +532,12 @@ public function setDate($columnObj, $value)
540532
trigger_error($columnObj->getName().' is not a Date column', E_USER_ERROR);
541533
}
542534

543-
if ($value instanceof \DateTimeInterface){
535+
if ($value instanceof \DateTimeInterface) {
544536
$value = $value->format('U');
545537
}
546538

547539
if (strlen($value) == 0) {
548540
$this->forceSetString($columnObj, '');
549-
550541
return false;
551542
}
552543

@@ -567,7 +558,6 @@ public function setDateTime($columnObj, $value)
567558

568559
if (strlen($value) == 0) {
569560
$this->forceSetString($columnObj, '');
570-
571561
return false;
572562
}
573563

@@ -599,11 +589,9 @@ public function setBoolean($columnObj, $value)
599589
case 'N':
600590
case '0':
601591
$this->forceSetString($columnObj, $value);
602-
603592
return false;
604593
case true:
605594
$this->forceSetString($columnObj, 'T');
606-
607595
return false;
608596
default:
609597
$this->forceSetString($columnObj, 'F');
@@ -637,7 +625,6 @@ public function setFloat($columnObj, $value)
637625

638626
if (strlen($value) == 0) {
639627
$this->forceSetString($columnObj, '');
640-
641628
return false;
642629
}
643630

@@ -659,7 +646,6 @@ public function setInt($columnObj, $value)
659646

660647
if (strlen($value) == 0) {
661648
$this->forceSetString($columnObj, '');
662-
663649
return false;
664650
}
665651

0 commit comments

Comments
 (0)