aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
Diffstat (limited to 'vendor')
-rw-r--r--vendor/write_excel/OLEwriter.php4
-rw-r--r--vendor/write_excel/Parser.php14
2 files changed, 9 insertions, 9 deletions
diff --git a/vendor/write_excel/OLEwriter.php b/vendor/write_excel/OLEwriter.php
index 17bdfd6..b82f3aa 100644
--- a/vendor/write_excel/OLEwriter.php
+++ b/vendor/write_excel/OLEwriter.php
@@ -347,7 +347,7 @@ class OLEwriter
for($i=0;$i<strlen($name);$i++)
{
// Simulate a Unicode string
- $rawname .= pack("H*",dechex(ord($name{$i}))).pack("C",0);
+ $rawname .= pack("H*",dechex(ord($name[$i]))).pack("C",0);
}
$length = strlen($name) * 2;
}
@@ -411,4 +411,4 @@ class OLEwriter
}
}
}
-?> \ No newline at end of file
+?>
diff --git a/vendor/write_excel/Parser.php b/vendor/write_excel/Parser.php
index 1b7030e..1646f74 100644
--- a/vendor/write_excel/Parser.php
+++ b/vendor/write_excel/Parser.php
@@ -642,7 +642,7 @@ class Parser
$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--;
}
@@ -662,30 +662,30 @@ class Parser
// 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($this->_match($token) != '')
{
if($i < strlen($this->_formula) - 1)
{
- $this->_lookahead = $this->_formula{$i+1};
+ $this->_lookahead = $this->_formula[$i+1];
}
$this->_current_char = $i + 1;
$this->_current_token = $token;
return(1);
}
- $this->_lookahead = $this->_formula{$i+2};
+ $this->_lookahead = $this->_formula[$i+2];
$i++;
}
//die("Lexical error ".$this->_current_char);
@@ -765,7 +765,7 @@ class Parser
{
$this->_current_char = 0;
$this->_formula = $formula;
- $this->_lookahead = $formula{1};
+ $this->_lookahead = $formula[1];
$this->_advance();
$this->_parse_tree = $this->_expression();
}