Code Duplication    Length = 12-12 lines in 2 locations

src/Badger/Bundle/GameBundle/Security/TaggedEntityVoter.php 1 location

@@ 24-35 (lines=12) @@
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function supports($attribute, $subject)
25
    {
26
        if (!in_array($attribute, [self::VIEW])) {
27
            return false;
28
        }
29
30
        if (!$subject instanceof TaggableInterface) {
31
            return false;
32
        }
33
34
        return true;
35
    }
36
37
    /**
38
     * {@inheritdoc}

src/Badger/Bundle/GameBundle/Security/TagVoter.php 1 location

@@ 24-35 (lines=12) @@
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function supports($attribute, $subject)
25
    {
26
        if (!in_array($attribute, [self::VIEW])) {
27
            return false;
28
        }
29
30
        if (!$subject instanceof TagInterface) {
31
            return false;
32
        }
33
34
        return true;
35
    }
36
37
    /**
38
     * {@inheritdoc}