protected function buildDomainRows(array $tree)
    {
        $rows = [];

        /** @var \Platformsh\Cli\Service\PropertyFormatter $formatter */
        $formatter = $this->getService('property_formatter');

        foreach ($tree as $domain) {
            $rows[] = [
                'name' => $domain->id,
                'ssl' => $formatter->format((bool) $domain['ssl']['has_certificate']),
                'created_at' => $formatter->format($domain['created_at'], 'created_at'),
                'updated_at' => $formatter->format($domain['updated_at'], 'updated_at'),
            ];
        }

        return $rows;
    }
protected function buildDomainRows(array $tree)
    {
        $rows = [];

        /** @var \Platformsh\Cli\Service\PropertyFormatter $formatter */
        $formatter = $this->getService('property_formatter');

        foreach ($tree as $domain) {
            $rows[] = [
                'name' => $domain->id,
                'ssl' => $formatter->format((bool) $domain['ssl']['has_certificate']),
                'created_at' => $formatter->format($domain['created_at'], 'created_at'),
                'updated_at' => $formatter->format($domain['updated_at'], 'updated_at'),
            ];
        }

        return $rows;
    }
protected function buildDomainRows ( array $ tree ) { $ rows = [ ] ; /** @var \Platformsh\Cli\Service\PropertyFormatter $formatter */ $ formatter = $ this -> getService ( 'property_formatter' ) ; foreach ( $ tree as $ domain ) { $ rows [ ] = [ 'name' => $ domain -> id , 'ssl' => $ formatter -> format ( ( bool ) $ domain [ 'ssl' ] [ 'has_certificate' ] ) , 'created_at' => $ formatter -> format ( $ domain [ 'created_at' ] , 'created_at' ) , 'updated_at' => $ formatter -> format ( $ domain [ 'updated_at' ] , 'updated_at' ) , ] ; } return $ rows ; }
Recursively build rows of the domain table.

@param Domain[] $tree

@return array
Recursively build rows of the domain table .