Skip to content

Commit

Permalink
Add missing strict type declaration.
Browse files Browse the repository at this point in the history
Changed to Yoda style condition

Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed May 1, 2020
1 parent c4fe55d commit 517f45d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Yasumi/Provider/Croatia.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function calculateStatehoodDay(): void
$statehoodDayDate = new DateTime("$this->year-5-30", DateTimeZoneFactory::getDateTimeZone($this->timezone));
}

if ($statehoodDayDate != null) {
if (null != $statehoodDayDate) {
$this->addHoliday(new Holiday('statehoodDay', [
'en' => 'Statehood Day',
'hr' => 'Dan državnosti',
Expand All @@ -111,7 +111,7 @@ private function calculateHomelandThanksgivingDay(): void
$names['hr'] = 'Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja';
}

if ($names !== null) {
if (null !== $names) {
$this->addHoliday(new Holiday(
'homelandThanksgiving',
$names,
Expand Down
1 change: 1 addition & 0 deletions src/Yasumi/Provider/Luxembourg.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

namespace Yasumi\Provider;

Expand Down

0 comments on commit 517f45d

Please sign in to comment.