core/console/commands/ImportController.php
private function logValueToTable(array $logs)
    {
        $table = new Table();
        $table->setHeaders(['Key', 'Value']);
        $rows = [];
     
        foreach ($logs as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $kk => $kv) {
                    $rows[] = [$kk, $kv];
                }
            } else {
                $rows[] = [$key, $value];
            }
        }
        $table->setRows($rows);
        echo $table->run();
    }
private function logValueToTable(array $logs)
    {
        $table = new Table();
        $table->setHeaders(['Key', 'Value']);
        $rows = [];
     
        foreach ($logs as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $kk => $kv) {
                    $rows[] = [$kk, $kv];
                }
            } else {
                $rows[] = [$key, $value];
            }
        }
        $table->setRows($rows);
        echo $table->run();
    }
private function logValueToTable ( array $ logs ) { $ table = new Table ( ) ; $ table -> setHeaders ( [ 'Key' , 'Value' ] ) ; $ rows = [ ] ; foreach ( $ logs as $ key => $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ kk => $ kv ) { $ rows [ ] = [ $ kk , $ kv ] ; } } else { $ rows [ ] = [ $ key , $ value ] ; } } $ table -> setRows ( $ rows ) ; echo $ table -> run ( ) ; }
Print the log values as a table.

@param array $logs
@since 1.0.8
Print the log values as a table .