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 = 10-11 lines in 3 locations

test/phpunit/tests/Spi/Memory/MemoryWorkflowStoreTest.php 3 locations

@@ 61-70 (lines=10) @@
58
    /**
59
     * Тестируем корректное возвращение WorkflowEntryInterface из кэша
60
     */
61
    public function testGetPropertySetWithCachedEntry()
62
    {
63
        $memory = new MemoryWorkflowStore();
64
        $refStaticProp = new ReflectionProperty(MemoryWorkflowStore::class, 'propertySetCache');
65
        $refStaticProp->setAccessible(true);
66
        $entryMock = $this->getMockBuilder(WorkflowEntryInterface::class)->getMock();
67
        $refStaticProp->setValue([123 => $entryMock]);
68
69
        $this->assertEquals($entryMock, $memory->getPropertySet(123));
70
    }
71
72
    /**
73
     * Проверяем наличие exception при некорректном entryId
@@ 170-179 (lines=10) @@
167
    /**
168
     * Проверяем что при корректно сохраненном entry метод findEntry его вернет
169
     */
170
    public function testFindCorrectEntry()
171
    {
172
        $memory = new MemoryWorkflowStore();
173
        $refProp = new ReflectionProperty(MemoryWorkflowStore::class, 'entryCache');
174
        $refProp->setAccessible(true);
175
        $entryMock = $this->getMockBuilder(WorkflowEntryInterface::class)->getMock();
176
        $refProp->setValue($memory, [123 => $entryMock]);
177
178
        $this->assertEquals($entryMock, $memory->findEntry(123));
179
    }
180
181
    /**
182
     * Тестируем создание + добавление в кэш
@@ 184-194 (lines=11) @@
181
    /**
182
     * Тестируем создание + добавление в кэш
183
     */
184
    public function testCreateEntry()
185
    {
186
        $memory = new MemoryWorkflowStore();
187
        $entry = $memory->createEntry('wokflow_name');
188
189
        $this->assertInstanceOf(WorkflowEntryInterface::class, $entry);
190
191
        $refProp = new ReflectionProperty(MemoryWorkflowStore::class, 'entryCache');
192
        $refProp->setAccessible(true);
193
        $this->assertEquals([1 => $entry], $refProp->getValue($memory));
194
    }
195
196
    /**
197
     * Тестируем создание текущего шага