Skip to content

Commit f7fbe36

Browse files
authored
Merge pull request #170 from heiglandreas/addHungary
Add hungarian holidays
2 parents fd40ea2 + 5afac04 commit f7fbe36

File tree

5 files changed

+44
-13
lines changed

5 files changed

+44
-13
lines changed

.github/workflows/actions.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
- name: Setup PHP
1111
uses: shivammathur/setup-php@v2
1212
with:
13-
php-version: "8.2"
13+
php-version: "8.3"
1414
tools: phive
1515
- name: Download codesniffer
16-
run: phive --no-progress install --trust-gpg-keys 31C7E470E2138192 phpcs
16+
run: phive --no-progress install --trust-gpg-keys 5E6DDE998AB73B8E phpcs
1717
- name: Install
1818
run: composer install
1919
- name: check
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup PHP
2828
uses: shivammathur/setup-php@v2
2929
with:
30-
php-version: "8.2"
30+
php-version: "8.3"
3131
- name: Install xmllint
3232
run: sudo apt-get install libxml2-utils
3333
- name: lint
@@ -39,11 +39,12 @@ jobs:
3939
strategy:
4040
matrix:
4141
# operating-system: [ubuntu-latest, windows-latest, macos-latest]
42-
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2']
43-
icu-versions: ['73.2', '73.1', '71.1', '69.1', '67.1']
42+
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
43+
icu-versions: ['74.1', '73.2', '73.1', '71.1', '69.1', '67.1']
4444
experimental: [false]
4545
include:
46-
- php-versions: '8.3'
46+
- php-versions: '8.4'
47+
icu-versions: '74.1'
4748
experimental: true
4849
name: PHP ${{ matrix.php-versions }}-icu${{ matrix.icu-versions }} # Test on ${{ matrix.operating-system }}
4950
steps:
@@ -53,7 +54,7 @@ jobs:
5354
uses: shivammathur/setup-php@v2
5455
with:
5556
php-version: ${{ matrix.php-versions }}
56-
extensions: sodium, intl-${{matrix.icu-version}}
57+
extensions: sodium, intl-${{matrix.icu-versions}}
5758
ini-values: post_max_size=256M, short_open_tag=On
5859
coverage: xdebug
5960
- name: prepare
@@ -86,7 +87,7 @@ jobs:
8687
- name: Setup PHP
8788
uses: shivammathur/setup-php@v2
8889
with:
89-
php-version: "8.2"
90+
php-version: "8.3"
9091
tools: phive
9192
- name: Download psalm
9293
run: phive --no-progress install --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 psalm

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ Currently these countries are available:
137137
* Cyprus
138138
* Czech Republic
139139
* Switzerland
140+
* Hungary
140141

141142
But the list is constantly extending.
142143

phpcs.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,16 @@
129129
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
130130
<properties>
131131
<property
132-
name="newlinesCountBetweenOpenTagAndDeclare"
133-
value="2"
132+
name="linesCountBeforeDeclare"
133+
value="1"
134134
/>
135135
<property
136136
name="spacesCountAroundEqualsSign"
137137
value="0"
138138
/>
139139
<property
140-
name="newlinesCountAfterDeclare"
141-
value="2"
140+
name="linesCountAfterDeclare"
141+
value="1"
142142
/>
143143
</properties>
144144
</rule>

share/HU.xml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<holidays xmlns="https://heigl.org/holidays"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
5+
xmlns:xi="http://www.w3.org/2001/XInclude"
6+
>
7+
<resources>
8+
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Hungary" lastChecked="2024-01-17">Wikipedia</resource>
9+
</resources>
10+
<date day="1" month="1" free="true" comment="New years day">Újév</date>
11+
<date day="15" month="3" free="true" comment="National Day">Nemzeti ünnep</date>
12+
<easter offset="-2" free="true" comment="Good Friday" firstobservance="2017">Nagypéntek</easter>
13+
<easter offset="1" free="true" comment="Easter Monday">Húsvéthétfő</easter>
14+
<date day="1" month="5" free="true" comment="Labour day">A munka ünnepe</date>
15+
<easter offset="50" free="true" comment="Whit Monday">Pünkösdhétfő</easter>
16+
<date day="20" month="8" free="true" comment="State foundation day">Az államalapítás ünnepe</date>
17+
<date day="23" month="10" free="true" comment="National Day">Nemzeti ünnep</date>
18+
<date day="1" month="11" free="true" comment="All Saints Day">Mindenszentek</date>
19+
<date day="25" month="12" free="true" comment="Christmas Day">Karácsony</date>
20+
<date day="26" month="12" free="true" comment="Second day of christmas">Karácsony másnapja</date>
21+
<date day="22" month="1" free="false" comment="Day of the Hungarian Culture">A magyar kultúra napja</date>
22+
<date day="1" month="2" free="false" comment="Memorial Day of the Republic">A köztársaság emléknapja</date>
23+
<date day="25" month="2" free="false" comment="Memorial Day for the vivtims of the Communist Dictatorship">A kommunista diktatúrák áldozatainak emléknapja</date>
24+
<date day="16" month="4" free="false" comment="Memorial Day for the victims of the Holocaust">A holokauszt áldozatainak emléknapja</date>
25+
<date day="21" month="5" free="false" comment="National Defense Day">Honvédelmi nap</date>
26+
<date day="4" month="6" free="false" comment="National Unity Day">A nemzeti összetartozás napja </date>
27+
<date day="19" month="6" free="false" comment="Independen Hungary Day">A független Magyarország napja</date>
28+
<date day="6" month="10" free="false" comment="Memorial Day for the Martyrs of Arad">Az aradi vértanúk emléknapja</date>
29+
</holidays>

world.svg

+1-1
Loading

0 commit comments

Comments
 (0)