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-20 lines in 2 locations

src/Flow/Condition/Workflow/AndCondition.php 1 location

@@ 25-40 (lines=16) @@
22
 *
23
 * @package Netzmacht\Workflow\Flow\Workflow
24
 */
25
class AndCondition extends ConditionCollection
26
{
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function match(Workflow $workflow, EntityId $entityId, $entity): bool
31
    {
32
        foreach ($this->conditions as $condition) {
33
            if (!$condition->match($workflow, $entityId, $entity)) {
34
                return false;
35
            }
36
        }
37
38
        return true;
39
    }
40
}
41

src/Flow/Condition/Workflow/OrCondition.php 1 location

@@ 25-44 (lines=20) @@
22
 *
23
 * @package Netzmacht\Workflow\Flow\Workflow
24
 */
25
class OrCondition extends ConditionCollection
26
{
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function match(Workflow $workflow, EntityId $entityId, $entity): bool
31
    {
32
        foreach ($this->conditions as $condition) {
33
            if ($condition->match($workflow, $entityId, $entity)) {
34
                return true;
35
            }
36
        }
37
38
        if (!$this->conditions) {
39
            return true;
40
        }
41
42
        return false;
43
    }
44
}
45