Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

@@ 565-574 (lines=10) @@
562
     * @param string $message
563
     * @return Job
564
     */
565
    public function changeStatus($status, $message = '[System]')
566
    {
567
        $this->setStatus($status);
568
        $status = $this->getStatus(); // ensure StatusEntity
569
570
        $history = new History($status, $message);
571
572
        $this->getHistory()->add($history);
573
        return $this;
574
    }
575
576
    /**
577
     * (non-PHPdoc)