Code Duplication    Length = 10-10 lines in 2 locations

src/Helper/Sugarcrm.php 2 locations

@@ 16-25 (lines=10) @@
13
     *
14
     * @return Version
15
     */
16
    public function getBuildVersion($path)
17
    {
18
        if (!defined('sugarEntry')) {
19
            define('sugarEntry', true);
20
        }
21
22
        require realpath($path) . '/sugar_version.php';
23
24
        return new Version($sugar_version);
25
    }
26
27
    /**
28
     * Extracts flav from sugarcrm build files.
@@ 34-43 (lines=10) @@
31
     *
32
     * @return string
33
     */
34
    public function getBuildFlav($path)
35
    {
36
        if (!defined('sugarEntry')) {
37
            define('sugarEntry', true);
38
        }
39
40
        require realpath($path) . '/sugar_version.php';
41
42
        return $sugar_flavor;
43
    }
44
45
    /**
46
     * Verifies if given path represents a valid SugarCRM build.