src/Modules/Notification.php
private static function get_notification_details( $notification ) {
		$notifications = array_filter(
			self::$notifications,
			function ( $value ) use ( $notification ) {
				if ( isset( $value['id'] ) && isset( $notification['id'] ) && $value['id'] === $notification['id'] ) {
					return true;
				}

				return false;
			}
		);

		return ! empty( $notifications ) ? reset( $notifications ) : [];
	}
private static function get_notification_details( $notification ) {
		$notifications = array_filter(
			self::$notifications,
			function ( $value ) use ( $notification ) {
				if ( isset( $value['id'] ) && isset( $notification['id'] ) && $value['id'] === $notification['id'] ) {
					return true;
				}

				return false;
			}
		);

		return ! empty( $notifications ) ? reset( $notifications ) : [];
	}
private static function get_notification_details ( $ notification ) { $ notifications = array_filter ( self :: $ notifications , function ( $ value ) use ( $ notification ) { if ( isset ( $ value [ 'id' ] ) && isset ( $ notification [ 'id' ] ) && $ value [ 'id' ] === $ notification [ 'id' ] ) { return true ; } return false ; } ) ; return ! empty ( $ notifications ) ? reset ( $ notifications ) : [ ] ; }
Check if the notification is still possible.

@param array $notification Notification to check.

@return array Either is still active or not.
Check if the notification is still possible .