@@ -231,8 +231,8 @@ |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | return md5( |
234 | - $this->borderStyle . |
|
235 | - $this->color->getHashCode() . |
|
234 | + $this->borderStyle. |
|
235 | + $this->color->getHashCode(). |
|
236 | 236 | __CLASS__ |
237 | 237 | ); |
238 | 238 | } |
@@ -453,13 +453,13 @@ |
||
453 | 453 | } |
454 | 454 | |
455 | 455 | return md5( |
456 | - $this->horizontal . |
|
457 | - $this->vertical . |
|
458 | - $this->textRotation . |
|
459 | - ($this->wrapText ? 't' : 'f') . |
|
460 | - ($this->shrinkToFit ? 't' : 'f') . |
|
461 | - $this->indent . |
|
462 | - $this->readOrder . |
|
456 | + $this->horizontal. |
|
457 | + $this->vertical. |
|
458 | + $this->textRotation. |
|
459 | + ($this->wrapText ? 't' : 'f'). |
|
460 | + ($this->shrinkToFit ? 't' : 'f'). |
|
461 | + $this->indent. |
|
462 | + $this->readOrder. |
|
463 | 463 | __CLASS__ |
464 | 464 | ); |
465 | 465 | } |
@@ -248,10 +248,10 @@ |
||
248 | 248 | public function getHashCode() |
249 | 249 | { |
250 | 250 | return md5( |
251 | - $this->conditionType . |
|
252 | - $this->operatorType . |
|
253 | - implode(';', $this->condition) . |
|
254 | - $this->style->getHashCode() . |
|
251 | + $this->conditionType. |
|
252 | + $this->operatorType. |
|
253 | + implode(';', $this->condition). |
|
254 | + $this->style->getHashCode(). |
|
255 | 255 | __CLASS__ |
256 | 256 | ); |
257 | 257 | } |
@@ -187,10 +187,10 @@ discard block |
||
187 | 187 | $pValue = '000000'; |
188 | 188 | } |
189 | 189 | if ($this->isSupervisor) { |
190 | - $styleArray = $this->getStyleArray(['argb' => 'FF' . $pValue]); |
|
190 | + $styleArray = $this->getStyleArray(['argb' => 'FF'.$pValue]); |
|
191 | 191 | $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); |
192 | 192 | } else { |
193 | - $this->argb = 'FF' . $pValue; |
|
193 | + $this->argb = 'FF'.$pValue; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | return $this; |
@@ -297,12 +297,12 @@ discard block |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | $rgb = strtoupper( |
300 | - str_pad(dechex((int) $red), 2, '0', 0) . |
|
301 | - str_pad(dechex((int) $green), 2, '0', 0) . |
|
300 | + str_pad(dechex((int) $red), 2, '0', 0). |
|
301 | + str_pad(dechex((int) $green), 2, '0', 0). |
|
302 | 302 | str_pad(dechex((int) $blue), 2, '0', 0) |
303 | 303 | ); |
304 | 304 | |
305 | - return (($rgba) ? 'FF' : '') . $rgb; |
|
305 | + return (($rgba) ? 'FF' : '').$rgb; |
|
306 | 306 | } |
307 | 307 | |
308 | 308 | /** |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | } |
405 | 405 | |
406 | 406 | return md5( |
407 | - $this->argb . |
|
407 | + $this->argb. |
|
408 | 408 | __CLASS__ |
409 | 409 | ); |
410 | 410 | } |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | $rangeStart[1] : $rangeEnd[1] - $yMax + $y; |
299 | 299 | |
300 | 300 | // build range for region |
301 | - $range = $colStart . $rowStart . ':' . $colEnd . $rowEnd; |
|
301 | + $range = $colStart.$rowStart.':'.$colEnd.$rowEnd; |
|
302 | 302 | |
303 | 303 | // retrieve relevant style array for region |
304 | 304 | $regionStyles = $pStyles; |
@@ -607,14 +607,14 @@ discard block |
||
607 | 607 | } |
608 | 608 | |
609 | 609 | return md5( |
610 | - $this->fill->getHashCode() . |
|
611 | - $this->font->getHashCode() . |
|
612 | - $this->borders->getHashCode() . |
|
613 | - $this->alignment->getHashCode() . |
|
614 | - $this->numberFormat->getHashCode() . |
|
615 | - $hashConditionals . |
|
616 | - $this->protection->getHashCode() . |
|
617 | - ($this->quotePrefix ? 't' : 'f') . |
|
610 | + $this->fill->getHashCode(). |
|
611 | + $this->font->getHashCode(). |
|
612 | + $this->borders->getHashCode(). |
|
613 | + $this->alignment->getHashCode(). |
|
614 | + $this->numberFormat->getHashCode(). |
|
615 | + $hashConditionals. |
|
616 | + $this->protection->getHashCode(). |
|
617 | + ($this->quotePrefix ? 't' : 'f'). |
|
618 | 618 | __CLASS__ |
619 | 619 | ); |
620 | 620 | } |
@@ -386,8 +386,8 @@ discard block |
||
386 | 386 | } |
387 | 387 | |
388 | 388 | return md5( |
389 | - $this->formatCode . |
|
390 | - $this->builtInFormatCode . |
|
389 | + $this->formatCode. |
|
390 | + $this->builtInFormatCode. |
|
391 | 391 | __CLASS__ |
392 | 392 | ); |
393 | 393 | } |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | |
464 | 464 | private static function escapeQuotesCallback($matches) |
465 | 465 | { |
466 | - return '\\' . implode('\\', str_split($matches[1])); |
|
466 | + return '\\'.implode('\\', str_split($matches[1])); |
|
467 | 467 | } |
468 | 468 | |
469 | 469 | private static function formatAsDate(&$value, &$format) |
@@ -511,16 +511,16 @@ discard block |
||
511 | 511 | private static function formatAsPercentage(&$value, &$format) |
512 | 512 | { |
513 | 513 | if ($format === self::FORMAT_PERCENTAGE) { |
514 | - $value = round((100 * $value), 0) . '%'; |
|
514 | + $value = round((100 * $value), 0).'%'; |
|
515 | 515 | } else { |
516 | 516 | if (preg_match('/\.[#0]+/', $format, $m)) { |
517 | - $s = substr($m[0], 0, 1) . (strlen($m[0]) - 1); |
|
517 | + $s = substr($m[0], 0, 1).(strlen($m[0]) - 1); |
|
518 | 518 | $format = str_replace($m[0], $s, $format); |
519 | 519 | } |
520 | 520 | if (preg_match('/^[#0]+/', $format, $m)) { |
521 | 521 | $format = str_replace($m[0], strlen($m[0]), $format); |
522 | 522 | } |
523 | - $format = '%' . str_replace('%', 'f%%', $format); |
|
523 | + $format = '%'.str_replace('%', 'f%%', $format); |
|
524 | 524 | |
525 | 525 | $value = sprintf($format, 100 * $value); |
526 | 526 | } |
@@ -577,12 +577,12 @@ discard block |
||
577 | 577 | $maskingBlocks = array_reverse($maskingBlocks[0]); |
578 | 578 | |
579 | 579 | foreach ($maskingBlocks as $block) { |
580 | - $divisor = 1 . $block[0]; |
|
580 | + $divisor = 1.$block[0]; |
|
581 | 581 | $size = strlen($block[0]); |
582 | 582 | $offset = $block[1]; |
583 | 583 | |
584 | 584 | $blockValue = sprintf( |
585 | - '%0' . $size . 'd', |
|
585 | + '%0'.$size.'d', |
|
586 | 586 | fmod($number, $divisor) |
587 | 587 | ); |
588 | 588 | $number = floor($number / $divisor); |
@@ -611,12 +611,12 @@ discard block |
||
611 | 611 | $result1 = self::complexNumberFormatMask($numbers[0], $masks[0], false); |
612 | 612 | $result2 = strrev(self::complexNumberFormatMask(strrev($numbers[1]), strrev($masks[1]), false)); |
613 | 613 | |
614 | - return (($sign) ? '-' : '') . $result1 . '.' . $result2; |
|
614 | + return (($sign) ? '-' : '').$result1.'.'.$result2; |
|
615 | 615 | } |
616 | 616 | |
617 | 617 | $result = self::processComplexNumberFormatMask($number, $mask); |
618 | 618 | |
619 | - return (($sign) ? '-' : '') . $result; |
|
619 | + return (($sign) ? '-' : '').$result; |
|
620 | 620 | } |
621 | 621 | |
622 | 622 | private static function formatStraightNumericValue($value, $format, array $matches, $useThousands, $number_regex) |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | } |
646 | 646 | $value = self::complexNumberFormatMask($value, $format); |
647 | 647 | } else { |
648 | - $sprintf_pattern = "%0$minWidth." . strlen($right) . 'f'; |
|
648 | + $sprintf_pattern = "%0$minWidth.".strlen($right).'f'; |
|
649 | 649 | $value = sprintf($sprintf_pattern, $value); |
650 | 650 | $value = preg_replace($number_regex, $value, $format); |
651 | 651 | } |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | private static function formatAsNumber($value, $format) |
658 | 658 | { |
659 | 659 | if ($format === self::FORMAT_CURRENCY_EUR_SIMPLE) { |
660 | - return 'EUR ' . sprintf('%1.2f', $value); |
|
660 | + return 'EUR '.sprintf('%1.2f', $value); |
|
661 | 661 | } |
662 | 662 | |
663 | 663 | // Some non-number strings are quoted, so we'll get rid of the quotes, likewise any positional * symbols |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | // Save format with color information for later use below |
791 | 791 | $formatColor = $format; |
792 | 792 | // Strip colour information |
793 | - $color_regex = '/\[(' . implode('|', Color::NAMED_COLORS) . ')\]/'; |
|
793 | + $color_regex = '/\[('.implode('|', Color::NAMED_COLORS).')\]/'; |
|
794 | 794 | $format = preg_replace($color_regex, '', $format); |
795 | 795 | // Let's begin inspecting the format and converting the value to a formatted string |
796 | 796 |
@@ -411,12 +411,12 @@ |
||
411 | 411 | } |
412 | 412 | |
413 | 413 | return md5( |
414 | - $this->getLeft()->getHashCode() . |
|
415 | - $this->getRight()->getHashCode() . |
|
416 | - $this->getTop()->getHashCode() . |
|
417 | - $this->getBottom()->getHashCode() . |
|
418 | - $this->getDiagonal()->getHashCode() . |
|
419 | - $this->getDiagonalDirection() . |
|
414 | + $this->getLeft()->getHashCode(). |
|
415 | + $this->getRight()->getHashCode(). |
|
416 | + $this->getTop()->getHashCode(). |
|
417 | + $this->getBottom()->getHashCode(). |
|
418 | + $this->getDiagonal()->getHashCode(). |
|
419 | + $this->getDiagonalDirection(). |
|
420 | 420 | __CLASS__ |
421 | 421 | ); |
422 | 422 | } |
@@ -182,8 +182,8 @@ |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | return md5( |
185 | - $this->locked . |
|
186 | - $this->hidden . |
|
185 | + $this->locked. |
|
186 | + $this->hidden. |
|
187 | 187 | __CLASS__ |
188 | 188 | ); |
189 | 189 | } |
@@ -316,10 +316,10 @@ |
||
316 | 316 | // Note that we don't care about colours for fill type NONE, but could have duplicate NONEs with |
317 | 317 | // different hashes if we don't explicitly prevent this |
318 | 318 | return md5( |
319 | - $this->getFillType() . |
|
320 | - $this->getRotation() . |
|
321 | - ($this->getFillType() !== self::FILL_NONE ? $this->getStartColor()->getHashCode() : '') . |
|
322 | - ($this->getFillType() !== self::FILL_NONE ? $this->getEndColor()->getHashCode() : '') . |
|
319 | + $this->getFillType(). |
|
320 | + $this->getRotation(). |
|
321 | + ($this->getFillType() !== self::FILL_NONE ? $this->getStartColor()->getHashCode() : ''). |
|
322 | + ($this->getFillType() !== self::FILL_NONE ? $this->getEndColor()->getHashCode() : ''). |
|
323 | 323 | __CLASS__ |
324 | 324 | ); |
325 | 325 | } |