Exakat\Reports\Devoops::GlobalVariablesList PHP Method

GlobalVariablesList() protected method

protected GlobalVariablesList ( )
    protected function GlobalVariablesList()
    {
        $css = new \Stdclass();
        $css->displayTitles = true;
        $css->titles = array('Code', 'File', 'Line');
        $css->readOrder = $css->titles;
        $data = array();
        $sqlQuery = 'SELECT fullcode AS Code, file AS File, line AS Line  FROM results WHERE analyzer="Structures/GlobalInGlobal" ORDER BY fullcode';
        $res = $this->dump->query($sqlQuery);
        while ($row = $res->fetchArray(SQLITE3_ASSOC)) {
            $data[] = $row;
        }
        return $this->formatText(<<<TEXT
Here are the global variables, including the implicit ones : any variable that are used in the global scope, outside methods, are implicitely globals.
TEXT
, 'textLead') . $this->formatSimpleTable($data, $css);
    }