Code Duplication    Length = 8-8 lines in 2 locations

src/string/FixedVariableCG.php 1 location

@@ 32-39 (lines=8) @@
29
    /**
30
     * @inheritdoc
31
     */
32
    public function __construct(string $string, int $length = 0)
33
    {
34
        parent::__construct($string, $length);
35
36
        // Parse internal character groups
37
        $this->fixedCG = FixedCG::fromString($string);
38
        $this->variableCG = VariableCG::fromString($string);
39
    }
40
41
    /**
42
     * Get variable character group common prefix, if exists then

src/string/VariableFixedCG.php 1 location

@@ 32-39 (lines=8) @@
29
    /**
30
     * @inheritdoc
31
     */
32
    public function __construct(string $string, int $length = 0)
33
    {
34
        parent::__construct($string, $length);
35
36
        // Parse internal character groups
37
        $this->variableCG = VariableCG::fromString($string);
38
        $this->fixedCG = FixedCG::fromString($string);
39
    }
40
41
    /**
42
     * Get variable character group common prefix, if exists then