Update git submodules, run phpcbf
This commit is contained in:
parent
0ba9a3b1ec
commit
8661848f0c
|
@ -9,12 +9,38 @@ declare(strict_types = 1);
|
||||||
* Class holding the information about various errors
|
* Class holding the information about various errors
|
||||||
* that can occur during validation
|
* that can occur during validation
|
||||||
*/
|
*/
|
||||||
final class CSVXMLValidator
|
final class CSVXMLValidator {
|
||||||
{
|
|
||||||
public array $error_msgs;
|
public array $error_msgs;
|
||||||
public array $inv_errors;
|
public array $inv_errors;
|
||||||
public array $depcon_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
|
* Constructor
|
||||||
*/
|
*/
|
||||||
|
@ -23,27 +49,6 @@ final class CSVXMLValidator
|
||||||
$this->error_msgs = [];
|
$this->error_msgs = [];
|
||||||
$this->inv_errors = [];
|
$this->inv_errors = [];
|
||||||
$this->depcon_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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -833,10 +833,10 @@ final class CsvxmlAvailableFields {
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "4") => [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "4") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "5") => [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "5") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "36") => [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "36") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "6")=> [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "6") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "7")=> [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "7") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "8")=> [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "8") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "9")=> [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "9") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "10") => [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "10") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "11") => [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "11") => [],
|
||||||
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "12") => [],
|
$tlLoader->tl("basis", "basis", 'event') . ": " . $tlLoader->tl("eventtype_name", "eventname", "12") => [],
|
||||||
|
|
|
@ -9,8 +9,8 @@ declare(strict_types = 1);
|
||||||
/**
|
/**
|
||||||
* Class holding the information for a field entry.
|
* Class holding the information for a field entry.
|
||||||
*/
|
*/
|
||||||
final class FieldEntry
|
final class FieldEntry {
|
||||||
{
|
|
||||||
public bool $required;
|
public bool $required;
|
||||||
public array $allowedValues;
|
public array $allowedValues;
|
||||||
public array $dependsOn;
|
public array $dependsOn;
|
||||||
|
@ -21,12 +21,12 @@ final class FieldEntry
|
||||||
/**
|
/**
|
||||||
* Function for constructing a new FieldEntry Object.
|
* 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 $allowedValues Array of allowed values.
|
||||||
* @param array $dependsOn Array of fields the entry depends on.
|
* @param array $dependsOn Array of fields the entry depends on.
|
||||||
* @param string $remark String variable.
|
* @param string $remark String variable.
|
||||||
* @param string $name_human_readable Human readable translation.
|
* @param string $name_human_readable Human readable translation.
|
||||||
* @param string $explica String variable
|
* @param string $explica String variable
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
bool $required, array $allowedValues,
|
bool $required, array $allowedValues,
|
||||||
|
@ -41,5 +41,4 @@ final class FieldEntry
|
||||||
$this->explica = $explica;
|
$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
|
Loading…
Reference in New Issue
Block a user