@@ -237,9 +237,9 @@ discard block |
||
237 | 237 | } |
238 | 238 | |
239 | 239 | /** |
240 | - * @param $extRef |
|
240 | + * @param string $extRef |
|
241 | 241 | * |
242 | - * @return array |
|
242 | + * @return integer[] |
|
243 | 243 | * @throws \Exception |
244 | 244 | */ |
245 | 245 | protected function getRangeSheets($extRef) |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * @param string $cellAddress The Excel cell reference to be packed |
356 | 356 | * |
357 | 357 | * @throws \Exception |
358 | - * @return array Array containing the row and column in packed() format |
|
358 | + * @return string[] Array containing the row and column in packed() format |
|
359 | 359 | */ |
360 | 360 | protected function cellToPackedRowcol($cellAddress) |
361 | 361 | { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | $encoding = 0; |
114 | 114 | |
115 | - return pack("CCC", Ptg::get('ptgStr'), strlen($string), $encoding) . $string; |
|
115 | + return pack("CCC", Ptg::get('ptgStr'), strlen($string), $encoding).$string; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | |
156 | 156 | $ptgArea = pack("C", Ptg::get('ptgArea')); |
157 | 157 | |
158 | - return $ptgArea . $row1 . $row2 . $col1 . $col2; |
|
158 | + return $ptgArea.$row1.$row2.$col1.$col2; |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | $ptgArea = pack("C", Ptg::get('ptgArea3dA')); |
184 | 184 | |
185 | - return $ptgArea . $extRef . $row1 . $row2 . $col1 . $col2; |
|
185 | + return $ptgArea.$extRef.$row1.$row2.$col1.$col2; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | $ptgRef = pack("C", Ptg::get('ptgRefA')); |
199 | 199 | |
200 | - return $ptgRef . $row . $col; |
|
200 | + return $ptgRef.$row.$col; |
|
201 | 201 | } |
202 | 202 | |
203 | 203 | /** |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | |
221 | 221 | $ptgRef = pack("C", Ptg::get('ptgRef3dA')); |
222 | 222 | |
223 | - return $ptgRef . $extRef . $row . $col; |
|
223 | + return $ptgRef.$extRef.$row.$col; |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | protected function isNumber($token) |
536 | 536 | { |
537 | 537 | return is_numeric($token) |
538 | - && (!is_numeric($token . $this->lookahead) || $this->lookahead == '') |
|
538 | + && (!is_numeric($token.$this->lookahead) || $this->lookahead == '') |
|
539 | 539 | && $this->lookahead != '!' |
540 | 540 | && $this->lookahead != ':'; |
541 | 541 | } |
@@ -698,9 +698,9 @@ discard block |
||
698 | 698 | } |
699 | 699 | |
700 | 700 | throw new \Exception( |
701 | - "Syntax error: " . $this->currentToken . |
|
702 | - ", lookahead: " . $this->lookahead . |
|
703 | - ", current char: " . $this->currentChar |
|
701 | + "Syntax error: ".$this->currentToken. |
|
702 | + ", lookahead: ".$this->lookahead. |
|
703 | + ", current char: ".$this->currentChar |
|
704 | 704 | ); |
705 | 705 | } |
706 | 706 | |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | if ($numArgs > 0) { |
724 | 724 | if (!Token::isCommaOrSemicolon($this->currentToken)) { |
725 | 725 | throw new \Exception( |
726 | - "Syntax error: comma expected in " . |
|
726 | + "Syntax error: comma expected in ". |
|
727 | 727 | "function $function, arg #{$numArgs}" |
728 | 728 | ); |
729 | 729 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $data .= pack("Cv", $nameLen, $formulaLen); |
33 | 33 | $data .= pack("vv", 0, $sheetIndex); |
34 | 34 | $data .= pack("CCCC", 0, 0, 0, 0); |
35 | - $data .= $name . $formulaData; |
|
35 | + $data .= $name.$formulaData; |
|
36 | 36 | |
37 | 37 | return $this->getFullRecord($data); |
38 | 38 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | $length += array_shift($blockSizes); |
31 | 31 | } |
32 | 32 | |
33 | - return $this->getHeader($length) . $data; |
|
33 | + return $this->getHeader($length).$data; |
|
34 | 34 | } |
35 | 35 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $iRes, |
45 | 45 | $iVRes |
46 | 46 | ); |
47 | - $data .= $numHdr . $numFtr; |
|
47 | + $data .= $numHdr.$numFtr; |
|
48 | 48 | |
49 | 49 | $iCopies = 0x01; // Number of copies |
50 | 50 | $data .= pack("v", $iCopies); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $recordId = substr($data, 0, 2); |
32 | 32 | $newRecordSize = $limit - 4; |
33 | 33 | $recordData = substr($data, 4, $newRecordSize); |
34 | - $result = $recordId . pack("v", $newRecordSize) . $recordData; |
|
34 | + $result = $recordId.pack("v", $newRecordSize).$recordData; |
|
35 | 35 | |
36 | 36 | $data = substr($data, $newRecordSize + 4); |
37 | 37 | $result .= $this->getDataRaw($data); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | protected function getFullRecord($data = '') |
37 | 37 | { |
38 | - return $this->getHeader(strlen($data)) . $data; |
|
38 | + return $this->getHeader(strlen($data)).$data; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -27,20 +27,20 @@ |
||
27 | 27 | $upCount = preg_match_all("/\.\.\\\/", $url, $useless); |
28 | 28 | |
29 | 29 | // Store the short dos dir name (null terminated) |
30 | - $urlWithoutDots = preg_replace("/\.\.\\\/", '', $url) . "\0"; |
|
30 | + $urlWithoutDots = preg_replace("/\.\.\\\/", '', $url)."\0"; |
|
31 | 31 | |
32 | 32 | // Unknown 24 bytes |
33 | - $unknown = pack("H*", 'FFFFADDE' . str_repeat('00', 20)); |
|
33 | + $unknown = pack("H*", 'FFFFADDE'.str_repeat('00', 20)); |
|
34 | 34 | |
35 | 35 | $streamLen = pack("V", 0); |
36 | 36 | |
37 | 37 | $options = $this->getOptions($url); |
38 | 38 | $data = $this->getCommonData($range, $options); |
39 | - $data .= pack("H*", static::MONIKER_GUID) . |
|
40 | - pack("v", $upCount) . |
|
41 | - pack("V", strlen($urlWithoutDots)) . |
|
42 | - $urlWithoutDots . |
|
43 | - $unknown . |
|
39 | + $data .= pack("H*", static::MONIKER_GUID). |
|
40 | + pack("v", $upCount). |
|
41 | + pack("V", strlen($urlWithoutDots)). |
|
42 | + $urlWithoutDots. |
|
43 | + $unknown. |
|
44 | 44 | $streamLen; |
45 | 45 | |
46 | 46 | if ($cellRef) { |
@@ -18,6 +18,6 @@ |
||
18 | 18 | |
19 | 19 | $data = pack("vvvv", $width, $height, $planesCount, $colorDepth); |
20 | 20 | |
21 | - return pack("V", strlen($data) + 4) . $data; |
|
21 | + return pack("V", strlen($data) + 4).$data; |
|
22 | 22 | } |
23 | 23 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | $header = pack("vv", 0x15, strlen($data)); |
21 | 21 | |
22 | - return $header . $data; |
|
22 | + return $header.$data; |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | protected function getFtNtsSubrecord($guid = null) |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | //reserved |
37 | 37 | $data .= pack('vv', 0x10, 0); |
38 | 38 | |
39 | - return $header . $data; |
|
39 | + return $header.$data; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | protected function getFtEndSubrecord() |