Passed
Pull Request — master (#123)
by
unknown
05:42
created
Tests/Unit/Validation/XmlSchemesValidatorTest.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
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/"
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Classes/Validation/AbstractDlfValidator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.