protected function buildPortStatusRows(array $status)
    {
        $rows = [];

        foreach ($status['ports'] as $port => $value) {
            $row = [
                $port,
                $value['status'],
            ];

            $rows[] = $row;
        }
        $warnings = $status['state']['warning'];

        $rows[] = new TableSeparator();
        $rows[] = [new TableCell(
            sprintf('There is %d warning(s) on %s!', $warnings, $status['host']),
            ['colspan' => 2]
        )];

        return $rows;
    }
protected function buildPortStatusRows(array $status)
    {
        $rows = [];

        foreach ($status['ports'] as $port => $value) {
            $row = [
                $port,
                $value['status'],
            ];

            $rows[] = $row;
        }
        $warnings = $status['state']['warning'];

        $rows[] = new TableSeparator();
        $rows[] = [new TableCell(
            sprintf('There is %d warning(s) on %s!', $warnings, $status['host']),
            ['colspan' => 2]
        )];

        return $rows;
    }
protected function buildPortStatusRows ( array $ status ) { $ rows = [ ] ; foreach ( $ status [ 'ports' ] as $ port => $ value ) { $ row = [ $ port , $ value [ 'status' ] , ] ; $ rows [ ] = $ row ; } $ warnings = $ status [ 'state' ] [ 'warning' ] ; $ rows [ ] = new TableSeparator ( ) ; $ rows [ ] = [ new TableCell ( sprintf ( 'There is %d warning(s) on %s!' , $ warnings , $ status [ 'host' ] ) , [ 'colspan' => 2 ] ) ] ; return $ rows ; }
Build port status rows.

@param array $status
An array of the status data.

@return array
An array of the rows based on the status.
Build port status rows .