Code Duplication    Length = 14-17 lines in 2 locations

src/Subjects/AbstractSubject.php 1 location

@@ 584-597 (lines=14) @@
581
     *
582
     * @return void
583
     */
584
    public function tearDown($serial)
585
    {
586
587
        // load the registry processor
588
        $registryProcessor = $this->getRegistryProcessor();
589
590
        // update the source directory for the next subject
591
        $registryProcessor->mergeAttributesRecursive(RegistryKeys::STATUS, array(RegistryKeys::FILES => $this->getStatus()));
592
593
        // log a debug message with the new source directory
594
        $this->getSystemLogger()->debug(
595
            sprintf('Subject %s successfully updated status data for import %s', get_class($this), $serial)
596
        );
597
    }
598
599
    /**
600
     * Return's the target directory for the artefact export.

src/Subjects/ValidatorSubject.php 1 location

@@ 51-67 (lines=17) @@
48
     *
49
     * @return void
50
     */
51
    public function tearDown($serial)
52
    {
53
54
        // invoke the parent method
55
        parent::tearDown($serial);
56
57
        // load the registry processor
58
        $registryProcessor = $this->getRegistryProcessor();
59
60
        // update the source directory for the next subject
61
        $registryProcessor->mergeAttributesRecursive(RegistryKeys::STATUS, array(RegistryKeys::VALIDATIONS => $this->getValidations()));
62
63
        // log a debug message with the new source directory
64
        $this->getSystemLogger()->debug(
65
            sprintf('Subject %s successfully updated validation data for import %s', get_class($this), $serial)
66
        );
67
    }
68
69
    /**
70
     * Return's the array with the validation errors.