Exakat\Reports\Ambassador::generateGlobals PHP Method

generateGlobals() private method

private generateGlobals ( )
    private function generateGlobals()
    {
        $theGlobals = '';
        $res = $this->sqlite->query('SELECT fullcode, file, line FROM results WHERE analyzer="Structures/GlobalInGlobal"');
        while ($row = $res->fetchArray()) {
            $theGlobals .= "<tr><td>{$row['fullcode']}</td><td>{$row['file']}</td><td>{$row['line']}</td></tr>\n";
        }
        $html = $this->getBasedPage('globals');
        $html = $this->injectBloc($html, 'GLOBALS', $theGlobals);
        $this->putBasedPage('globals', $html);
    }