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

@@ 603-612 (lines=10) @@
600
     * @param string $message
601
     * @return Job
602
     */
603
    public function changeStatus($status, $message = '[System]')
604
    {
605
        $this->setStatus($status);
606
        $status = $this->getStatus(); // ensure StatusEntity
607
608
        $history = new History($status, $message);
609
610
        $this->getHistory()->add($history);
611
        return $this;
612
    }
613
614
    /**
615
     * (non-PHPdoc)