GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 16-17 lines in 2 locations

src/AbstractWorkflow.php 2 locations

@@ 1006-1022 (lines=17) @@
1003
     * @return SplObjectStorage|StepInterface[]
1004
     * @throws \OldTown\Workflow\Exception\InternalWorkflowException
1005
     */
1006
    public function getCurrentSteps($id)
1007
    {
1008
        try {
1009
            $store = $this->getPersistence();
1010
1011
            return $store->findCurrentSteps($id);
1012
        } catch (StoreException $e) {
1013
            $errMsg = sprintf(
1014
                'Ошибка при проверке текущего шага для инстанса # %s',
1015
                $id
1016
            );
1017
            $this->getLog()->error($errMsg, [$e]);
1018
1019
1020
            return [];
1021
        }
1022
    }
1023
1024
    /**
1025
     *
@@ 1755-1770 (lines=16) @@
1752
     *
1753
     * @throws \OldTown\Workflow\Exception\InternalWorkflowException
1754
     */
1755
    public function getPropertySet($id)
1756
    {
1757
        $ps = null;
1758
1759
        try {
1760
            $ps = $this->getPersistence()->getPropertySet($id);
1761
        } catch (StoreException $e) {
1762
            $errMsg = sprintf(
1763
                'Ошибка при получение PropertySet для экземпляра workflow c id# %s',
1764
                $id
1765
            );
1766
            $this->getLog()->error($errMsg, [$e]);
1767
        }
1768
1769
        return $ps;
1770
    }
1771
1772
    /**
1773
     * @return \String[]