Update git submodules, run phpcbf

This commit is contained in:
Joshua Ramon Enslin 2022-03-15 10:30:09 +01:00
parent 0ba9a3b1ec
commit 8661848f0c
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
8 changed files with 39 additions and 35 deletions

View File

@ -9,12 +9,38 @@ declare(strict_types = 1);
* Class holding the information about various errors
* that can occur during validation
*/
final class CSVXMLValidator
{
final class CSVXMLValidator {
public array $error_msgs;
public array $inv_errors;
public array $depcon_errors;
public function addError(String $error)
{
$this->error_msgs[] = $error;
}
public function addInvError(String $error)
{
$this->inv_errors[] = $error;
}
public function addDepconError(String $error)
{
$this->depcon_errors[] = $error;
}
public function overallErrorCount(): int
{
return count($this->error_msgs)
+ count($this->inv_errors)
+ count($this->depcon_errors);
}
/**
* Constructor
*/
@ -23,27 +49,6 @@ final class CSVXMLValidator
$this->error_msgs = [];
$this->inv_errors = [];
$this->depcon_errors = [];
}
public function addError(String $error)
{
$this->error_msgs[] = $error;
}
public function addInvError(String $error)
{
$this->inv_errors[] = $error;
}
public function addDepconError(String $error)
{
$this->depcon_errors[] = $error;
}
public function overallErrorCount(): int
{
return count($this->error_msgs)
+ count($this->inv_errors)
+ count($this->depcon_errors);
}
}

View File

@ -9,8 +9,8 @@ declare(strict_types = 1);
/**
* Class holding the information for a field entry.
*/
final class FieldEntry
{
final class FieldEntry {
public bool $required;
public array $allowedValues;
public array $dependsOn;
@ -21,7 +21,7 @@ final class FieldEntry
/**
* Function for constructing a new FieldEntry Object.
*
* @param bool $required True if the field is required.
* @param boolean $required True if the field is required.
* @param array $allowedValues Array of allowed values.
* @param array $dependsOn Array of fields the entry depends on.
* @param string $remark String variable.
@ -41,5 +41,4 @@ final class FieldEntry
$this->explica = $explica;
}
}

@ -1 +1 @@
Subproject commit 276420017d1e21a8453eb2ae37a095a4b827201c
Subproject commit 70dea64c3c51cba32557b5977194e71f95c0ff91

@ -1 +1 @@
Subproject commit cfcae5fb2b82846bae27a49ec5147aa1e2090ade
Subproject commit 942de26411feb446955d6198255e348ee68c0323

@ -1 +1 @@
Subproject commit cc7990b6f88d53ae7ef6530a2f65cee4a5448b62
Subproject commit 8018f7309ae68048e0d0b57be2a44d82f0693881

@ -1 +1 @@
Subproject commit aa7a3c50128ccf605c078c14a0ce45f355acfa77
Subproject commit 9507387c8a69c88a1aa684fb6d87026671885ded

@ -1 +1 @@
Subproject commit f419b535e4d1eff1e1352e38ce2da11290788df3
Subproject commit 9acd4aa1db706fc4f0213c49528ba1ee8bf93291