Update git submodules, run phpcbf
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Submodule classes/MDAllowedValueSets updated: 276420017d...70dea64c3c
Submodule classes/MDMailer updated: cfcae5fb2b...942de26411
Submodule classes/MD_QA updated: cc7990b6f8...8018f7309a
Submodule classes/MD_STD updated: aa7a3c5012...9507387c8a
Submodule l10n/musdb updated: f419b535e4...9acd4aa1db
Reference in New Issue
Block a user