Skip to content

Commit

Permalink
style: Fix code styling and formatting issues
Browse files Browse the repository at this point in the history
Using the latest version of the PHP CS configuration, tests for Belgium,
Georgia, the Netherlands, Sweden, and the United Kingdom are updated to
use the most recent code style and formatting rules.

For the most part this updates the header comment and the strict type
declaration. It should not have any affect on the working of the tests
nor the main code.

Signed-off-by: Sacha Telgenhof <me@sachatelgenhof.com>
  • Loading branch information
stelgenhof committed Apr 9, 2024
1 parent 97534fb commit c639b4b
Show file tree
Hide file tree
Showing 139 changed files with 852 additions and 440 deletions.
14 changes: 11 additions & 3 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/**
* This file is part of the Yasumi package.
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand All @@ -13,7 +15,13 @@
* @author Sacha Telgenhof <me at sachatelgenhof dot com>
*/

$config = new AzuyaLabs\PhpCsFixerConfig\Config();
$config = new AzuyaLabs\PhpCsFixerConfig\Config('2015', null, 'Yasumi');
$config->getFinder()->in(__DIR__)->notPath('var');

$defaults = $config->getRules();

$config->setRules(array_merge($defaults, [
'php_unit_method_casing' => ['case' => 'camel_case'],
]));

return $config;
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
},
"require-dev": {
"ext-intl": "*",
"azuyalabs/php-cs-fixer-config": "^0.1",
"friendsofphp/php-cs-fixer": "^2.19 || 3.48",
"azuyalabs/php-cs-fixer-config": "^0.3",
"mikey179/vfsstream": "^1.6",
"phan/phan": "^5.4",
"phpstan/phpstan": "^1.10",
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/AllSaintsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/ArmisticeDayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/AscensionDayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/AssumptionOfMaryTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/BelgiumBaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/BelgiumTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/ChristmasTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/EasterMondayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/EasterTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/InternationalWorkersDayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/NationalDayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/NewYearsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/PentecostTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
9 changes: 6 additions & 3 deletions tests/Belgium/pentecostMondayTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Yasumi package.
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
15 changes: 14 additions & 1 deletion tests/Georgia/EasterTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Sacha Telgenhof <me at sachatelgenhof dot com>
*/

namespace Yasumi\tests\Georgia;

Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/GeorgiaBaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/GeorgiaTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/IndependenceDayTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/InternationalWomensDayTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/MtskhetobaDayTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/NewYearsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/OrthodoxChristmasDayTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down
8 changes: 5 additions & 3 deletions tests/Georgia/OrthodoxEpiphanyDayTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);
declare(strict_types = 1);

/*
* This file is part of the Yasumi package.
/**
* This file is part of the 'Yasumi' package.
*
* The easy PHP Library for calculating holidays.
*
* Copyright (c) 2015 - 2024 AzuyaLabs
*
Expand Down

0 comments on commit c639b4b

Please sign in to comment.