Fix spacing according to Scrutinizer
This commit is contained in:
parent
d7751afbec
commit
eda1c8a4d6
|
@ -1464,7 +1464,7 @@ class Xlsx extends BaseReader
|
|||
// unparsed vmlDrawing
|
||||
if ($unparsedVmlDrawings) {
|
||||
foreach ($unparsedVmlDrawings as $rId => $relPath) {
|
||||
$rId = substr($rId, 3); // rIdXXX
|
||||
$rId = substr($rId, 3); // rIdXXX
|
||||
$unparsedVmlDrawing = &$unparsedLoadedData['sheets'][$docSheet->getCodeName()]['vmlDrawings'];
|
||||
$unparsedVmlDrawing[$rId] = [];
|
||||
$unparsedVmlDrawing[$rId]['filePath'] = self::dirAdd("$dir/$fileWorksheet", $relPath);
|
||||
|
@ -2350,7 +2350,7 @@ class Xlsx extends BaseReader
|
|||
|
||||
$unparsedCtrlProps = &$unparsedLoadedData['sheets'][$docSheet->getCodeName()]['ctrlProps'];
|
||||
foreach ($ctrlProps as $rId => $ctrlProp) {
|
||||
$rId = substr($rId, 3); // rIdXXX
|
||||
$rId = substr($rId, 3); // rIdXXX
|
||||
$unparsedCtrlProps[$rId] = [];
|
||||
$unparsedCtrlProps[$rId]['filePath'] = self::dirAdd("$dir/$fileWorksheet", $ctrlProp['Target']);
|
||||
$unparsedCtrlProps[$rId]['relFilePath'] = (string) $ctrlProp['Target'];
|
||||
|
@ -2382,7 +2382,7 @@ class Xlsx extends BaseReader
|
|||
|
||||
$unparsedPrinterSettings = &$unparsedLoadedData['sheets'][$docSheet->getCodeName()]['printerSettings'];
|
||||
foreach ($sheetPrinterSettings as $rId => $printerSettings) {
|
||||
$rId = substr($rId, 3); // rIdXXX
|
||||
$rId = substr($rId, 3); // rIdXXX
|
||||
$unparsedPrinterSettings[$rId] = [];
|
||||
$unparsedPrinterSettings[$rId]['filePath'] = self::dirAdd("$dir/$fileWorksheet", $printerSettings['Target']);
|
||||
$unparsedPrinterSettings[$rId]['relFilePath'] = (string) $printerSettings['Target'];
|
||||
|
|
|
@ -17,7 +17,7 @@ class UnparsedDataTest extends TestCase
|
|||
{
|
||||
$sampleFilename = './data/Writer/XLSX/form_pass_print.xlsm';
|
||||
$resultFilename = tempnam(File::sysGetTempDir(), 'phpspreadsheet-test');
|
||||
Settings::setLibXmlLoaderOptions(null); // reset to default options
|
||||
Settings::setLibXmlLoaderOptions(null); // reset to default options
|
||||
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
|
||||
$excel = $reader->load($sampleFilename);
|
||||
|
||||
|
|
Loading…
Reference in New Issue