@@ -975,7 +975,7 @@ discard block |
||
975 | 975 | $t = self::romanCut($aValue, 10); |
976 | 976 | $aValue %= 10; |
977 | 977 | |
978 | - return $roman.$mill[$m].$cent[$c].$tens[$t].$ones[$aValue]; |
|
978 | + return $roman . $mill[$m] . $cent[$c] . $tens[$t] . $ones[$aValue]; |
|
979 | 979 | } |
980 | 980 | |
981 | 981 | /** |
@@ -1234,7 +1234,7 @@ discard block |
||
1234 | 1234 | $arg = \PhpOffice\PhpSpreadsheet\Calculation::wrapResult(strtoupper($arg)); |
1235 | 1235 | } |
1236 | 1236 | |
1237 | - $testCondition = '='.$arg.$condition; |
|
1237 | + $testCondition = '=' . $arg . $condition; |
|
1238 | 1238 | if (\PhpOffice\PhpSpreadsheet\Calculation::getInstance()->_calculateFormulaValue($testCondition)) { |
1239 | 1239 | // Is it a value within our criteria |
1240 | 1240 | $returnValue += $sumArgs[$key]; |
@@ -1282,7 +1282,7 @@ discard block |
||
1282 | 1282 | if (!is_numeric($arg)) { |
1283 | 1283 | $arg = \PhpOffice\PhpSpreadsheet\Calculation::wrapResult(strtoupper($arg)); |
1284 | 1284 | } |
1285 | - $testCondition = '='.$arg.$condition; |
|
1285 | + $testCondition = '=' . $arg . $condition; |
|
1286 | 1286 | if (\PhpOffice\PhpSpreadsheet\Calculation::getInstance()->_calculateFormulaValue($testCondition)) { |
1287 | 1287 | // Is it a value within our criteria |
1288 | 1288 | $returnValue += $sumArgs[$key]; |
@@ -330,10 +330,10 @@ |
||
330 | 330 | } |
331 | 331 | |
332 | 332 | return md5( |
333 | - $this->getFillType(). |
|
334 | - $this->getRotation(). |
|
335 | - $this->getStartColor()->getHashCode(). |
|
336 | - $this->getEndColor()->getHashCode(). |
|
333 | + $this->getFillType() . |
|
334 | + $this->getRotation() . |
|
335 | + $this->getStartColor()->getHashCode() . |
|
336 | + $this->getEndColor()->getHashCode() . |
|
337 | 337 | __CLASS__ |
338 | 338 | ); |
339 | 339 | } |
@@ -390,8 +390,8 @@ discard block |
||
390 | 390 | } |
391 | 391 | |
392 | 392 | return md5( |
393 | - $this->formatCode. |
|
394 | - $this->builtInFormatCode. |
|
393 | + $this->formatCode . |
|
394 | + $this->builtInFormatCode . |
|
395 | 395 | __CLASS__ |
396 | 396 | ); |
397 | 397 | } |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | |
466 | 466 | private static function escapeQuotesCallback($matches) |
467 | 467 | { |
468 | - return '\\'.implode('\\', str_split($matches[1])); |
|
468 | + return '\\' . implode('\\', str_split($matches[1])); |
|
469 | 469 | } |
470 | 470 | |
471 | 471 | private static function formatAsDate(&$value, &$format) |
@@ -506,16 +506,16 @@ discard block |
||
506 | 506 | private static function formatAsPercentage(&$value, &$format) |
507 | 507 | { |
508 | 508 | if ($format === self::FORMAT_PERCENTAGE) { |
509 | - $value = round((100 * $value), 0).'%'; |
|
509 | + $value = round((100 * $value), 0) . '%'; |
|
510 | 510 | } else { |
511 | 511 | if (preg_match('/\.[#0]+/i', $format, $m)) { |
512 | - $s = substr($m[0], 0, 1).(strlen($m[0]) - 1); |
|
512 | + $s = substr($m[0], 0, 1) . (strlen($m[0]) - 1); |
|
513 | 513 | $format = str_replace($m[0], $s, $format); |
514 | 514 | } |
515 | 515 | if (preg_match('/^[#0]+/', $format, $m)) { |
516 | 516 | $format = str_replace($m[0], strlen($m[0]), $format); |
517 | 517 | } |
518 | - $format = '%'.str_replace('%', 'f%%', $format); |
|
518 | + $format = '%' . str_replace('%', 'f%%', $format); |
|
519 | 519 | |
520 | 520 | $value = sprintf($format, 100 * $value); |
521 | 521 | } |
@@ -551,12 +551,12 @@ discard block |
||
551 | 551 | $sign = ($number < 0.0); |
552 | 552 | $number = abs($number); |
553 | 553 | if (strpos($mask, '.') !== false) { |
554 | - $numbers = explode('.', $number.'.0'); |
|
555 | - $masks = explode('.', $mask.'.0'); |
|
554 | + $numbers = explode('.', $number . '.0'); |
|
555 | + $masks = explode('.', $mask . '.0'); |
|
556 | 556 | $result1 = self::complexNumberFormatMask($numbers[0], $masks[0], 1); |
557 | 557 | $result2 = strrev(self::complexNumberFormatMask(strrev($numbers[1]), strrev($masks[1]), 1)); |
558 | 558 | |
559 | - return (($sign) ? '-' : '').$result1.'.'.$result2; |
|
559 | + return (($sign) ? '-' : '') . $result1 . '.' . $result2; |
|
560 | 560 | } |
561 | 561 | |
562 | 562 | $r = preg_match_all('/0+/', $mask, $result, PREG_OFFSET_CAPTURE); |
@@ -564,12 +564,12 @@ discard block |
||
564 | 564 | $result = array_reverse($result[0]); |
565 | 565 | |
566 | 566 | foreach ($result as $block) { |
567 | - $divisor = 1 .$block[0]; |
|
567 | + $divisor = 1 . $block[0]; |
|
568 | 568 | $size = strlen($block[0]); |
569 | 569 | $offset = $block[1]; |
570 | 570 | |
571 | 571 | $blockValue = sprintf( |
572 | - '%0'.$size.'d', |
|
572 | + '%0' . $size . 'd', |
|
573 | 573 | fmod($number, $divisor) |
574 | 574 | ); |
575 | 575 | $number = floor($number / $divisor); |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | $result = $number; |
584 | 584 | } |
585 | 585 | |
586 | - return (($sign) ? '-' : '').$result; |
|
586 | + return (($sign) ? '-' : '') . $result; |
|
587 | 587 | } |
588 | 588 | |
589 | 589 | /** |
@@ -669,7 +669,7 @@ discard block |
||
669 | 669 | self::formatAsPercentage($value, $format); |
670 | 670 | } else { |
671 | 671 | if ($format === self::FORMAT_CURRENCY_EUR_SIMPLE) { |
672 | - $value = 'EUR '.sprintf('%1.2f', $value); |
|
672 | + $value = 'EUR ' . sprintf('%1.2f', $value); |
|
673 | 673 | } else { |
674 | 674 | // Some non-number strings are quoted, so we'll get rid of the quotes, likewise any positional * symbols |
675 | 675 | $format = str_replace(['"', '*'], '', $format); |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | } elseif (preg_match('/0([^\d\.]+)0/', $format)) { |
735 | 735 | $value = self::complexNumberFormatMask($value, $format); |
736 | 736 | } else { |
737 | - $sprintf_pattern = "%0$minWidth.".strlen($right).'f'; |
|
737 | + $sprintf_pattern = "%0$minWidth." . strlen($right) . 'f'; |
|
738 | 738 | $value = sprintf($sprintf_pattern, $value); |
739 | 739 | $value = preg_replace($number_regex, $value, $format); |
740 | 740 | } |
@@ -277,10 +277,10 @@ |
||
277 | 277 | public function getHashCode() |
278 | 278 | { |
279 | 279 | return md5( |
280 | - $this->conditionType. |
|
281 | - $this->operatorType. |
|
282 | - implode(';', $this->condition). |
|
283 | - $this->style->getHashCode(). |
|
280 | + $this->conditionType . |
|
281 | + $this->operatorType . |
|
282 | + implode(';', $this->condition) . |
|
283 | + $this->style->getHashCode() . |
|
284 | 284 | __CLASS__ |
285 | 285 | ); |
286 | 286 | } |
@@ -208,8 +208,8 @@ |
||
208 | 208 | } |
209 | 209 | |
210 | 210 | return md5( |
211 | - $this->locked. |
|
212 | - $this->hidden. |
|
211 | + $this->locked . |
|
212 | + $this->hidden . |
|
213 | 213 | __CLASS__ |
214 | 214 | ); |
215 | 215 | } |
@@ -237,10 +237,10 @@ discard block |
||
237 | 237 | $pValue = '000000'; |
238 | 238 | } |
239 | 239 | if ($this->isSupervisor) { |
240 | - $styleArray = $this->getStyleArray(['argb' => 'FF'.$pValue]); |
|
240 | + $styleArray = $this->getStyleArray(['argb' => 'FF' . $pValue]); |
|
241 | 241 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
242 | 242 | } else { |
243 | - $this->argb = 'FF'.$pValue; |
|
243 | + $this->argb = 'FF' . $pValue; |
|
244 | 244 | } |
245 | 245 | |
246 | 246 | return $this; |
@@ -352,12 +352,12 @@ discard block |
||
352 | 352 | } |
353 | 353 | |
354 | 354 | $rgb = strtoupper( |
355 | - str_pad(dechex($red), 2, '0', 0). |
|
356 | - str_pad(dechex($green), 2, '0', 0). |
|
355 | + str_pad(dechex($red), 2, '0', 0) . |
|
356 | + str_pad(dechex($green), 2, '0', 0) . |
|
357 | 357 | str_pad(dechex($blue), 2, '0', 0) |
358 | 358 | ); |
359 | 359 | |
360 | - return (($rgba) ? 'FF' : '').$rgb; |
|
360 | + return (($rgba) ? 'FF' : '') . $rgb; |
|
361 | 361 | } |
362 | 362 | |
363 | 363 | /** |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | } |
460 | 460 | |
461 | 461 | return md5( |
462 | - $this->argb. |
|
462 | + $this->argb . |
|
463 | 463 | __CLASS__ |
464 | 464 | ); |
465 | 465 | } |
@@ -436,12 +436,12 @@ |
||
436 | 436 | } |
437 | 437 | |
438 | 438 | return md5( |
439 | - $this->getLeft()->getHashCode(). |
|
440 | - $this->getRight()->getHashCode(). |
|
441 | - $this->getTop()->getHashCode(). |
|
442 | - $this->getBottom()->getHashCode(). |
|
443 | - $this->getDiagonal()->getHashCode(). |
|
444 | - $this->getDiagonalDirection(). |
|
439 | + $this->getLeft()->getHashCode() . |
|
440 | + $this->getRight()->getHashCode() . |
|
441 | + $this->getTop()->getHashCode() . |
|
442 | + $this->getBottom()->getHashCode() . |
|
443 | + $this->getDiagonal()->getHashCode() . |
|
444 | + $this->getDiagonalDirection() . |
|
445 | 445 | __CLASS__ |
446 | 446 | ); |
447 | 447 | } |
@@ -289,8 +289,8 @@ |
||
289 | 289 | } |
290 | 290 | |
291 | 291 | return md5( |
292 | - $this->borderStyle. |
|
293 | - $this->color->getHashCode(). |
|
292 | + $this->borderStyle . |
|
293 | + $this->color->getHashCode() . |
|
294 | 294 | __CLASS__ |
295 | 295 | ); |
296 | 296 | } |
@@ -561,15 +561,15 @@ |
||
561 | 561 | } |
562 | 562 | |
563 | 563 | return md5( |
564 | - $this->name. |
|
565 | - $this->size. |
|
566 | - ($this->bold ? 't' : 'f'). |
|
567 | - ($this->italic ? 't' : 'f'). |
|
568 | - ($this->superScript ? 't' : 'f'). |
|
569 | - ($this->subScript ? 't' : 'f'). |
|
570 | - $this->underline. |
|
571 | - ($this->strikethrough ? 't' : 'f'). |
|
572 | - $this->color->getHashCode(). |
|
564 | + $this->name . |
|
565 | + $this->size . |
|
566 | + ($this->bold ? 't' : 'f') . |
|
567 | + ($this->italic ? 't' : 'f') . |
|
568 | + ($this->superScript ? 't' : 'f') . |
|
569 | + ($this->subScript ? 't' : 'f') . |
|
570 | + $this->underline . |
|
571 | + ($this->strikethrough ? 't' : 'f') . |
|
572 | + $this->color->getHashCode() . |
|
573 | 573 | __CLASS__ |
574 | 574 | ); |
575 | 575 | } |