← All changes
|
includes/lib/icalcreator/src/Util/RegulateTimezoneFactory.php
+7
-7
trunk
→
1.8.5
View file →
| @@ -274,9 +274,9 @@ | ||
| 274 | 274 | if( ! empty( $inputiCal )) { |
| 275 | 275 | $this->setInputiCal( $inputiCal ); |
| 276 | 276 | } |
| 277 | 277 | if( ! $this->isInputiCalSet()) { |
| 278 | - throw new InvalidArgumentException( $FMTERR ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 278 | + throw new InvalidArgumentException( $FMTERR ); | |
| 279 | 279 | } |
| 280 | 280 | $vtSwitch = false; |
| 281 | 281 | foreach( $this->getInputiCal() as $lix => $row ) { |
| 282 | 282 | if( StringFactory::startsWith( $row, self::$BEGINVTIMEZONE )) { |
| @@ -459,12 +459,12 @@ | ||
| 459 | 459 | } |
| 460 | 460 | if( empty( $dlghtTzs )) { |
| 461 | 461 | throw new RuntimeException( |
| 462 | 462 | sprintf( |
| 463 | - $ERR, // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 464 | - $currTzId, // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 465 | - implode( Util::$COMMA, $stdArr ), // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 466 | - implode( Util::$COMMA, $dlghtArr ) // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 463 | + $ERR, | |
| 464 | + $currTzId, | |
| 465 | + implode( Util::$COMMA, $stdArr ), | |
| 466 | + implode( Util::$COMMA, $dlghtArr ) | |
| 467 | 467 | ) |
| 468 | 468 | ); |
| 469 | 469 | } |
| 470 | 470 | arsort( $dlghtTzs ); // reverse sort on number of hits |
| @@ -573,9 +573,9 @@ | ||
| 573 | 573 | if( false !== $res ) { // is dst |
| 574 | 574 | return $res; |
| 575 | 575 | } |
| 576 | 576 | if( $throwException ) { |
| 577 | - throw new RuntimeException( sprintf( $ERR, $offset, $seconds )); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 577 | + throw new RuntimeException( sprintf( $ERR, $offset, $seconds )); | |
| 578 | 578 | } |
| 579 | 579 | else { |
| 580 | 580 | return null; |
| 581 | 581 | } |
| @@ -615,9 +615,9 @@ | ||
| 615 | 615 | $dateTimeOffsetNow = $date->getOffset(); |
| 616 | 616 | } |
| 617 | 617 | catch( Exception $e ) { |
| 618 | 618 | throw new RuntimeException( |
| 619 | - sprintf( $FMTERR, $tzAbbrCity[$TIMEZONEID] ) // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 619 | + sprintf( $FMTERR, $tzAbbrCity[$TIMEZONEID] ) | |
| 620 | 620 | ); |
| 621 | 621 | } |
| 622 | 622 | if( $seconds == $dateTimeOffsetNow ) { |
| 623 | 623 | $tzId = $tzAbbrCity[$TIMEZONEID]; |