Skip to content

Commit

Permalink
Changed visibility of internal class functions to 'private'. These ar…
Browse files Browse the repository at this point in the history
…e to be used within the class only and should not be public.

Signed-off-by: Sacha Telgenhof <stelgenhof@gmail.com>
  • Loading branch information
stelgenhof committed Jan 23, 2019
1 parent 22609ce commit 326e8ec
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Germany/Saxony.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function calculateReformationDay(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateRepentanceAndPrayerDay(): void
private function calculateRepentanceAndPrayerDay(): void
{
if ($this->year >= 1995) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/Andalusia.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateAndalusiaDay(): void
private function calculateAndalusiaDay(): void
{
if ($this->year >= 1980) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/Asturias.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateAsturiasDay(): void
private function calculateAsturiasDay(): void
{
if ($this->year >= 1984) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/BalearicIslands.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateBalearicIslandsDay(): void
private function calculateBalearicIslandsDay(): void
{
if ($this->year >= 1983) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/BasqueCountry.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateBasqueCountryDay(): void
private function calculateBasqueCountryDay(): void
{
if ($this->year >= 2011 && $this->year <= 2013) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/CanaryIslands.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateCanaryIslandsDay(): void
private function calculateCanaryIslandsDay(): void
{
if ($this->year >= 1984) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/Cantabria.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateCantabriaDay(): void
private function calculateCantabriaDay(): void
{
if ($this->year >= 1967) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/CastileAndLeon.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateCastileAndLeonDay(): void
private function calculateCastileAndLeonDay(): void
{
if ($this->year >= 1976) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/CastillaLaMancha.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateCastillaLaManchaDay(): void
private function calculateCastillaLaManchaDay(): void
{
if ($this->year >= 1984) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/Catalonia.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateNationalDayOfCatalonia(): void
private function calculateNationalDayOfCatalonia(): void
{
if ($this->year >= 1886) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/Ceuta.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateDayOfCeuta(): void
private function calculateDayOfCeuta(): void
{
if ($this->year >= 1416) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/CommunityOfMadrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateDosdeMayoUprisingDay(): void
private function calculateDosdeMayoUprisingDay(): void
{
$this->addHoliday(new Holiday(
'dosdeMayoUprisingDay',
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/Extremadura.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateDayOfExtremadura(): void
private function calculateDayOfExtremadura(): void
{
if ($this->year >= 1985) {
$this->addHoliday(new Holiday(
Expand Down
4 changes: 2 additions & 2 deletions src/Yasumi/Provider/Spain/Galicia.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateGalicianLiteratureDay(): void
private function calculateGalicianLiteratureDay(): void
{
if ($this->year >= 1991) {
$this->addHoliday(new Holiday('galicianLiteratureDay', [
Expand Down Expand Up @@ -102,7 +102,7 @@ public function calculateGalicianLiteratureDay(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateStJamesDay(): void
private function calculateStJamesDay(): void
{
if ($this->year >= 2000) {
$this->addHoliday(new Holiday('stJamesDay', [
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/LaRioja.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateLaRiojaDay(): void
private function calculateLaRiojaDay(): void
{
if ($this->year >= 1983) {
$this->addHoliday(new Holiday('laRiojaDay', [
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/RegionOfMurcia.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateDayOfMurcia(): void
private function calculateDayOfMurcia(): void
{
if ($this->year >= 1983) {
$this->addHoliday(new Holiday('murciaDay', [
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Spain/ValencianCommunity.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateValencianCommunityDay(): void
private function calculateValencianCommunityDay(): void
{
if ($this->year >= 1239) {
$this->addHoliday(new Holiday('valencianCommunityDay', [
Expand Down
4 changes: 2 additions & 2 deletions src/Yasumi/Provider/Switzerland/Geneva.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateJeuneGenevois(): void
private function calculateJeuneGenevois(): void
{
// Find first Sunday of September
$date = new DateTime('First Sunday of ' . $this->year . '-09', new DateTimeZone($this->timezone));
Expand Down Expand Up @@ -105,7 +105,7 @@ public function calculateJeuneGenevois(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateRestaurationGenevoise(): void
private function calculateRestaurationGenevoise(): void
{
if ($this->year > 1813) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Switzerland/Glarus.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateNafelserFahrt(): void
private function calculateNafelserFahrt(): void
{
if ($this->year >= 1389) {
$date = new DateTime('First Thursday of ' . $this->year . '-04', new DateTimeZone($this->timezone));
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Switzerland/Jura.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculatePlebisciteJurassien(): void
private function calculatePlebisciteJurassien(): void
{
if ($this->year > 1974) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Switzerland/Neuchatel.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateInstaurationRepublique(): void
private function calculateInstaurationRepublique(): void
{
if ($this->year > 1848) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Switzerland/Obwalden.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function initialize(): void
* @throws \Exception
* @throws \Exception
*/
public function calculateBruderKlausenFest(): void
private function calculateBruderKlausenFest(): void
{
if ($this->year >= 1947) {
$this->addHoliday(new Holiday(
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Switzerland/Ticino.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function initialize(): void
* @throws \Yasumi\Exception\UnknownLocaleException
* @throws \Exception
*/
public function calculateStPeterPaul(): void
private function calculateStPeterPaul(): void
{
$this->addHoliday(new Holiday(
'stPeterPaul',
Expand Down

0 comments on commit 326e8ec

Please sign in to comment.