Code Duplication    Length = 10-10 lines in 2 locations

module/Applications/src/Applications/Entity/Application.php 1 location

@@ 347-356 (lines=10) @@
344
     * @param string $message
345
     * @return Application
346
     */
347
    public function changeStatus($status, $message = '[System]')
348
    {
349
        $this->setStatus($status);
350
        $status = $this->getStatus(); // ensure StatusEntity
351
352
        $history = new History($status, $message);
353
354
        $this->getHistory()->add($history);
355
        return $this;
356
    }
357
    
358
    /**
359
     * {@inheritDoc}

module/Jobs/src/Jobs/Entity/Job.php 1 location

@@ 649-658 (lines=10) @@
646
     * @param string $message
647
     * @return Job
648
     */
649
    public function changeStatus($status, $message = '[System]')
650
    {
651
        $this->setStatus($status);
652
        $status = $this->getStatus(); // ensure StatusEntity
653
654
        $history = new History($status, $message);
655
656
        $this->getHistory()->add($history);
657
        return $this;
658
    }
659
660
    /**
661
     * (non-PHPdoc)