Code Duplication    Length = 7-7 lines in 2 locations

src/StrategyEnum.php 1 location

@@ 72-78 (lines=7) @@
69
     * @param string $string
70
     * @return self
71
     */
72
    protected static function instance($string)
73
    {
74
        if (!isset(static::$registry[$string])) {
75
            static::$registry[$string] = new static($string);
76
        }
77
        return static::$registry[$string];
78
    }
79
80
81
    /**

src/VotingDecisionEnum.php 1 location

@@ 45-51 (lines=7) @@
42
     * @param string $string
43
     * @return self
44
     */
45
    protected static function instance($string)
46
    {
47
        if (!isset(static::$registry[$string])) {
48
            static::$registry[$string] = new static($string);
49
        }
50
        return static::$registry[$string];
51
    }
52
53
54
    /**