protected function displayResult(StyleInterface $io, array $results) {

        $exitCode = 0;

        $rows = [];

        $success = $this->getCheckbox(true);
        $warning = $this->getCheckbox(false);

        // Handle each result.
        foreach ($results as $bundle => $assets) {
            foreach ($assets as $asset => $result) {

                $rows[] = [
                    true === $result ? $success : $warning,
                    $bundle,
                    basename($asset),
                ];

                $exitCode += true === $result ? 0 : 1;
            }
        }

        // Displays a table.
        $io->table(["", "Bundle", "Asset"], $rows);

        return $exitCode;
    }
protected function displayResult(StyleInterface $io, array $results) {

        $exitCode = 0;

        $rows = [];

        $success = $this->getCheckbox(true);
        $warning = $this->getCheckbox(false);

        // Handle each result.
        foreach ($results as $bundle => $assets) {
            foreach ($assets as $asset => $result) {

                $rows[] = [
                    true === $result ? $success : $warning,
                    $bundle,
                    basename($asset),
                ];

                $exitCode += true === $result ? 0 : 1;
            }
        }

        // Displays a table.
        $io->table(["", "Bundle", "Asset"], $rows);

        return $exitCode;
    }
protected function displayResult ( StyleInterface $ io , array $ results ) { $ exitCode = 0 ; $ rows = [ ] ; $ success = $ this -> getCheckbox ( true ) ; $ warning = $ this -> getCheckbox ( false ) ; // Handle each result. foreach ( $ results as $ bundle => $ assets ) { foreach ( $ assets as $ asset => $ result ) { $ rows [ ] = [ true === $ result ? $ success : $ warning , $ bundle , basename ( $ asset ) , ] ; $ exitCode += true === $ result ? 0 : 1 ; } } // Displays a table. $ io -> table ( [ "" , "Bundle" , "Asset" ] , $ rows ) ; return $ exitCode ; }
Displays the result.

@param StyleInterface $io The I/O.
@param array $results The results.
@return int Returns the exit code.
Displays the result .