Passed
Pull Request — master (#123)
by
unknown
04:33
created
Classes/Validation/LibXmlTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
  * LICENSE.txt file that was distributed with this source code.
15 15
  */
16 16
 
17
-trait LibXmlTrait
18
-{
17
+trait LibXmlTrait {
19 18
     /**
20 19
      * Add the errors from the libxml error buffer as validation error.
21 20
      *
Please login to merge, or discard this patch.
Classes/Validation/AbstractDlfValidationStack.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
  *
27 27
  * @access public
28 28
  */
29
-abstract class AbstractDlfValidationStack extends AbstractDlfValidator
30
-{
29
+abstract class AbstractDlfValidationStack extends AbstractDlfValidator {
31 30
     use LoggerAwareTrait;
32 31
 
33 32
     const ITEM_KEY_TITLE = "title";
@@ -36,8 +35,7 @@  discard block
 block discarded – undo
36 35
 
37 36
     protected array $validatorStack = [];
38 37
 
39
-    public function __construct(string $valueClassName)
40
-    {
38
+    public function __construct(string $valueClassName) {
41 39
         parent::__construct($valueClassName);
42 40
     }
43 41
 
Please login to merge, or discard this patch.
Classes/Validation/SaxonXslToSvrlValidator.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,14 +31,12 @@  discard block
 block discarded – undo
31 31
  *
32 32
  * @access public
33 33
  */
34
-class SaxonXslToSvrlValidator extends AbstractDlfValidator implements LoggerAwareInterface
35
-{
34
+class SaxonXslToSvrlValidator extends AbstractDlfValidator implements LoggerAwareInterface {
36 35
     private string $jar;
37 36
 
38 37
     private string $xsl;
39 38
 
40
-    public function __construct(array $configuration)
41
-    {
39
+    public function __construct(array $configuration) {
42 40
         parent::__construct(DOMDocument::class);
43 41
         $this->jar = GeneralUtility::getFileAbsFileName($configuration["jar"] ?? '');
44 42
         $this->xsl = GeneralUtility::getFileAbsFileName($configuration["xsl"] ?? '');
@@ -52,8 +50,7 @@  discard block
 block discarded – undo
52 50
         }
53 51
     }
54 52
 
55
-    protected function isValid($value)
56
-    {
53
+    protected function isValid($value) {
57 54
         $svrl = $this->process($value);
58 55
         $this->addErrorsOfSvrl($svrl);
59 56
     }
Please login to merge, or discard this patch.
Classes/Middleware/DOMDocumentValidation.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
33 33
  * @subpackage dlf
34 34
  * @access public
35 35
  */
36
-class DOMDocumentValidation implements MiddlewareInterface
37
-{
36
+class DOMDocumentValidation implements MiddlewareInterface {
38 37
     use LoggerAwareTrait;
39 38
 
40 39
     /**
Please login to merge, or discard this patch.
Tests/Unit/Validation/SaxonXslToSvrlValidatorTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
28 28
  *
29 29
  * @access public
30 30
  */
31
-class SaxonXslToSvrlValidatorTest extends UnitTestCase
32
-{
31
+class SaxonXslToSvrlValidatorTest extends UnitTestCase {
33 32
     const SVRL = <<<SVRL
34 33
         <svrl:schematron-output
35 34
             xmlns:svrl="http://purl.oclc.org/dsdl/schematron">
Please login to merge, or discard this patch.
Tests/Unit/Validation/DOMDocumentValidationStackTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
  *
30 30
  * @access public
31 31
  */
32
-class DOMDocumentValidationStackTest extends UnitTestCase
33
-{
32
+class DOMDocumentValidationStackTest extends UnitTestCase {
34 33
     public function setUp(): void
35 34
     {
36 35
         parent::setUp();
Please login to merge, or discard this patch.
Tests/Unit/Validation/XmlSchemesValidatorTest.php 1 patch
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.