| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -// phpcs:ignoreFile | |
| 3 | 2 | /** |
| 4 | 3 | * iCalcreator, the PHP class package managing iCal (rfc2445/rfc5445) calendar information. |
| 5 | 4 | * |
| 6 | 5 | * copyright (c) 2007-2021 Kjell-Inge Gustafsson, kigkonsult, All rights reserved |
| @@ -104,9 +103,9 @@ | ||
| 104 | 103 | $fileName = self::getFakedFilename(); |
| 105 | 104 | } |
| 106 | 105 | $output = $calendar->createCalendar(); |
| 107 | 106 | if( $utf8Encode ) { |
| 108 | - $output = utf8_encode( $output ); // phpcs:ignore wp_function_not_compatible_with_requires_wp | |
| 107 | + $output = utf8_encode( $output ); | |
| 109 | 108 | } |
| 110 | 109 | $fsize = null; |
| 111 | 110 | if( $gzip ) { |
| 112 | 111 | $output = gzencode( $output, 9 ); |
| @@ -129,9 +128,9 @@ | ||
| 129 | 128 | header( self::$headers[3] ); |
| 130 | 129 | $cdType = ( $cdType ) ? 4 : 5; |
| 131 | 130 | header( sprintf( self::$headers[$cdType], $fileName )); |
| 132 | 131 | header( self::$headers[6] ); |
| 133 | - echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 132 | + echo $output; | |
| 134 | 133 | return true; |
| 135 | 134 | } |
| 136 | 135 | |
| 137 | 136 | /** |
| @@ -144,9 +143,9 @@ | ||
| 144 | 143 | */ |
| 145 | 144 | private static function getFakedFilename() |
| 146 | 145 | { |
| 147 | 146 | static $DOTICS = '.ics'; |
| 148 | - return gmdate( | |
| 147 | + return date( | |
| 149 | 148 | DateTimeFactory::$YmdHis, |
| 150 | 149 | intval( microtime( true )) |
| 151 | 150 | ) . $DOTICS; |
| 152 | 151 | } |