Update git submodules, run phpcbf
This commit is contained in:
parent
0ba9a3b1ec
commit
8661848f0c
|
@ -7,37 +7,30 @@
|
||||||
declare(strict_types = 1);
|
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;
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->error_msgs = [];
|
|
||||||
$this->inv_errors = [];
|
|
||||||
$this->depcon_errors = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addError(String $error)
|
public function addError(String $error)
|
||||||
{
|
{
|
||||||
$this->error_msgs[] = $error;
|
$this->error_msgs[] = $error;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addInvError(String $error)
|
public function addInvError(String $error)
|
||||||
{
|
{
|
||||||
$this->inv_errors[] = $error;
|
$this->inv_errors[] = $error;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addDepconError(String $error)
|
public function addDepconError(String $error)
|
||||||
{
|
{
|
||||||
$this->depcon_errors[] = $error;
|
$this->depcon_errors[] = $error;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function overallErrorCount(): int
|
public function overallErrorCount(): int
|
||||||
|
@ -45,5 +38,17 @@ final class CSVXMLValidator
|
||||||
return count($this->error_msgs)
|
return count($this->error_msgs)
|
||||||
+ count($this->inv_errors)
|
+ count($this->inv_errors)
|
||||||
+ count($this->depcon_errors);
|
+ count($this->depcon_errors);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->error_msgs = [];
|
||||||
|
$this->inv_errors = [];
|
||||||
|
$this->depcon_errors = [];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ final class CsvxmlAvailableFields {
|
||||||
|
|
||||||
const EVENT_MULTIPLIER = 3;
|
const EVENT_MULTIPLIER = 3;
|
||||||
|
|
||||||
/** @var array<mixed>
|
/** @var array<mixed>
|
||||||
*/
|
*/
|
||||||
private array $_availableFields;
|
private array $_availableFields;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ final class CsvxmlAvailableFields {
|
||||||
*
|
*
|
||||||
* @return array<mixed>
|
* @return array<mixed>
|
||||||
*/
|
*/
|
||||||
public function getFields():array
|
public function getFields():array
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->_availableFields;
|
return $this->_availableFields;
|
||||||
|
@ -42,7 +42,7 @@ final class CsvxmlAvailableFields {
|
||||||
*
|
*
|
||||||
* @return FieldEntry
|
* @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(
|
return new FieldEntry(
|
||||||
$required,
|
$required,
|
||||||
|
@ -66,7 +66,7 @@ final class CsvxmlAvailableFields {
|
||||||
*
|
*
|
||||||
* @return FieldEntry
|
* @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 [
|
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", "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