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

@@ 683-692 (lines=10) @@
680
     * @param string $message
681
     * @return Job
682
     */
683
    public function changeStatus($status, $message = '[System]')
684
    {
685
        $this->setStatus($status);
686
        $status = $this->getStatus(); // ensure StatusEntity
687
688
        $history = new History($status, $message);
689
690
        $this->getHistory()->add($history);
691
        return $this;
692
    }
693
694
    /**
695
     * (non-PHPdoc)