classes/phing/filters/util/IniFileTokenReader.php
protected function processFile()
    {
        $arr = parse_ini_file($this->file->getAbsolutePath(), true);

        if ($this->section !== null) {
            if (isset($arr[$this->section])) {
                $this->processSection($arr[$this->section]);
            }

            return;
        }

        $values = array_values($arr);

        if (!is_array($values[0])) {
            $this->processSection($arr);

            return;
        }

        foreach ($values as $subArr) {
            $this->processSection($subArr);
        }
    }
protected function processFile()
    {
        $arr = parse_ini_file($this->file->getAbsolutePath(), true);

        if ($this->section !== null) {
            if (isset($arr[$this->section])) {
                $this->processSection($arr[$this->section]);
            }

            return;
        }

        $values = array_values($arr);

        if (!is_array($values[0])) {
            $this->processSection($arr);

            return;
        }

        foreach ($values as $subArr) {
            $this->processSection($subArr);
        }
    }
protected function processFile ( ) { $ arr = parse_ini_file ( $ this -> file -> getAbsolutePath ( ) , true ) ; if ( $ this -> section !== null ) { if ( isset ( $ arr [ $ this -> section ] ) ) { $ this -> processSection ( $ arr [ $ this -> section ] ) ; } return ; } $ values = array_values ( $ arr ) ; if ( ! is_array ( $ values [ 0 ] ) ) { $ this -> processSection ( $ arr ) ; return ; } foreach ( $ values as $ subArr ) { $ this -> processSection ( $ subArr ) ; } }
Parse & process the ini file
Parse & process the ini file