PluginProbe
Import Social Events / 1.8.5
Import Social Events v1.8.5
1.9.1 1.9.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 All 61 releases
← All changes | includes/lib/icalcreator/src/IcalBase.php +6 -10 trunk1.8.5 View file →
@@ -28,12 +28,8 @@
28 28 * This file is a part of iCalcreator.
29 29 */
30 30 namespace Kigkonsult\Icalcreator;
31 31
32 -if ( ! defined( 'ABSPATH' ) ) {
33 - exit;
34 -}
35 -
36 32 use InvalidArgumentException;
37 33 use Kigkonsult\Icalcreator\Util\ParameterFactory;
38 34 use Kigkonsult\Icalcreator\Util\Util;
39 35
@@ -452,9 +448,9 @@
452 448 break;
453 449 case ( $isComponent ) :
454 450 break;
455 451 default: // any invalid config key.. .
456 - throw new InvalidArgumentException( sprintf( $ERRMSG9, $config )); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
452 + throw new InvalidArgumentException( sprintf( $ERRMSG9, $config ));
457 453 } // end switch
458 454 if( ! empty( $subCfg ) && ! empty( $this->components )) {
459 455 foreach( $subCfg as $cfgkey => $cfgValue ) {
460 456 foreach( $this->components as $cix => $component ) {
@@ -476,9 +472,9 @@
476 472 protected function assertEmptyValue( $value, $propName )
477 473 {
478 474 static $ERRMSG = 'Empty %s value not allowed';
479 475 if( empty( $value ) && ! $this->getConfig( self::ALLOWEMPTY )) {
480 - throw new InvalidArgumentException( sprintf( $ERRMSG, $propName )); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
476 + throw new InvalidArgumentException( sprintf( $ERRMSG, $propName ));
481 477 }
482 478 }
483 479
484 480 /**
@@ -885,9 +881,9 @@
885 881 static $ERRMSG = 'Invalid component type \'%s\'';
886 882 $compType = $component->getCompType();
887 883 if( ! Util::isCompInList( $compType, self::$VCOMPS ) &&
888 884 ( self::VTIMEZONE != $compType )) {
889 - throw new InvalidArgumentException( sprintf( $ERRMSG, $compType )); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
885 + throw new InvalidArgumentException( sprintf( $ERRMSG, $compType ));
890 886 }
891 887 }
892 888
893 889 /**
@@ -915,9 +911,9 @@
915 911 break 2;
916 912 case self::DAYLIGHT :
917 913 break 2;
918 914 default :
919 - throw new InvalidArgumentException( sprintf( $MSG, $subType )); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
915 + throw new InvalidArgumentException( sprintf( $MSG, $subType ));
920 916 }
921 917 break;
922 918 case self::VEVENT :
923 919 // fall through
@@ -925,9 +921,9 @@
925 921 switch( $subType ) {
926 922 case self::VALARM :
927 923 break 2;
928 924 default :
929 - throw new InvalidArgumentException( sprintf( $MSG, $subType )); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
925 + throw new InvalidArgumentException( sprintf( $MSG, $subType ));
930 926 }
931 927 break;
932 928 case self::VFREEBUSY :
933 929 break;
@@ -933,8 +929,8 @@
933 929 break;
934 930 case self::VJOURNAL :
935 931 break;
936 932 default :
937 - throw new InvalidArgumentException( sprintf( $MSG, $type )); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
933 + throw new InvalidArgumentException( sprintf( $MSG, $type ));
938 934 } // end switch
939 935 }
940 936 }