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

@ -7,37 +7,30 @@
declare(strict_types = 1);
/**
* 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 $inv_errors;
public array $depcon_errors;
/**
* Constructor
*/
public function __construct()
{
$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
@ -45,5 +38,17 @@ final class CSVXMLValidator
return count($this->error_msgs)
+ count($this->inv_errors)
+ count($this->depcon_errors);
}
/**
* Constructor
*/
public function __construct()
{
$this->error_msgs = [];
$this->inv_errors = [];
$this->depcon_errors = [];
}
}

View File

@ -13,7 +13,7 @@ final class CsvxmlAvailableFields {
const EVENT_MULTIPLIER = 3;
/** @var array<mixed>
/** @var array<mixed>
*/
private array $_availableFields;
@ -22,7 +22,7 @@ final class CsvxmlAvailableFields {
*
* @return array<mixed>
*/
public function getFields():array
public function getFields():array
{
return $this->_availableFields;
@ -42,7 +42,7 @@ final class CsvxmlAvailableFields {
*
* @return FieldEntry
*/
private function _getSimpleAvailableFieldEntry(string $nameTL = "", string $explica = "", array $dependsOn = [], array $allowedValues = [], string $remark = "", bool $required = false):FieldEntry
private function _getSimpleAvailableFieldEntry(string $nameTL = "", string $explica = "", array $dependsOn = [], array $allowedValues = [], string $remark = "", bool $required = false):FieldEntry
{
return new FieldEntry(
$required,
@ -66,7 +66,7 @@ final class CsvxmlAvailableFields {
*
* @return FieldEntry
*/
private function _generateGenericFullEvent(array $event, MDTlLoader $tlLoader, string $typeName, string $type, int $number):array
private function _generateGenericFullEvent(array $event, MDTlLoader $tlLoader, string $typeName, string $type, int $number):array
{
return [
@ -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", "5") => [],
$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", "7")=> [],
$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", "6") => [],
$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", "9") => [],
$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", "12") => [],

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,12 +21,12 @@ final class FieldEntry
/**
* Function for constructing a new FieldEntry Object.
*
* @param bool $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.
* @param string $name_human_readable Human readable translation.
* @param string $explica String variable
* @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.
* @param string $name_human_readable Human readable translation.
* @param string $explica String variable
*/
public function __construct(
bool $required, array $allowedValues,
@ -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