Skip to content

Commit 1d5fcfd

Browse files
author
Thomas Lallement
committed
Fix remaining CS
1 parent a020fb6 commit 1d5fcfd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/PhpSpreadsheet/Reader/Xlsx.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ protected function loadSpreadsheetFromFile(string $filename): Spreadsheet
953953

954954
break;
955955
case DataType::TYPE_ERROR:
956-
if (isset($cAttr->vm) && isset($richData['image']['rId' . $cAttr->vm]) && !$useFormula) {
956+
if (isset($cAttr->vm, $richData['image']['rId' . $cAttr->vm]) && !$useFormula) {
957957
$imagePath = $dir . '/' . str_replace('../', '', $richData['image']['rId' . $cAttr->vm]);
958958
$objDrawing = new \PhpOffice\PhpSpreadsheet\Worksheet\Drawing();
959959
$objDrawing->setPath(
@@ -969,8 +969,8 @@ protected function loadSpreadsheetFromFile(string $filename): Spreadsheet
969969
$objDrawing->setWorksheet($docSheet);
970970

971971
$value = $objDrawing;
972-
$cellDataType = DATATYPE::TYPE_NULL;
973-
$c->t = DATATYPE::TYPE_NULL;
972+
$cellDataType = DataType::TYPE_NULL;
973+
$c->t = DataType::TYPE_NULL;
974974

975975
break;
976976
}

tests/PhpSpreadsheetTests/Reader/Xlsx/DrawingInCell.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace PhpOffice\PhpSpreadsheetTests\Reader\Xlsx;
66

77
use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
8-
use PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Engineering\ImAbsTest;
98
use PhpOffice\PhpSpreadsheetTests\Functional\AbstractFunctional;
109

1110
class DrawingInCell extends AbstractFunctional

0 commit comments

Comments
 (0)