application/Espo/Core/Utils/File/Manager.php
public function getPhpContents($path)
    {
        $fullPath = $this->concatPaths($path);

        if (file_exists($fullPath) && strtolower(substr($fullPath, -4)) == '.php') {
            $phpContents = include($fullPath);
            return $phpContents;
        }

        return false;
    }
public function getPhpContents($path)
    {
        $fullPath = $this->concatPaths($path);

        if (file_exists($fullPath) && strtolower(substr($fullPath, -4)) == '.php') {
            $phpContents = include($fullPath);
            return $phpContents;
        }

        return false;
    }
public function getPhpContents ( $ path ) { $ fullPath = $ this -> concatPaths ( $ path ) ; if ( file_exists ( $ fullPath ) && strtolower ( substr ( $ fullPath , - 4 ) ) == '.php' ) { $ phpContents = include ( $ fullPath ) ; return $ phpContents ; } return false ; }
Get PHP array from PHP file

@param  string | array $path
@return array | bool
Get PHP array from PHP file