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