Fixed CS errors

This commit is contained in:
Paolo Agostinetto 2017-02-20 22:14:07 +01:00
parent f3c62b615e
commit 529617c77d
1 changed files with 8 additions and 3 deletions

View File

@ -477,7 +477,6 @@ class Ods extends BaseReader implements IReader
// } // }
break; break;
case 'table-row': case 'table-row':
if ($childNode->hasAttributeNS($tableNs, 'number-rows-repeated')) { if ($childNode->hasAttributeNS($tableNs, 'number-rows-repeated')) {
$rowRepeats = $childNode->getAttributeNS($tableNs, 'number-rows-repeated'); $rowRepeats = $childNode->getAttributeNS($tableNs, 'number-rows-repeated');
} else { } else {
@ -604,12 +603,18 @@ class Ods extends BaseReader implements IReader
$dateObj = new DateTime($value, $GMT); $dateObj = new DateTime($value, $GMT);
$dateObj->setTimeZone($timezoneObj); $dateObj->setTimeZone($timezoneObj);
list($year, $month, $day, $hour, $minute, $second) = explode(' ', list($year, $month, $day, $hour, $minute, $second) = explode(
' ',
$dateObj->format('Y m d H i s') $dateObj->format('Y m d H i s')
); );
$dataValue = \PhpOffice\PhpSpreadsheet\Shared\Date::formattedPHPToExcel( $dataValue = \PhpOffice\PhpSpreadsheet\Shared\Date::formattedPHPToExcel(
$year, $month, $day, $hour, $minute, $second $year,
$month,
$day,
$hour,
$minute,
$second
); );
if ($dataValue != floor($dataValue)) { if ($dataValue != floor($dataValue)) {