Upgrad PHP deps
This commit is contained in:
parent
65a94abeca
commit
321dfc7a3d
|
@ -53,10 +53,10 @@
|
|||
"ext-xmlwriter": "*",
|
||||
"ext-zip": "*",
|
||||
"ext-zlib": "*",
|
||||
"maennchen/zipstream-php": "^2.1",
|
||||
"markbaker/complex": "^1.4",
|
||||
"markbaker/matrix": "^1.2",
|
||||
"psr/simple-cache": "^1.0",
|
||||
"maennchen/zipstream-php": "^2.0"
|
||||
"psr/simple-cache": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"dompdf/dompdf": "^0.8.5",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -219,9 +219,11 @@ class JpGraph implements IRenderer
|
|||
break;
|
||||
case 't':
|
||||
$this->graph->legend->SetPos(0.5, 0.01, 'center', 'top'); // top
|
||||
|
||||
break;
|
||||
case 'b':
|
||||
$this->graph->legend->SetPos(0.5, 0.99, 'center', 'bottom'); // bottom
|
||||
|
||||
break;
|
||||
default:
|
||||
$this->graph->legend->SetPos(0.01, 0.01, 'right', 'top'); // top-right
|
||||
|
|
|
@ -4944,6 +4944,7 @@ class Xls extends BaseReader
|
|||
// offset: var; size: $sz1; formula data for first condition (without size field)
|
||||
$formula1 = substr($recordData, $offset, $sz1);
|
||||
$formula1 = pack('v', $sz1) . $formula1; // prepend the length
|
||||
|
||||
try {
|
||||
$formula1 = $this->getFormulaFromStructure($formula1);
|
||||
|
||||
|
@ -4966,6 +4967,7 @@ class Xls extends BaseReader
|
|||
// offset: var; size: $sz2; formula data for second condition (without size field)
|
||||
$formula2 = substr($recordData, $offset, $sz2);
|
||||
$formula2 = pack('v', $sz2) . $formula2; // prepend the length
|
||||
|
||||
try {
|
||||
$formula2 = $this->getFormulaFromStructure($formula2);
|
||||
} catch (PhpSpreadsheetException $e) {
|
||||
|
@ -5763,6 +5765,7 @@ class Xls extends BaseReader
|
|||
$size = 9;
|
||||
$data = self::extractNumber(substr($formulaData, 1));
|
||||
$data = str_replace(',', '.', (string) $data); // in case non-English locale
|
||||
|
||||
break;
|
||||
case 0x20: // array constant
|
||||
case 0x40:
|
||||
|
|
|
@ -318,21 +318,25 @@ class Font
|
|||
// value 8.26 was found via interpolation by inspecting real Excel files with Calibri 11 font.
|
||||
$columnWidth = (int) (8.26 * StringHelper::countCharacters($columnText));
|
||||
$columnWidth = $columnWidth * $fontSize / 11; // extrapolate from font size
|
||||
|
||||
break;
|
||||
case 'Arial':
|
||||
// value 8 was set because of experience in different exports at Arial 10 font.
|
||||
$columnWidth = (int) (8 * StringHelper::countCharacters($columnText));
|
||||
$columnWidth = $columnWidth * $fontSize / 10; // extrapolate from font size
|
||||
|
||||
break;
|
||||
case 'Verdana':
|
||||
// value 8 was found via interpolation by inspecting real Excel files with Verdana 10 font.
|
||||
$columnWidth = (int) (8 * StringHelper::countCharacters($columnText));
|
||||
$columnWidth = $columnWidth * $fontSize / 10; // extrapolate from font size
|
||||
|
||||
break;
|
||||
default:
|
||||
// just assume Calibri
|
||||
$columnWidth = (int) (8.26 * StringHelper::countCharacters($columnText));
|
||||
$columnWidth = $columnWidth * $fontSize / 11; // extrapolate from font size
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -192,6 +192,7 @@ class PPS
|
|||
. pack('V', isset($this->startBlock) ? $this->startBlock : 0) // 120
|
||||
. pack('V', $this->Size) // 124
|
||||
. pack('V', 0); // 128
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -1250,6 +1250,7 @@ class Parser
|
|||
throw new WriterException("')' token expected.");
|
||||
}
|
||||
$this->advance(); // eat the ")"
|
||||
|
||||
return $result;
|
||||
}
|
||||
// if it's a reference
|
||||
|
@ -1350,6 +1351,7 @@ class Parser
|
|||
|
||||
$result = $this->createTree($function, $result, $num_args);
|
||||
$this->advance(); // eat the ")"
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue