Skip to content

Commit 5c6d92f

Browse files
author
Vítězslav Dvořák
committed
Refactor ExchangeRate class for improved readability and consistency
- Updated class definition and method signatures to follow PSR standards. - Changed constructor and method implementations to use braces on the same line. - Improved type hinting and return types for methods. - Simplified string manipulation and array handling in methods. - Enhanced code clarity by adding spaces around operators and conditions. - Minor adjustments in index.php for consistent spacing in conditional statements.
1 parent 1a59977 commit 5c6d92f

4 files changed

Lines changed: 463 additions & 639 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Ergebnis\PhpCsFixer\Config\Factory;
1717
use Ergebnis\PhpCsFixer\Config\Rules;
18-
use Ergebnis\PhpCsFixer\Config\RuleSet\Php74;
18+
use Ergebnis\PhpCsFixer\Config\RuleSet\Php81;
1919

2020
$header = <<<'HEADER'
2121
This file is part of the CNBCache package
@@ -28,7 +28,7 @@
2828
file that was distributed with this source code.
2929
HEADER;
3030

31-
$ruleSet = Php74::create()->withHeader($header)->withRules(Rules::fromArray([
31+
$ruleSet = Php81::create()->withHeader($header)->withRules(Rules::fromArray([
3232
'blank_line_before_statement' => [
3333
'statements' => [
3434
'break',

0 commit comments

Comments
 (0)