diff --git a/include/icalparser/.travis.yml b/include/icalparser/.travis.yml deleted file mode 100644 index 6eec526..0000000 --- a/include/icalparser/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -language: php -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - hhvm - -matrix: - allow_failures: - - php: 7.1 - - php: 7.2 - - php: hhvm - - include: - - php: 5.6 - env: dependencies="--prefer-lowest --prefer-stable" - -script: - - vendor/bin/tester tests -s -p php - -after_failure: - - for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done - -before_script: - - composer self-update - - composer update --no-interaction --prefer-source $dependencies \ No newline at end of file diff --git a/include/icalparser/LICENSE b/include/icalparser/LICENSE index e449f31..ce7d41d 100644 --- a/include/icalparser/LICENSE +++ b/include/icalparser/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014, Roman Ožana +Copyright (c) 2014-2022, Roman Ožana All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/include/icalparser/tools/windowstimezones.php b/include/icalparser/bin/timezones.php similarity index 52% rename from include/icalparser/tools/windowstimezones.php rename to include/icalparser/bin/timezones.php index 46a15d0..3bf3708 100644 --- a/include/icalparser/tools/windowstimezones.php +++ b/include/icalparser/bin/timezones.php @@ -1,19 +1,20 @@ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ -$windows_timezones = array(); +$windows_timezones = []; $windowstimezonexml = new DOMDocument(); -$windowstimezonexml->load('http://unicode.org/cldr/data/common/supplemental/windowsZones.xml'); +$windowstimezonexml->load('https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml'); $zones = $windowstimezonexml->getElementsByTagName('mapZone'); -foreach($zones as $zone) { - if($zone->getAttribute('territory') == '001') { +foreach ($zones as $zone) { + if ($zone->getAttribute('territory') === '001') { $windows_timezones[$zone->getAttribute('other')] = $zone->getAttribute('type'); } } -file_put_contents(__DIR__.'/windows_timezones.php', "=5.6.0" + "php": ">=7.4.0" + }, + "suggest": { + "ext-dom": "for timezone tool" }, "autoload": { - "classmap": ["src/"] - }, - "require-dev": { - "nette/tester": "v2.0.1" + "classmap": [ + "src/" + ] }, "scripts": { - "tests": ["./vendor/bin/tester tests -s -p php"] + "test": "tester tests -s -p php" + }, + "require-dev": { + "nette/tester": "^2.4" } } diff --git a/include/icalparser/example/index.php b/include/icalparser/example/index.php index 5c468d5..de706f6 100644 --- a/include/icalparser/example/index.php +++ b/include/icalparser/example/index.php @@ -7,26 +7,36 @@
Date | +Summary | +
---|---|
%s | %s |