Use named parameters for more legible code

Close #40
This commit is contained in:
2025-02-24 16:28:36 +01:00
parent 8f67d9b04d
commit 6e01abc74f
9 changed files with 583 additions and 1192 deletions
+9 -9
View File
@@ -1,13 +1,13 @@
{
"require": {
"phpmailer/phpmailer": "^6.1",
"phpunit/phpunit": "^9.4",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-strict-rules": "^1.4",
"ergebnis/phpstan-rules": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"spaze/phpstan-disallowed-calls": "^2.9",
"thecodingmachine/phpstan-strict-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.2"
"phpmailer/phpmailer": "*",
"phpunit/phpunit": "*",
"phpstan/phpstan": "*",
"phpstan/phpstan-strict-rules": "*",
"ergebnis/phpstan-rules": "*",
"phpstan/phpstan-deprecation-rules": "*",
"spaze/phpstan-disallowed-calls": "*",
"thecodingmachine/phpstan-strict-rules": "*",
"phpstan/phpstan-phpunit": "*"
}
}
+2 -2
View File
@@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?66b3e80ea9ddf" />
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?67bc901d7b393" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#aa4400" />
@@ -27,7 +27,7 @@
</head>
<body class="loading">
<script src="assets/js/csvxmlV2.min.js?66b3e80ea9de1" type="text/javascript" async></script>
<script src="assets/js/csvxmlV2.min.js?67bc901d7b395" type="text/javascript" async></script>
</body>
</html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -32,9 +32,9 @@ final class FieldEntry {
* @param string $explica Explanation.
*/
public function __construct(
bool $required, array $allowedValues,
array $dependsOn, string $remark,
string $name_human_readable, string $explica
bool $required = false, array $allowedValues = [],
array $dependsOn = [], string $remark = "",
string $name_human_readable = "", string $explica = ""
) {
$this->required = $required;
$this->allowedValues = $allowedValues;