@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $slope = $this->getSlope($dp); |
| 49 | 49 | $intersect = $this->getIntersect($dp); |
| 50 | 50 | |
| 51 | - return 'Y = ' . $intersect . ' + ' . $slope . ' * X'; |
|
| 51 | + return 'Y = '.$intersect.' + '.$slope.' * X'; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $slope = $this->getSlope($dp); |
| 49 | 49 | $intersect = $this->getIntersect($dp); |
| 50 | 50 | |
| 51 | - return 'Y = ' . $intersect . ' * X^' . $slope; |
|
| 51 | + return 'Y = '.$intersect.' * X^'.$slope; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $slope = $this->getSlope($dp); |
| 49 | 49 | $intersect = $this->getIntersect($dp); |
| 50 | 50 | |
| 51 | - return 'Y = ' . $intersect . ' * ' . $slope . '^X'; |
|
| 51 | + return 'Y = '.$intersect.' * '.$slope.'^X'; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | trigger_error('Trend(): Number of elements in coordinate arrays do not match.', E_USER_ERROR); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $key = md5($trendType . $const . serialize($yValues) . serialize($xValues)); |
|
| 66 | + $key = md5($trendType.$const.serialize($yValues).serialize($xValues)); |
|
| 67 | 67 | // Determine which Trend method has been requested |
| 68 | 68 | switch ($trendType) { |
| 69 | 69 | // Instantiate and return the class for the requested Trend method |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | case self::TREND_EXPONENTIAL: |
| 73 | 73 | case self::TREND_POWER: |
| 74 | 74 | if (!isset(self::$trendCache[$key])) { |
| 75 | - $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\' . $trendType . 'BestFit'; |
|
| 75 | + $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\'.$trendType.'BestFit'; |
|
| 76 | 76 | self::$trendCache[$key] = new $className($yValues, $xValues, $const); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | // If the request is to determine the best fit regression, then we test each Trend line in turn |
| 94 | 94 | // Start by generating an instance of each available Trend method |
| 95 | 95 | foreach (self::$trendTypes as $trendMethod) { |
| 96 | - $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\' . $trendType . 'BestFit'; |
|
| 96 | + $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\'.$trendType.'BestFit'; |
|
| 97 | 97 | $bestFit[$trendMethod] = new $className($yValues, $xValues, $const); |
| 98 | 98 | $bestFitValue[$trendMethod] = $bestFit[$trendMethod]->getGoodnessOfFit(); |
| 99 | 99 | } |
@@ -258,7 +258,7 @@ |
||
| 258 | 258 | . pack('V', 0)// Extra BDList Count |
| 259 | 259 | ); |
| 260 | 260 | } else { |
| 261 | - fwrite($FILE, pack('V', $iAll + $iBdCnt) . pack('V', $iBdExL)); |
|
| 261 | + fwrite($FILE, pack('V', $iAll + $iBdCnt).pack('V', $iBdExL)); |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | // BDList |
@@ -266,8 +266,8 @@ |
||
| 266 | 266 | $x2 = ($width + 1) / self::sizeCol($sheet, Coordinate::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object |
| 267 | 267 | $y2 = ($height + 1) / self::sizeRow($sheet, $row_end + 1) * 256; // Distance to bottom of object |
| 268 | 268 | |
| 269 | - $startCoordinates = Coordinate::stringFromColumnIndex($col_start) . ($row_start + 1); |
|
| 270 | - $endCoordinates = Coordinate::stringFromColumnIndex($col_end) . ($row_end + 1); |
|
| 269 | + $startCoordinates = Coordinate::stringFromColumnIndex($col_start).($row_start + 1); |
|
| 270 | + $endCoordinates = Coordinate::stringFromColumnIndex($col_end).($row_end + 1); |
|
| 271 | 271 | |
| 272 | 272 | return [ |
| 273 | 273 | 'startCoordinates' => $startCoordinates, |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | // Check OLE identifier |
| 109 | 109 | $identifierOle = pack('CCCCCCCC', 0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1); |
| 110 | 110 | if ($this->data != $identifierOle) { |
| 111 | - throw new ReaderException('The filename ' . $pFilename . ' is not recognised as an OLE file'); |
|
| 111 | + throw new ReaderException('The filename '.$pFilename.' is not recognised as an OLE file'); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | // Get the file data |
@@ -303,12 +303,12 @@ discard block |
||
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | // Summary information |
| 306 | - if ($name == chr(5) . 'SummaryInformation') { |
|
| 306 | + if ($name == chr(5).'SummaryInformation') { |
|
| 307 | 307 | $this->summaryInformation = count($this->props) - 1; |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | // Additional Document Summary information |
| 311 | - if ($name == chr(5) . 'DocumentSummaryInformation') { |
|
| 311 | + if ($name == chr(5).'DocumentSummaryInformation') { |
|
| 312 | 312 | $this->documentSummaryInformation = count($this->props) - 1; |
| 313 | 313 | } |
| 314 | 314 | |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | { |
| 329 | 329 | if ($pos < 0) { |
| 330 | 330 | // Invalid position |
| 331 | - throw new ReaderException('Parameter pos=' . $pos . ' is invalid.'); |
|
| 331 | + throw new ReaderException('Parameter pos='.$pos.' is invalid.'); |
|
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | $len = strlen($data); |
@@ -506,12 +506,12 @@ |
||
| 506 | 506 | |
| 507 | 507 | break; |
| 508 | 508 | default: |
| 509 | - throw new PhpSpreadsheetException('Unknown font name "' . $name . '". Cannot map to TrueType font file'); |
|
| 509 | + throw new PhpSpreadsheetException('Unknown font name "'.$name.'". Cannot map to TrueType font file'); |
|
| 510 | 510 | |
| 511 | 511 | break; |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | - $fontFile = self::$trueTypeFontPath . $fontFile; |
|
| 514 | + $fontFile = self::$trueTypeFontPath.$fontFile; |
|
| 515 | 515 | |
| 516 | 516 | // Check if file actually exists |
| 517 | 517 | if (!file_exists($fontFile)) { |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | $range = Coordinate::splitRange($namedRange->getRange()); |
| 542 | 542 | $iMax = count($range); |
| 543 | 543 | for ($i = 0; $i < $iMax; ++$i) { |
| 544 | - $range[$i][0] = '\'' . str_replace("'", "''", $namedRange->getWorksheet()->getTitle()) . '\'!' . Coordinate::absoluteCoordinate($range[$i][0]); |
|
| 544 | + $range[$i][0] = '\''.str_replace("'", "''", $namedRange->getWorksheet()->getTitle()).'\'!'.Coordinate::absoluteCoordinate($range[$i][0]); |
|
| 545 | 545 | if (isset($range[$i][1])) { |
| 546 | 546 | $range[$i][1] = Coordinate::absoluteCoordinate($range[$i][1]); |
| 547 | 547 | } |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | |
| 556 | 556 | // make sure tRef3d is of type tRef3dR (0x3A) |
| 557 | 557 | if (isset($formulaData[0]) and ($formulaData[0] == "\x7A" or $formulaData[0] == "\x5A")) { |
| 558 | - $formulaData = "\x3A" . substr($formulaData, 1); |
|
| 558 | + $formulaData = "\x3A".substr($formulaData, 1); |
|
| 559 | 559 | } |
| 560 | 560 | |
| 561 | 561 | if ($namedRange->getLocalOnly()) { |
@@ -703,12 +703,12 @@ discard block |
||
| 703 | 703 | |
| 704 | 704 | // combine the parts |
| 705 | 705 | $data = pack('vCCvvvCCCC', $options, 0, $nlen, $sz, 0, $sheetIndex, 0, 0, 0, 0) |
| 706 | - . $name . $formulaData; |
|
| 706 | + . $name.$formulaData; |
|
| 707 | 707 | $length = strlen($data); |
| 708 | 708 | |
| 709 | 709 | $header = pack('vv', $record, $length); |
| 710 | 710 | |
| 711 | - return $header . $data; |
|
| 711 | + return $header.$data; |
|
| 712 | 712 | } |
| 713 | 713 | |
| 714 | 714 | /** |
@@ -743,12 +743,12 @@ discard block |
||
| 743 | 743 | |
| 744 | 744 | // combine the parts |
| 745 | 745 | $data = pack('vCCvvvCCCCC', $options, 0, 1, $sz, 0, $sheetIndex, 0, 0, 0, 0, 0) |
| 746 | - . $name . $extra; |
|
| 746 | + . $name.$extra; |
|
| 747 | 747 | $length = strlen($data); |
| 748 | 748 | |
| 749 | 749 | $header = pack('vv', $record, $length); |
| 750 | 750 | |
| 751 | - return $header . $data; |
|
| 751 | + return $header.$data; |
|
| 752 | 752 | } |
| 753 | 753 | |
| 754 | 754 | /** |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | $header = pack('vv', $record, $length); |
| 764 | 764 | $data = pack('v', $cv); |
| 765 | 765 | |
| 766 | - $this->append($header . $data); |
|
| 766 | + $this->append($header.$data); |
|
| 767 | 767 | } |
| 768 | 768 | |
| 769 | 769 | /** |
@@ -792,7 +792,7 @@ discard block |
||
| 792 | 792 | |
| 793 | 793 | $header = pack('vv', $record, $length); |
| 794 | 794 | $data = pack('vvvvvvvvv', $xWn, $yWn, $dxWn, $dyWn, $grbit, $itabCur, $itabFirst, $ctabsel, $wTabRatio); |
| 795 | - $this->append($header . $data); |
|
| 795 | + $this->append($header.$data); |
|
| 796 | 796 | } |
| 797 | 797 | |
| 798 | 798 | /** |
@@ -836,7 +836,7 @@ discard block |
||
| 836 | 836 | |
| 837 | 837 | $length = strlen($data); |
| 838 | 838 | $header = pack('vv', $record, $length); |
| 839 | - $this->append($header . $data); |
|
| 839 | + $this->append($header.$data); |
|
| 840 | 840 | } |
| 841 | 841 | |
| 842 | 842 | /** |
@@ -850,7 +850,7 @@ discard block |
||
| 850 | 850 | $header = pack('vv', $record, $length); |
| 851 | 851 | $data = pack('vv', $this->spreadsheet->getSheetCount(), 0x0401); |
| 852 | 852 | |
| 853 | - return $this->writeData($header . $data); |
|
| 853 | + return $this->writeData($header.$data); |
|
| 854 | 854 | } |
| 855 | 855 | |
| 856 | 856 | /** |
@@ -870,7 +870,7 @@ discard block |
||
| 870 | 870 | $data .= $this->parser->references[$i]; |
| 871 | 871 | } |
| 872 | 872 | |
| 873 | - return $this->writeData($header . $data); |
|
| 873 | + return $this->writeData($header.$data); |
|
| 874 | 874 | } |
| 875 | 875 | |
| 876 | 876 | /** |
@@ -887,7 +887,7 @@ discard block |
||
| 887 | 887 | |
| 888 | 888 | $header = pack('vv', $record, $length); |
| 889 | 889 | $data = pack('vCC', $ixfe, $BuiltIn, $iLevel); |
| 890 | - $this->append($header . $data); |
|
| 890 | + $this->append($header.$data); |
|
| 891 | 891 | } |
| 892 | 892 | |
| 893 | 893 | /** |
@@ -904,8 +904,8 @@ discard block |
||
| 904 | 904 | $length = 2 + strlen($numberFormatString); // Number of bytes to follow |
| 905 | 905 | |
| 906 | 906 | $header = pack('vv', $record, $length); |
| 907 | - $data = pack('v', $ifmt) . $numberFormatString; |
|
| 908 | - $this->append($header . $data); |
|
| 907 | + $data = pack('v', $ifmt).$numberFormatString; |
|
| 908 | + $this->append($header.$data); |
|
| 909 | 909 | } |
| 910 | 910 | |
| 911 | 911 | /** |
@@ -922,7 +922,7 @@ discard block |
||
| 922 | 922 | |
| 923 | 923 | $header = pack('vv', $record, $length); |
| 924 | 924 | $data = pack('v', $f1904); |
| 925 | - $this->append($header . $data); |
|
| 925 | + $this->append($header.$data); |
|
| 926 | 926 | } |
| 927 | 927 | |
| 928 | 928 | /** |
@@ -939,7 +939,7 @@ discard block |
||
| 939 | 939 | // using the same country code always for simplicity |
| 940 | 940 | $data = pack('vv', $this->countryCode, $this->countryCode); |
| 941 | 941 | |
| 942 | - return $this->writeData($header . $data); |
|
| 942 | + return $this->writeData($header.$data); |
|
| 943 | 943 | } |
| 944 | 944 | |
| 945 | 945 | /** |
@@ -957,7 +957,7 @@ discard block |
||
| 957 | 957 | // by inspection of real Excel files, MS Office Excel 2007 writes this |
| 958 | 958 | $data = pack('VV', 0x000001C1, 0x00001E667); |
| 959 | 959 | |
| 960 | - return $this->writeData($header . $data); |
|
| 960 | + return $this->writeData($header.$data); |
|
| 961 | 961 | } |
| 962 | 962 | |
| 963 | 963 | /** |
@@ -980,7 +980,7 @@ discard block |
||
| 980 | 980 | } |
| 981 | 981 | |
| 982 | 982 | $header = pack('vvv', $record, $length, $ccv); |
| 983 | - $this->append($header . $data); |
|
| 983 | + $this->append($header.$data); |
|
| 984 | 984 | } |
| 985 | 985 | |
| 986 | 986 | /** |
@@ -1100,7 +1100,7 @@ discard block |
||
| 1100 | 1100 | $record = ($i == 0) ? 0x00FC : 0x003C; |
| 1101 | 1101 | |
| 1102 | 1102 | $header = pack('vv', $record, strlen($recordData)); |
| 1103 | - $data = $header . $recordData; |
|
| 1103 | + $data = $header.$recordData; |
|
| 1104 | 1104 | |
| 1105 | 1105 | $chunk .= $this->writeData($data); |
| 1106 | 1106 | } |
@@ -1122,7 +1122,7 @@ discard block |
||
| 1122 | 1122 | $length = strlen($data); |
| 1123 | 1123 | $header = pack('vv', $record, $length); |
| 1124 | 1124 | |
| 1125 | - return $this->writeData($header . $data); |
|
| 1125 | + return $this->writeData($header.$data); |
|
| 1126 | 1126 | } |
| 1127 | 1127 | |
| 1128 | 1128 | return ''; |