@@ -238,7 +238,7 @@ |
||
238 | 238 | * Calculate an (approximate) OpenXML column width, based on font size and text contained. |
239 | 239 | * |
240 | 240 | * @param \PhpOffice\PhpSpreadsheet\Style\Font $font Font object |
241 | - * @param \PhpOffice\PhpSpreadsheet\RichText|string $cellText Text to calculate width |
|
241 | + * @param string $cellText Text to calculate width |
|
242 | 242 | * @param int $rotation Rotation angle |
243 | 243 | * @param \PhpOffice\PhpSpreadsheet\Style\Font|null $defaultFont Font object |
244 | 244 | * |
@@ -515,11 +515,11 @@ |
||
515 | 515 | ); |
516 | 516 | break; |
517 | 517 | default: |
518 | - throw new \PhpOffice\PhpSpreadsheet\Exception('Unknown font name "'.$name.'". Cannot map to TrueType font file'); |
|
518 | + throw new \PhpOffice\PhpSpreadsheet\Exception('Unknown font name "' . $name . '". Cannot map to TrueType font file'); |
|
519 | 519 | break; |
520 | 520 | } |
521 | 521 | |
522 | - $fontFile = self::$trueTypeFontPath.$fontFile; |
|
522 | + $fontFile = self::$trueTypeFontPath . $fontFile; |
|
523 | 523 | |
524 | 524 | // Check if file actually exists |
525 | 525 | if (!file_exists($fontFile)) { |
@@ -228,7 +228,7 @@ |
||
228 | 228 | /** |
229 | 229 | * Solve A*X = B. |
230 | 230 | * |
231 | - * @param $B A Matrix with as many rows as A and any number of columns |
|
231 | + * @param Matrix $B A Matrix with as many rows as A and any number of columns |
|
232 | 232 | * |
233 | 233 | * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception IllegalArgumentException Matrix row dimensions must agree |
234 | 234 | * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception RuntimeException Matrix is singular |
@@ -149,12 +149,6 @@ discard block |
||
149 | 149 | * |
150 | 150 | * Get a submatrix |
151 | 151 | * |
152 | - * @param int $i0 Initial row index |
|
153 | - * @param int $iF Final row index |
|
154 | - * @param int $j0 Initial column index |
|
155 | - * @param int $jF Final column index |
|
156 | - * |
|
157 | - * @return Matrix Submatrix |
|
158 | 152 | */ |
159 | 153 | public function getMatrix() |
160 | 154 | { |
@@ -365,7 +359,7 @@ discard block |
||
365 | 359 | * |
366 | 360 | * @param int $m Row dimension |
367 | 361 | * @param int $n Column dimension |
368 | - * @param mixed $c Diagonal value |
|
362 | + * @param integer $c Diagonal value |
|
369 | 363 | * |
370 | 364 | * @return Matrix Diagonal matrix |
371 | 365 | */ |
@@ -449,7 +443,7 @@ discard block |
||
449 | 443 | * |
450 | 444 | * Sum of diagonal elements |
451 | 445 | * |
452 | - * @return float Sum of diagonal elements |
|
446 | + * @return integer Sum of diagonal elements |
|
453 | 447 | */ |
454 | 448 | public function trace() |
455 | 449 | { |
@@ -478,9 +472,6 @@ discard block |
||
478 | 472 | * |
479 | 473 | * A + B |
480 | 474 | * |
481 | - * @param mixed $B Matrix/Array |
|
482 | - * |
|
483 | - * @return Matrix Sum |
|
484 | 475 | */ |
485 | 476 | public function plus() |
486 | 477 | { |
@@ -521,9 +512,6 @@ discard block |
||
521 | 512 | * |
522 | 513 | * A = A + B |
523 | 514 | * |
524 | - * @param mixed $B Matrix/Array |
|
525 | - * |
|
526 | - * @return Matrix Sum |
|
527 | 515 | */ |
528 | 516 | public function plusEquals() |
529 | 517 | { |
@@ -578,9 +566,6 @@ discard block |
||
578 | 566 | * |
579 | 567 | * A - B |
580 | 568 | * |
581 | - * @param mixed $B Matrix/Array |
|
582 | - * |
|
583 | - * @return Matrix Sum |
|
584 | 569 | */ |
585 | 570 | public function minus() |
586 | 571 | { |
@@ -621,9 +606,6 @@ discard block |
||
621 | 606 | * |
622 | 607 | * A = A - B |
623 | 608 | * |
624 | - * @param mixed $B Matrix/Array |
|
625 | - * |
|
626 | - * @return Matrix Sum |
|
627 | 609 | */ |
628 | 610 | public function minusEquals() |
629 | 611 | { |
@@ -679,9 +661,6 @@ discard block |
||
679 | 661 | * Element-by-element multiplication |
680 | 662 | * Cij = Aij * Bij |
681 | 663 | * |
682 | - * @param mixed $B Matrix/Array |
|
683 | - * |
|
684 | - * @return Matrix Matrix Cij |
|
685 | 664 | */ |
686 | 665 | public function arrayTimes() |
687 | 666 | { |
@@ -723,9 +702,6 @@ discard block |
||
723 | 702 | * Element-by-element multiplication |
724 | 703 | * Aij = Aij * Bij |
725 | 704 | * |
726 | - * @param mixed $B Matrix/Array |
|
727 | - * |
|
728 | - * @return Matrix Matrix Aij |
|
729 | 705 | */ |
730 | 706 | public function arrayTimesEquals() |
731 | 707 | { |
@@ -781,9 +757,6 @@ discard block |
||
781 | 757 | * Element-by-element right division |
782 | 758 | * A / B |
783 | 759 | * |
784 | - * @param Matrix $B Matrix B |
|
785 | - * |
|
786 | - * @return Matrix Division result |
|
787 | 760 | */ |
788 | 761 | public function arrayRightDivide() |
789 | 762 | { |
@@ -844,9 +817,6 @@ discard block |
||
844 | 817 | * Element-by-element right division |
845 | 818 | * Aij = Aij / Bij |
846 | 819 | * |
847 | - * @param mixed $B Matrix/Array |
|
848 | - * |
|
849 | - * @return Matrix Matrix Aij |
|
850 | 820 | */ |
851 | 821 | public function arrayRightDivideEquals() |
852 | 822 | { |
@@ -888,9 +858,6 @@ discard block |
||
888 | 858 | * Element-by-element Left division |
889 | 859 | * A / B |
890 | 860 | * |
891 | - * @param Matrix $B Matrix B |
|
892 | - * |
|
893 | - * @return Matrix Division result |
|
894 | 861 | */ |
895 | 862 | public function arrayLeftDivide() |
896 | 863 | { |
@@ -932,9 +899,6 @@ discard block |
||
932 | 899 | * Element-by-element Left division |
933 | 900 | * Aij = Aij / Bij |
934 | 901 | * |
935 | - * @param mixed $B Matrix/Array |
|
936 | - * |
|
937 | - * @return Matrix Matrix Aij |
|
938 | 902 | */ |
939 | 903 | public function arrayLeftDivideEquals() |
940 | 904 | { |
@@ -975,9 +939,6 @@ discard block |
||
975 | 939 | * |
976 | 940 | * Matrix multiplication |
977 | 941 | * |
978 | - * @param mixed $n Matrix/Array/Scalar |
|
979 | - * |
|
980 | - * @return Matrix Product |
|
981 | 942 | */ |
982 | 943 | public function times() |
983 | 944 | { |
@@ -1078,9 +1039,6 @@ discard block |
||
1078 | 1039 | * |
1079 | 1040 | * A = A ^ B |
1080 | 1041 | * |
1081 | - * @param mixed $B Matrix/Array |
|
1082 | - * |
|
1083 | - * @return Matrix Sum |
|
1084 | 1042 | */ |
1085 | 1043 | public function power() |
1086 | 1044 | { |
@@ -1135,9 +1093,6 @@ discard block |
||
1135 | 1093 | * |
1136 | 1094 | * A = A & B |
1137 | 1095 | * |
1138 | - * @param mixed $B Matrix/Array |
|
1139 | - * |
|
1140 | - * @return Matrix Sum |
|
1141 | 1096 | */ |
1142 | 1097 | public function concat() |
1143 | 1098 | { |
@@ -1163,7 +1163,7 @@ |
||
1163 | 1163 | $this->checkMatrixDimensions($M); |
1164 | 1164 | for ($i = 0; $i < $this->m; ++$i) { |
1165 | 1165 | for ($j = 0; $j < $this->n; ++$j) { |
1166 | - $this->A[$i][$j] = trim($this->A[$i][$j], '"').trim($M->get($i, $j), '"'); |
|
1166 | + $this->A[$i][$j] = trim($this->A[$i][$j], '"') . trim($M->get($i, $j), '"'); |
|
1167 | 1167 | } |
1168 | 1168 | } |
1169 | 1169 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * If a resource pointer to a stream created by fopen() is passed |
56 | 56 | * it will be used, but you have to close such stream by yourself. |
57 | 57 | * |
58 | - * @param string|resource $filename The name of the file or stream where to save the OLE container |
|
58 | + * @param string|null $filename The name of the file or stream where to save the OLE container |
|
59 | 59 | * |
60 | 60 | * @throws \PhpOffice\PhpSpreadsheet\Writer\WriteException |
61 | 61 | * |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * |
121 | 121 | * @param array $raList Reference to an array of PPS's |
122 | 122 | * |
123 | - * @return float[] The array of numbers |
|
123 | + * @return double[] The array of numbers |
|
124 | 124 | */ |
125 | 125 | public function _calcSize(&$raList) |
126 | 126 | { |
@@ -234,7 +234,7 @@ |
||
234 | 234 | .pack('V', 0)// Extra BDList Count |
235 | 235 | ); |
236 | 236 | } else { |
237 | - fwrite($FILE, pack('V', $iAll + $iBdCnt).pack('V', $iBdExL)); |
|
237 | + fwrite($FILE, pack('V', $iAll + $iBdCnt) . pack('V', $iBdExL)); |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | // BDList |
@@ -387,7 +387,7 @@ |
||
387 | 387 | /** |
388 | 388 | * Get Contiguous |
389 | 389 | * |
390 | - * @return bool |
|
390 | + * @return integer |
|
391 | 391 | */ |
392 | 392 | public function getContiguous() |
393 | 393 | { |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | namespace PhpOffice\PhpSpreadsheet\Shared; |
4 | 4 | |
5 | 5 | if (!defined('PCLZIP_TEMPORARY_DIR')) { |
6 | - define('PCLZIP_TEMPORARY_DIR', File::sysGetTempDir().DIRECTORY_SEPARATOR); |
|
6 | + define('PCLZIP_TEMPORARY_DIR', File::sysGetTempDir() . DIRECTORY_SEPARATOR); |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | use PhpOffice\PhpSpreadsheet\Shared\PCLZip\PclZip; |
@@ -86,16 +86,16 @@ discard block |
||
86 | 86 | { |
87 | 87 | $filenameParts = pathinfo($localname); |
88 | 88 | |
89 | - $handle = fopen($this->tempDir.'/'.$filenameParts['basename'], 'wb'); |
|
89 | + $handle = fopen($this->tempDir . '/' . $filenameParts['basename'], 'wb'); |
|
90 | 90 | fwrite($handle, $contents); |
91 | 91 | fclose($handle); |
92 | 92 | |
93 | - $res = $this->zip->add($this->tempDir.'/'.$filenameParts['basename'], PCLZIP_OPT_REMOVE_PATH, $this->tempDir, PCLZIP_OPT_ADD_PATH, $filenameParts['dirname']); |
|
93 | + $res = $this->zip->add($this->tempDir . '/' . $filenameParts['basename'], PCLZIP_OPT_REMOVE_PATH, $this->tempDir, PCLZIP_OPT_ADD_PATH, $filenameParts['dirname']); |
|
94 | 94 | if ($res == 0) { |
95 | - throw new \PhpOffice\PhpSpreadsheet\Writer\WriteException('Error zipping files : '.$this->zip->errorInfo(true)); |
|
95 | + throw new \PhpOffice\PhpSpreadsheet\Writer\WriteException('Error zipping files : ' . $this->zip->errorInfo(true)); |
|
96 | 96 | } |
97 | 97 | |
98 | - unlink($this->tempDir.'/'.$filenameParts['basename']); |
|
98 | + unlink($this->tempDir . '/' . $filenameParts['basename']); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -172,7 +172,7 @@ |
||
172 | 172 | * @param int $offset byte offset |
173 | 173 | * @param int $whence SEEK_SET, SEEK_CUR or SEEK_END |
174 | 174 | * |
175 | - * @return bool |
|
175 | + * @return boolean|null |
|
176 | 176 | */ |
177 | 177 | public function stream_seek($offset, $whence) // @codingStandardsIgnoreLine |
178 | 178 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | { |
82 | 82 | // Check for mode |
83 | 83 | if ($mode{0} != 'r') { |
84 | - throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Mode '.$mode.' is not supported. Only read mode is supported.'); |
|
84 | + throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Mode ' . $mode . ' is not supported. Only read mode is supported.'); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | $pos = strrpos($path, '#'); |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | * |
616 | 616 | * @param string $index Chart index position |
617 | 617 | * @throws Exception |
618 | - * @return false|Chart |
|
618 | + * @return null|Chart |
|
619 | 619 | */ |
620 | 620 | public function getChartByIndex($index = null) |
621 | 621 | { |
@@ -1130,7 +1130,7 @@ discard block |
||
1130 | 1130 | * Set a cell value |
1131 | 1131 | * |
1132 | 1132 | * @param string $pCoordinate Coordinate of the cell |
1133 | - * @param mixed $pValue Value of the cell |
|
1133 | + * @param integer $pValue Value of the cell |
|
1134 | 1134 | * @param bool $returnCell Return the worksheet (false, default) or the cell (true) |
1135 | 1135 | * @return Worksheet|Cell Depending on the last parameter being specified |
1136 | 1136 | */ |
@@ -1241,8 +1241,8 @@ discard block |
||
1241 | 1241 | /** |
1242 | 1242 | * Get cell at a specific coordinate by using numeric cell coordinates |
1243 | 1243 | * |
1244 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1245 | - * @param string $pRow Numeric row coordinate of the cell |
|
1244 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1245 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1246 | 1246 | * @param bool $createIfNotExists Flag indicating whether a new cell should be created if it doesn't |
1247 | 1247 | * already exist, or a null should be returned instead |
1248 | 1248 | * @return null|Cell Cell that was found/created or null |
@@ -1350,8 +1350,8 @@ discard block |
||
1350 | 1350 | /** |
1351 | 1351 | * Cell at a specific coordinate by using numeric cell coordinates exists? |
1352 | 1352 | * |
1353 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1354 | - * @param string $pRow Numeric row coordinate of the cell |
|
1353 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1354 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1355 | 1355 | * @return bool |
1356 | 1356 | */ |
1357 | 1357 | public function cellExistsByColumnAndRow($pColumn = 0, $pRow = 1) |
@@ -1968,7 +1968,7 @@ discard block |
||
1968 | 1968 | /** |
1969 | 1969 | * Set AutoFilter |
1970 | 1970 | * |
1971 | - * @param AutoFilter|string $pValue |
|
1971 | + * @param string $pValue |
|
1972 | 1972 | * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility |
1973 | 1973 | * @throws Exception |
1974 | 1974 | * @return Worksheet |
@@ -2991,7 +2991,7 @@ discard block |
||
2991 | 2991 | * |
2992 | 2992 | * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore) |
2993 | 2993 | * @throws Exception |
2994 | - * @return objWorksheet |
|
2994 | + * @return Worksheet |
|
2995 | 2995 | */ |
2996 | 2996 | public function setCodeName($pValue = null) |
2997 | 2997 | { |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * |
508 | 508 | * @param mixed $token The token to convert |
509 | 509 | * |
510 | - * @return mixed the converted token on success |
|
510 | + * @return string the converted token on success |
|
511 | 511 | */ |
512 | 512 | private function convert($token) |
513 | 513 | { |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | * |
578 | 578 | * @param string $string A string for conversion to its ptg value |
579 | 579 | * |
580 | - * @return mixed the converted token on success |
|
580 | + * @return string the converted token on success |
|
581 | 581 | */ |
582 | 582 | private function convertString($string) |
583 | 583 | { |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | * |
657 | 657 | * @param string $token An Excel range in the Sheet1!A1:A2 format |
658 | 658 | * |
659 | - * @return mixed The packed ptgArea3d token on success |
|
659 | + * @return string The packed ptgArea3d token on success |
|
660 | 660 | */ |
661 | 661 | private function convertRange3d($token) |
662 | 662 | { |
@@ -708,7 +708,7 @@ discard block |
||
708 | 708 | * |
709 | 709 | * @param string $cell An Excel cell reference |
710 | 710 | * |
711 | - * @return mixed The packed ptgRef3d token on success |
|
711 | + * @return string The packed ptgRef3d token on success |
|
712 | 712 | */ |
713 | 713 | private function convertRef3d($cell) |
714 | 714 | { |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | * |
808 | 808 | * @param string $ext_ref The name of the external reference |
809 | 809 | * |
810 | - * @return mixed The reference index in packed() format on success |
|
810 | + * @return string The reference index in packed() format on success |
|
811 | 811 | */ |
812 | 812 | private function getRefIndex($ext_ref) |
813 | 813 | { |
@@ -898,7 +898,7 @@ discard block |
||
898 | 898 | * |
899 | 899 | * @param string $cell The Excel cell reference to be packed |
900 | 900 | * |
901 | - * @return array Array containing the row and column in packed() format |
|
901 | + * @return string[] Array containing the row and column in packed() format |
|
902 | 902 | */ |
903 | 903 | private function cellToPackedRowcol($cell) |
904 | 904 | { |
@@ -927,7 +927,7 @@ discard block |
||
927 | 927 | * |
928 | 928 | * @param string $range The Excel range to be packed |
929 | 929 | * |
930 | - * @return array Array containing (row1,col1,row2,col2) in packed() format |
|
930 | + * @return string[] Array containing (row1,col1,row2,col2) in packed() format |
|
931 | 931 | */ |
932 | 932 | private function rangeToPackedRange($range) |
933 | 933 | { |
@@ -1043,7 +1043,7 @@ discard block |
||
1043 | 1043 | /** |
1044 | 1044 | * Checks if it's a valid token. |
1045 | 1045 | * |
1046 | - * @param mixed $token The token to check |
|
1046 | + * @param string $token The token to check |
|
1047 | 1047 | * |
1048 | 1048 | * @return mixed The checked token or false on failure |
1049 | 1049 | */ |
@@ -1129,7 +1129,7 @@ discard block |
||
1129 | 1129 | * @param string $formula The formula to parse, without the initial equal |
1130 | 1130 | * sign (=) |
1131 | 1131 | * |
1132 | - * @return mixed true on success |
|
1132 | + * @return boolean true on success |
|
1133 | 1133 | */ |
1134 | 1134 | public function parse($formula) |
1135 | 1135 | { |
@@ -519,19 +519,19 @@ discard block |
||
519 | 519 | } elseif (preg_match('/^\$?([A-Ia-i]?[A-Za-z])\$?(\d+)$/', $token)) { |
520 | 520 | return $this->convertRef2d($token); |
521 | 521 | // match external references like Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1 |
522 | - } elseif (preg_match('/^'.self::REGEX_SHEET_TITLE_UNQUOTED."(\:".self::REGEX_SHEET_TITLE_UNQUOTED.")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) { |
|
522 | + } elseif (preg_match('/^' . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) { |
|
523 | 523 | return $this->convertRef3d($token); |
524 | 524 | // match external references like 'Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1 |
525 | - } elseif (preg_match("/^'".self::REGEX_SHEET_TITLE_QUOTED."(\:".self::REGEX_SHEET_TITLE_QUOTED.")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) { |
|
525 | + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) { |
|
526 | 526 | return $this->convertRef3d($token); |
527 | 527 | // match ranges like A1:B2 or $A$1:$B$2 |
528 | 528 | } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)\:(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/', $token)) { |
529 | 529 | return $this->convertRange2d($token); |
530 | 530 | // match external ranges like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2 |
531 | - } elseif (preg_match('/^'.self::REGEX_SHEET_TITLE_UNQUOTED."(\:".self::REGEX_SHEET_TITLE_UNQUOTED.")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) { |
|
531 | + } elseif (preg_match('/^' . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) { |
|
532 | 532 | return $this->convertRange3d($token); |
533 | 533 | // match external ranges like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2 |
534 | - } elseif (preg_match("/^'".self::REGEX_SHEET_TITLE_QUOTED."(\:".self::REGEX_SHEET_TITLE_QUOTED.")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) { |
|
534 | + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) { |
|
535 | 535 | return $this->convertRange3d($token); |
536 | 536 | // operators (including parentheses) |
537 | 537 | } elseif (isset($this->ptg[$token])) { |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | throw new \PhpOffice\PhpSpreadsheet\Writer\WriteException('String is too long'); |
588 | 588 | } |
589 | 589 | |
590 | - return pack('C', $this->ptg['ptgStr']).\PhpOffice\PhpSpreadsheet\Shared\StringHelper::UTF8toBIFF8UnicodeShort($string); |
|
590 | + return pack('C', $this->ptg['ptgStr']) . \PhpOffice\PhpSpreadsheet\Shared\StringHelper::UTF8toBIFF8UnicodeShort($string); |
|
591 | 591 | } |
592 | 592 | |
593 | 593 | /** |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | throw new \PhpOffice\PhpSpreadsheet\Writer\WriteException("Unknown class $class"); |
648 | 648 | } |
649 | 649 | |
650 | - return $ptgArea.$row1.$row2.$col1.$col2; |
|
650 | + return $ptgArea . $row1 . $row2 . $col1 . $col2; |
|
651 | 651 | } |
652 | 652 | |
653 | 653 | /** |
@@ -674,13 +674,13 @@ discard block |
||
674 | 674 | list($row1, $col1) = $this->cellToPackedRowcol($cell1); |
675 | 675 | list($row2, $col2) = $this->cellToPackedRowcol($cell2); |
676 | 676 | } else { // It's a rows range (like 26:27) |
677 | - list($row1, $col1, $row2, $col2) = $this->rangeToPackedRange($cell1.':'.$cell2); |
|
677 | + list($row1, $col1, $row2, $col2) = $this->rangeToPackedRange($cell1 . ':' . $cell2); |
|
678 | 678 | } |
679 | 679 | |
680 | 680 | // The ptg value depends on the class of the ptg. |
681 | 681 | $ptgArea = pack('C', $this->ptg['ptgArea3d']); |
682 | 682 | |
683 | - return $ptgArea.$ext_ref.$row1.$row2.$col1.$col2; |
|
683 | + return $ptgArea . $ext_ref . $row1 . $row2 . $col1 . $col2; |
|
684 | 684 | } |
685 | 685 | |
686 | 686 | /** |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | // The ptg value depends on the class of the ptg. |
700 | 700 | $ptgRef = pack('C', $this->ptg['ptgRefA']); |
701 | 701 | |
702 | - return $ptgRef.$row.$col; |
|
702 | + return $ptgRef . $row . $col; |
|
703 | 703 | } |
704 | 704 | |
705 | 705 | /** |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | // The ptg value depends on the class of the ptg. |
725 | 725 | $ptgRef = pack('C', $this->ptg['ptgRef3dA']); |
726 | 726 | |
727 | - return $ptgRef.$ext_ref.$row.$col; |
|
727 | + return $ptgRef . $ext_ref . $row . $col; |
|
728 | 728 | } |
729 | 729 | |
730 | 730 | /** |
@@ -1086,22 +1086,22 @@ discard block |
||
1086 | 1086 | // if it's a reference A1 or $A$1 or $A1 or A$1 |
1087 | 1087 | if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/', $token) and !preg_match('/[0-9]/', $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.') and ($this->lookAhead != '!')) { |
1088 | 1088 | return $token; |
1089 | - } elseif (preg_match('/^'.self::REGEX_SHEET_TITLE_UNQUOTED."(\:".self::REGEX_SHEET_TITLE_UNQUOTED.")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) { |
|
1089 | + } elseif (preg_match('/^' . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) { |
|
1090 | 1090 | // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1) |
1091 | 1091 | return $token; |
1092 | - } elseif (preg_match("/^'".self::REGEX_SHEET_TITLE_QUOTED."(\:".self::REGEX_SHEET_TITLE_QUOTED.")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) { |
|
1092 | + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) { |
|
1093 | 1093 | // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1) |
1094 | 1094 | return $token; |
1095 | 1095 | } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $token) && !preg_match('/[0-9]/', $this->lookAhead)) { |
1096 | 1096 | // if it's a range A1:A2 or $A$1:$A$2 |
1097 | 1097 | return $token; |
1098 | - } elseif (preg_match('/^'.self::REGEX_SHEET_TITLE_UNQUOTED."(\:".self::REGEX_SHEET_TITLE_UNQUOTED.")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead)) { |
|
1098 | + } elseif (preg_match('/^' . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead)) { |
|
1099 | 1099 | // If it's an external range like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2 |
1100 | 1100 | return $token; |
1101 | - } elseif (preg_match("/^'".self::REGEX_SHEET_TITLE_QUOTED."(\:".self::REGEX_SHEET_TITLE_QUOTED.")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead)) { |
|
1101 | + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match('/[0-9]/', $this->lookAhead)) { |
|
1102 | 1102 | // If it's an external range like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2 |
1103 | 1103 | return $token; |
1104 | - } elseif (is_numeric($token) and (!is_numeric($token.$this->lookAhead) or ($this->lookAhead == '')) and ($this->lookAhead != '!') and ($this->lookAhead != ':')) { |
|
1104 | + } elseif (is_numeric($token) and (!is_numeric($token . $this->lookAhead) or ($this->lookAhead == '')) and ($this->lookAhead != '!') and ($this->lookAhead != ':')) { |
|
1105 | 1105 | // If it's a number (check that it's not a sheet name or range) |
1106 | 1106 | return $token; |
1107 | 1107 | } elseif (preg_match('/"([^"]|""){0,255}"/', $token) and $this->lookAhead != '"' and (substr_count($token, '"') % 2 == 0)) { |
@@ -1320,13 +1320,13 @@ discard block |
||
1320 | 1320 | $this->advance(); |
1321 | 1321 | |
1322 | 1322 | return $result; |
1323 | - } elseif (preg_match('/^'.self::REGEX_SHEET_TITLE_UNQUOTED."(\:".self::REGEX_SHEET_TITLE_UNQUOTED.")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) { |
|
1323 | + } elseif (preg_match('/^' . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) { |
|
1324 | 1324 | // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1) |
1325 | 1325 | $result = $this->createTree($this->currentToken, '', ''); |
1326 | 1326 | $this->advance(); |
1327 | 1327 | |
1328 | 1328 | return $result; |
1329 | - } elseif (preg_match("/^'".self::REGEX_SHEET_TITLE_QUOTED."(\:".self::REGEX_SHEET_TITLE_QUOTED.")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) { |
|
1329 | + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) { |
|
1330 | 1330 | // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1) |
1331 | 1331 | $result = $this->createTree($this->currentToken, '', ''); |
1332 | 1332 | $this->advance(); |
@@ -1340,14 +1340,14 @@ discard block |
||
1340 | 1340 | $this->advance(); |
1341 | 1341 | |
1342 | 1342 | return $result; |
1343 | - } elseif (preg_match('/^'.self::REGEX_SHEET_TITLE_UNQUOTED."(\:".self::REGEX_SHEET_TITLE_UNQUOTED.")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) { |
|
1343 | + } elseif (preg_match('/^' . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) { |
|
1344 | 1344 | // If it's an external range (Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2) |
1345 | 1345 | // must be an error? |
1346 | 1346 | $result = $this->createTree($this->currentToken, '', ''); |
1347 | 1347 | $this->advance(); |
1348 | 1348 | |
1349 | 1349 | return $result; |
1350 | - } elseif (preg_match("/^'".self::REGEX_SHEET_TITLE_QUOTED."(\:".self::REGEX_SHEET_TITLE_QUOTED.")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) { |
|
1350 | + } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) { |
|
1351 | 1351 | // If it's an external range ('Sheet1'!A1:B2 or 'Sheet1'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1'!$A$1:$B$2) |
1352 | 1352 | // must be an error? |
1353 | 1353 | $result = $this->createTree($this->currentToken, '', ''); |
@@ -1371,7 +1371,7 @@ discard block |
||
1371 | 1371 | |
1372 | 1372 | return $result; |
1373 | 1373 | } |
1374 | - throw new \PhpOffice\PhpSpreadsheet\Writer\WriteException('Syntax error: '.$this->currentToken.', lookahead: '.$this->lookAhead.', current char: '.$this->currentCharacter); |
|
1374 | + throw new \PhpOffice\PhpSpreadsheet\Writer\WriteException('Syntax error: ' . $this->currentToken . ', lookahead: ' . $this->lookAhead . ', current char: ' . $this->currentCharacter); |
|
1375 | 1375 | } |
1376 | 1376 | |
1377 | 1377 | /** |
@@ -1492,7 +1492,7 @@ discard block |
||
1492 | 1492 | $left_tree = ''; |
1493 | 1493 | } |
1494 | 1494 | // add it's left subtree and return. |
1495 | - return $left_tree.$this->convertFunction($tree['value'], $tree['right']); |
|
1495 | + return $left_tree . $this->convertFunction($tree['value'], $tree['right']); |
|
1496 | 1496 | } else { |
1497 | 1497 | $converted_tree = $this->convert($tree['value']); |
1498 | 1498 | } |
@@ -242,6 +242,7 @@ discard block |
||
242 | 242 | * |
243 | 243 | * @param \PhpOffice\PhpSpreadsheet\Style |
244 | 244 | * @param bool Is it a style XF? |
245 | + * @param \PhpOffice\PhpSpreadsheet\Style $style |
|
245 | 246 | * |
246 | 247 | * @return int Index to XF record |
247 | 248 | */ |
@@ -796,7 +797,7 @@ discard block |
||
796 | 797 | * |
797 | 798 | * @param string $name The name in UTF-8 |
798 | 799 | * @param string $formulaData The binary formula data |
799 | - * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global |
|
800 | + * @param integer $sheetIndex 1-based sheet index the defined name applies to. 0 = global |
|
800 | 801 | * @param bool $isBuiltIn Built-in name? |
801 | 802 | * |
802 | 803 | * @return string Complete binary record data |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | // Create absolute coordinate |
658 | 658 | $range = \PhpOffice\PhpSpreadsheet\Cell::splitRange($namedRange->getRange()); |
659 | 659 | for ($i = 0; $i < count($range); ++$i) { |
660 | - $range[$i][0] = '\''.str_replace("'", "''", $namedRange->getWorksheet()->getTitle()).'\'!'.\PhpOffice\PhpSpreadsheet\Cell::absoluteCoordinate($range[$i][0]); |
|
660 | + $range[$i][0] = '\'' . str_replace("'", "''", $namedRange->getWorksheet()->getTitle()) . '\'!' . \PhpOffice\PhpSpreadsheet\Cell::absoluteCoordinate($range[$i][0]); |
|
661 | 661 | if (isset($range[$i][1])) { |
662 | 662 | $range[$i][1] = \PhpOffice\PhpSpreadsheet\Cell::absoluteCoordinate($range[$i][1]); |
663 | 663 | } |
@@ -671,7 +671,7 @@ discard block |
||
671 | 671 | |
672 | 672 | // make sure tRef3d is of type tRef3dR (0x3A) |
673 | 673 | if (isset($formulaData{0}) and ($formulaData{0} == "\x7A" or $formulaData{0} == "\x5A")) { |
674 | - $formulaData = "\x3A".substr($formulaData, 1); |
|
674 | + $formulaData = "\x3A" . substr($formulaData, 1); |
|
675 | 675 | } |
676 | 676 | |
677 | 677 | if ($namedRange->getLocalOnly()) { |
@@ -819,12 +819,12 @@ discard block |
||
819 | 819 | |
820 | 820 | // combine the parts |
821 | 821 | $data = pack('vCCvvvCCCC', $options, 0, $nlen, $sz, 0, $sheetIndex, 0, 0, 0, 0) |
822 | - .$name.$formulaData; |
|
822 | + .$name . $formulaData; |
|
823 | 823 | $length = strlen($data); |
824 | 824 | |
825 | 825 | $header = pack('vv', $record, $length); |
826 | 826 | |
827 | - return $header.$data; |
|
827 | + return $header . $data; |
|
828 | 828 | } |
829 | 829 | |
830 | 830 | /** |
@@ -859,12 +859,12 @@ discard block |
||
859 | 859 | |
860 | 860 | // combine the parts |
861 | 861 | $data = pack('vCCvvvCCCCC', $options, 0, 1, $sz, 0, $sheetIndex, 0, 0, 0, 0, 0) |
862 | - .$name.$extra; |
|
862 | + .$name . $extra; |
|
863 | 863 | $length = strlen($data); |
864 | 864 | |
865 | 865 | $header = pack('vv', $record, $length); |
866 | 866 | |
867 | - return $header.$data; |
|
867 | + return $header . $data; |
|
868 | 868 | } |
869 | 869 | |
870 | 870 | /** |
@@ -879,7 +879,7 @@ discard block |
||
879 | 879 | $header = pack('vv', $record, $length); |
880 | 880 | $data = pack('v', $cv); |
881 | 881 | |
882 | - $this->append($header.$data); |
|
882 | + $this->append($header . $data); |
|
883 | 883 | } |
884 | 884 | |
885 | 885 | /** |
@@ -908,7 +908,7 @@ discard block |
||
908 | 908 | |
909 | 909 | $header = pack('vv', $record, $length); |
910 | 910 | $data = pack('vvvvvvvvv', $xWn, $yWn, $dxWn, $dyWn, $grbit, $itabCur, $itabFirst, $ctabsel, $wTabRatio); |
911 | - $this->append($header.$data); |
|
911 | + $this->append($header . $data); |
|
912 | 912 | } |
913 | 913 | |
914 | 914 | /** |
@@ -948,7 +948,7 @@ discard block |
||
948 | 948 | |
949 | 949 | $length = strlen($data); |
950 | 950 | $header = pack('vv', $record, $length); |
951 | - $this->append($header.$data); |
|
951 | + $this->append($header . $data); |
|
952 | 952 | } |
953 | 953 | |
954 | 954 | /** |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | $header = pack('vv', $record, $length); |
963 | 963 | $data = pack('vv', $this->spreadsheet->getSheetCount(), 0x0401); |
964 | 964 | |
965 | - return $this->writeData($header.$data); |
|
965 | + return $this->writeData($header . $data); |
|
966 | 966 | } |
967 | 967 | |
968 | 968 | /** |
@@ -982,7 +982,7 @@ discard block |
||
982 | 982 | $data .= $this->parser->references[$i]; |
983 | 983 | } |
984 | 984 | |
985 | - return $this->writeData($header.$data); |
|
985 | + return $this->writeData($header . $data); |
|
986 | 986 | } |
987 | 987 | |
988 | 988 | /** |
@@ -999,7 +999,7 @@ discard block |
||
999 | 999 | |
1000 | 1000 | $header = pack('vv', $record, $length); |
1001 | 1001 | $data = pack('vCC', $ixfe, $BuiltIn, $iLevel); |
1002 | - $this->append($header.$data); |
|
1002 | + $this->append($header . $data); |
|
1003 | 1003 | } |
1004 | 1004 | |
1005 | 1005 | /** |
@@ -1016,8 +1016,8 @@ discard block |
||
1016 | 1016 | $length = 2 + strlen($numberFormatString); // Number of bytes to follow |
1017 | 1017 | |
1018 | 1018 | $header = pack('vv', $record, $length); |
1019 | - $data = pack('v', $ifmt).$numberFormatString; |
|
1020 | - $this->append($header.$data); |
|
1019 | + $data = pack('v', $ifmt) . $numberFormatString; |
|
1020 | + $this->append($header . $data); |
|
1021 | 1021 | } |
1022 | 1022 | |
1023 | 1023 | /** |
@@ -1034,7 +1034,7 @@ discard block |
||
1034 | 1034 | |
1035 | 1035 | $header = pack('vv', $record, $length); |
1036 | 1036 | $data = pack('v', $f1904); |
1037 | - $this->append($header.$data); |
|
1037 | + $this->append($header . $data); |
|
1038 | 1038 | } |
1039 | 1039 | |
1040 | 1040 | /** |
@@ -1056,7 +1056,7 @@ discard block |
||
1056 | 1056 | |
1057 | 1057 | $header = pack('vv', $record, $length); |
1058 | 1058 | $data = pack('v', $cxals); |
1059 | - $this->append($header.$data); |
|
1059 | + $this->append($header . $data); |
|
1060 | 1060 | } |
1061 | 1061 | |
1062 | 1062 | /** |
@@ -1078,7 +1078,7 @@ discard block |
||
1078 | 1078 | |
1079 | 1079 | $header = pack('vv', $record, $length); |
1080 | 1080 | $data = pack('CC', $cch, $rgch); |
1081 | - $this->append($header.$data.$sheetname); |
|
1081 | + $this->append($header . $data . $sheetname); |
|
1082 | 1082 | } |
1083 | 1083 | |
1084 | 1084 | /** |
@@ -1140,7 +1140,7 @@ discard block |
||
1140 | 1140 | $data .= pack('v', $rowmax); |
1141 | 1141 | $data .= pack('C', $colmin); |
1142 | 1142 | $data .= pack('C', $colmax); |
1143 | - $this->append($header.$data); |
|
1143 | + $this->append($header . $data); |
|
1144 | 1144 | } |
1145 | 1145 | |
1146 | 1146 | /** |
@@ -1223,7 +1223,7 @@ discard block |
||
1223 | 1223 | $data .= pack('C', 0xff); |
1224 | 1224 | // End of data |
1225 | 1225 | $data .= pack('C', 0x10); |
1226 | - $this->append($header.$data); |
|
1226 | + $this->append($header . $data); |
|
1227 | 1227 | } |
1228 | 1228 | |
1229 | 1229 | /** |
@@ -1240,7 +1240,7 @@ discard block |
||
1240 | 1240 | /* using the same country code always for simplicity */ |
1241 | 1241 | $data = pack('vv', $this->countryCode, $this->countryCode); |
1242 | 1242 | |
1243 | - return $this->writeData($header.$data); |
|
1243 | + return $this->writeData($header . $data); |
|
1244 | 1244 | } |
1245 | 1245 | |
1246 | 1246 | /** |
@@ -1258,7 +1258,7 @@ discard block |
||
1258 | 1258 | // by inspection of real Excel files, MS Office Excel 2007 writes this |
1259 | 1259 | $data = pack('VV', 0x000001C1, 0x00001E667); |
1260 | 1260 | |
1261 | - return $this->writeData($header.$data); |
|
1261 | + return $this->writeData($header . $data); |
|
1262 | 1262 | } |
1263 | 1263 | |
1264 | 1264 | /** |
@@ -1281,7 +1281,7 @@ discard block |
||
1281 | 1281 | } |
1282 | 1282 | |
1283 | 1283 | $header = pack('vvv', $record, $length, $ccv); |
1284 | - $this->append($header.$data); |
|
1284 | + $this->append($header . $data); |
|
1285 | 1285 | } |
1286 | 1286 | |
1287 | 1287 | /** |
@@ -1401,7 +1401,7 @@ discard block |
||
1401 | 1401 | $record = ($i == 0) ? 0x00FC : 0x003C; |
1402 | 1402 | |
1403 | 1403 | $header = pack('vv', $record, strlen($recordData)); |
1404 | - $data = $header.$recordData; |
|
1404 | + $data = $header . $recordData; |
|
1405 | 1405 | |
1406 | 1406 | $chunk .= $this->writeData($data); |
1407 | 1407 | } |
@@ -1423,7 +1423,7 @@ discard block |
||
1423 | 1423 | $length = strlen($data); |
1424 | 1424 | $header = pack('vv', $record, $length); |
1425 | 1425 | |
1426 | - return $this->writeData($header.$data); |
|
1426 | + return $this->writeData($header . $data); |
|
1427 | 1427 | } else { |
1428 | 1428 | return ''; |
1429 | 1429 | } |