Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holiday Provider for Bosnia #94

Merged
merged 7 commits into from
Feb 24, 2018
Merged

Conversation

TheAdnan
Copy link
Contributor

No description provided.

@stelgenhof
Copy link
Member

Thanks for the PR! According to my research, these are not all the official Bosnian holidays, are they? For example, I saw there is a second New Years Day and a second Labour Day. Do you maybe have a good resource that explains the official/national holidays?

Cheers! Sacha

@TheAdnan
Copy link
Contributor Author

Hey Sacha, thanks for the info, I thought it was by default that the second New Years Day and Labour day were holidays, my bad.
I've fixed it, and I've also added the Orthodox Christmas Day.
Let me know if there's any other issue.

Cheers, Adnan 🌷

Copy link
Member

@stelgenhof stelgenhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also a generic unit test missing for the country itself. Have a look at other countries.

use Yasumi\Holiday;

/**
* Provider for all holidays in Croatia.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to correct this :) Please also check everywhere else in all the files if there is anything that needs to be changed.

/**
* Provider for all holidays in Croatia.
*
* @author Karlo Mikus <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can change it to your name :)

* Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective
* country or sub-region.
*/
const ID = 'BS';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://en.wikipedia.org/wiki/ISO_3166-2:BA, the ISO3166-2 code for Bosnia and Herzegovina is 'BA'.

@stelgenhof
Copy link
Member

I think it looks good now. However, due to the various religions and various jurisdictions in Bosnia, maybe other holidays need to be added.

Source: https://en.wikipedia.org/wiki/Public_holidays_in_Bosnia_and_Herzegovina

@stelgenhof stelgenhof changed the base branch from master to develop February 24, 2018 02:55
@stelgenhof stelgenhof merged commit e5db9f1 into azuyalabs:develop Feb 24, 2018
@TheAdnan
Copy link
Contributor Author

There are at least two holidays from the islamic calendar (hence the issue/suggestion earlier), and I think some Orthodox Christian holidays (gotta research this a bit more), so I'll update this again soon :)

@stelgenhof
Copy link
Member

stelgenhof commented Feb 24, 2018

No problem. I merged already the code into the 'develop' branch. If you have any PR's, please submit for the 'develop' branch. The master branch is considered production level code :)

@TheAdnan
Copy link
Contributor Author

Oh sorry, I'll keep that in mind next time 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants