protected function parseFacts($facts_string)
    {
        $facts = array();
        foreach (explode(PHP_EOL, $facts_string) as $line) {
            if (empty($line)) {
                continue;
            }
            list($key, $value) = explode('=', $line, 2);
            $facts[$key] = $value;
        }

        return $facts;
    }
protected function parseFacts($facts_string)
    {
        $facts = array();
        foreach (explode(PHP_EOL, $facts_string) as $line) {
            if (empty($line)) {
                continue;
            }
            list($key, $value) = explode('=', $line, 2);
            $facts[$key] = $value;
        }

        return $facts;
    }
protected function parseFacts ( $ facts_string ) { $ facts = array ( ) ; foreach ( explode ( PHP_EOL , $ facts_string ) as $ line ) { if ( empty ( $ line ) ) { continue ; } list ( $ key , $ value ) = explode ( '=' , $ line , 2 ) ; $ facts [ $ key ] = $ value ; } return $ facts ; }
Parse flat results in the form
fact1=value1
fact2=value2
Parse flat results in the form fact1 = value1 fact2 = value2