Code Duplication    Length = 3-3 lines in 2 locations

src/SilverStripe/BehatExtension/Context/ClassGuesser/ModuleContextClassGuesser.php 2 locations

@@ 47-49 (lines=3) @@
44
    public function guess()
45
    {
46
        // Try fully qualified namespace
47
        if (class_exists($class = $this->namespaceBase.'\\'.$this->namespaceSuffix.'\\'.$this->contextClass)) {
48
            return $class;
49
        }
50
        // Fall back to namespace with SilverStripe prefix
51
        // TODO Remove once core has namespace capabilities for modules
52
        if (class_exists($class = 'SilverStripe\\'.$this->namespaceBase.'\\'.$this->namespaceSuffix.'\\'.$this->contextClass)) {
@@ 52-54 (lines=3) @@
49
        }
50
        // Fall back to namespace with SilverStripe prefix
51
        // TODO Remove once core has namespace capabilities for modules
52
        if (class_exists($class = 'SilverStripe\\'.$this->namespaceBase.'\\'.$this->namespaceSuffix.'\\'.$this->contextClass)) {
53
            return $class;
54
        }
55
    }
56
}
57