php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:39:15 +09:00
parent 131b170b54
commit 27e9af5e42
1009 changed files with 12120 additions and 10849 deletions

View File

@ -267,5 +267,4 @@ class OLERead {
}
}
}
?>
}

View File

@ -204,6 +204,4 @@ class writeexcel_biffwriter {
return $tmp;
}
}
?>
}

View File

@ -690,6 +690,4 @@ class writeexcel_format {
$this->_right_color=$this->_get_color($color);
}
}
?>
}

View File

@ -153,7 +153,7 @@ function parse_formula() {
$this->_formula = $formula;
$this->_current_char = 0;
$this->_lookahead = $this->_formula{1};
$this->_lookahead = $this->_formula[1];
$this->_advance($formula);
$parsetree = $this->_condition();
@ -1005,7 +1005,7 @@ function _cellToRowcol($cell)
$col = 0;
for ($i=0; $i < strlen($col_ref); $i++)
{
$col += (ord($col_ref{$i}) - ord('A') + 1) * pow(26, $expn);
$col += (ord($col_ref[$i]) - ord('A') + 1) * pow(26, $expn);
$expn--;
}
@ -1027,19 +1027,19 @@ function _advance()
// eat up white spaces
if ($i < strlen($this->_formula))
{
while ($this->_formula{$i} == " ") {
while ($this->_formula[$i] == " ") {
$i++;
}
if ($i < strlen($this->_formula) - 1) {
$this->_lookahead = $this->_formula{$i+1};
$this->_lookahead = $this->_formula[$i+1];
}
$token = "";
}
while ($i < strlen($this->_formula))
{
$token .= $this->_formula{$i};
$token .= $this->_formula[$i];
if ($i < strlen($this->_formula) - 1) {
$this->_lookahead = $this->_formula{$i+1};
$this->_lookahead = $this->_formula[$i+1];
}
else {
$this->_lookahead = '';
@ -1054,7 +1054,7 @@ function _advance()
return 1;
}
if ($i < strlen($this->_formula) - 2) {
$this->_lookahead = $this->_formula{$i+2};
$this->_lookahead = $this->_formula[$i+2];
}
else {
// if we run out of characters _lookahead becomes empty
@ -1195,7 +1195,7 @@ function parse($formula)
{
$this->_current_char = 0;
$this->_formula = $formula;
$this->_lookahead = $formula{1};
$this->_lookahead = $formula[1];
$this->_advance();
$this->_parse_tree = $this->_condition();
if ($this->isError($this->_parse_tree)) {
@ -1604,7 +1604,4 @@ function toReversePolish($tree = array())
return $polish;
}
}
?>
}

View File

@ -348,6 +348,4 @@ class writeexcel_olewriter {
}
}
}
?>
}

View File

@ -1144,6 +1144,4 @@ function _store_codepage() {
$this->_append($header.$data);
}
}
?>
}

View File

@ -50,6 +50,4 @@ class writeexcel_workbookbig extends writeexcel_workbook {
$ole->save($this->_filename);
}
}
?>
}

View File

@ -2963,6 +2963,4 @@ function insert_bitmap() {
$this->_append($header . $data);
}
}
?>
}

View File

@ -1079,6 +1079,4 @@ class Spreadsheet_Excel_Reader
* c-basic-offset: 4
* c-hanging-comment-ender-p: nil
* End:
*/
?>
*/;