Code Duplication    Length = 12-12 lines in 2 locations

src/Configuration/OptionResolver/SniffsOptionResolver.php 1 location

@@ 27-38 (lines=12) @@
24
        return self::NAME;
25
    }
26
27
    public function resolve(array $value) : array
28
    {
29
        $optionsResolver = new OptionsResolver();
30
        $optionsResolver->setDefined(self::NAME);
31
        $this->setSniffsAllowedValues($optionsResolver);
32
33
        $values = $optionsResolver->resolve([
34
            self::NAME => $value
35
        ]);
36
37
        return $values[self::NAME];
38
    }
39
40
    private function setSniffsAllowedValues(OptionsResolver $optionsResolver)
41
    {

src/Configuration/OptionResolver/SourceOptionResolver.php 1 location

@@ 26-37 (lines=12) @@
23
        return self::NAME;
24
    }
25
26
    public function resolve(array $value) : array
27
    {
28
        $optionsResolver = new OptionsResolver();
29
        $optionsResolver->setDefined(self::NAME);
30
        $this->setSourceAllowedValues($optionsResolver);
31
32
        $values = $optionsResolver->resolve([
33
            self::NAME => $value
34
        ]);
35
36
        return $values[self::NAME];
37
    }
38
39
    private function setSourceAllowedValues(OptionsResolver $optionsResolver)
40
    {