Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 19, 2024
1 parent a50c549 commit cc20904
Show file tree
Hide file tree
Showing 106 changed files with 354 additions and 331 deletions.
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/AlandHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_%C3%85land",
"https://de.wikipedia.org/wiki/%C3%85land"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/AlbaniaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Albania",
"https://www.bankofalbania.org/Press/2024_Official_Bank_Holiday_Schedule"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/AndorraHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Andorra"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/ArgentinaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Argentina"
};
];
}
}
}
9 changes: 3 additions & 6 deletions src/Nager.Date/HolidayProviders/ArmeniaHolidayProvider.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using Nager.Date.Helpers;
using Nager.Date.Models;
using Nager.Date.ReligiousProviders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nager.Date.HolidayProviders
{
Expand Down Expand Up @@ -148,10 +145,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Armenia"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ private HolidaySpecification MourningForQueenElizabeth(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Australia"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/AustriaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Austria"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BahamasHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_the_Bahamas"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BarbadosHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Barbados"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BelarusHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Belarus"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BelgiumHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Belgium",
"https://www.nbb.be/en/about-national-bank/national-bank-belgium/public-holidays",
"https://www.bnpparibasfortis.be/public/nl/public/particulieren/sluitingsdagen"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BelizeHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Belize"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BeninHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Benin"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BoliviaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Bolivia"
};
];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Bosnia_and_Herzegovina"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BotswanaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Botswana"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BrazilHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Brazil",
"https://pt.wikipedia.org/wiki/Feriados_no_Brasil"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/BulgariaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Bulgaria",
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/CanadaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,11 @@ private HolidaySpecification[] CanadaDay(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Canada",
"https://www.canada.ca/en/department-national-defence/maple-leaf/defence/2021/07/federal-statutory-holiday-national-day-for-truth-and-reconciliation.html"
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/ChileHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ private HolidaySpecification NationalDayOfIndigenousPeoples(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Chile",
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/ChinaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ private int MoveMonth(int month, int leapMonth)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_China",
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/ColombiaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Colombia",
};
];
}
}
}
18 changes: 9 additions & 9 deletions src/Nager.Date/HolidayProviders/CostaRicaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ public IEnumerable<Holiday> GetHolidays(int year)
//return items.OrderBy(o => o.Date);
}

/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
"https://en.wikipedia.org/wiki/Public_holidays_in_Costa_Rica",
};
}

private HolidaySpecification GetJuanSantamariaDay(int year)
{
ObservedRuleSet observedRuleSet = null;
Expand Down Expand Up @@ -253,5 +244,14 @@ private ObservedRuleSet Law9875RuleSet()
// );
//return date;
}

/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Costa_Rica",
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/CroatiaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ private HolidaySpecification GetNationalDay(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Croatia",
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/CubaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Cuba",
};
];
}
}
}
6 changes: 3 additions & 3 deletions src/Nager.Date/HolidayProviders/CyprusHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ public IEnumerable<Holiday> GetHolidays(int year)
/// <inheritdoc/>
public IEnumerable<string> GetSources()
{
return new string[]
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Cyprus",
};
];
}
}
}
Loading

0 comments on commit cc20904

Please sign in to comment.