@@ -26,8 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @access public |
28 | 28 | */ |
29 | -class XmlSchemesValidatorTest extends UnitTestCase |
|
30 | -{ |
|
29 | +class XmlSchemesValidatorTest extends UnitTestCase { |
|
31 | 30 | const METS = <<<METS |
32 | 31 | <mets:mets |
33 | 32 | xmlns:mets="http://www.loc.gov/METS/" |
@@ -70,7 +70,7 @@ |
||
70 | 70 | public function setUp(): void |
71 | 71 | { |
72 | 72 | parent::setUp(); |
73 | - $this->resetSingletonInstances = true; |
|
73 | + $this->resetSingletonInstances = TRUE; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function testValidation(): void |
@@ -54,7 +54,7 @@ |
||
54 | 54 | public function validate(mixed $value): Result |
55 | 55 | { |
56 | 56 | if (!$value instanceof $this->valueClassName) { |
57 | - $this->logger->debug('Value must be an instance of ' . $this->valueClassName . '.'); |
|
57 | + $this->logger->debug('Value must be an instance of '.$this->valueClassName.'.'); |
|
58 | 58 | throw new InvalidArgumentException('Type of value is not valid.', 1723126505626); |
59 | 59 | } |
60 | 60 | return parent::validate($value); |
@@ -30,8 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @access public |
32 | 32 | */ |
33 | -abstract class AbstractDlfValidator extends AbstractValidator |
|
34 | -{ |
|
33 | +abstract class AbstractDlfValidator extends AbstractValidator { |
|
35 | 34 | use LoggerAwareTrait; |
36 | 35 | |
37 | 36 | protected string $valueClassName; |
@@ -39,8 +38,7 @@ discard block |
||
39 | 38 | /** |
40 | 39 | * @param $valueClassName string The class name of the value |
41 | 40 | */ |
42 | - public function __construct(string $valueClassName) |
|
43 | - { |
|
41 | + public function __construct(string $valueClassName) { |
|
44 | 42 | parent::__construct(); |
45 | 43 | $this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(static::class); |
46 | 44 | $this->valueClassName = $valueClassName; |