includes/phing/src/Tasks/PhingHelpTask.php
protected function printBuildTargets($targets, $buildFile, $buildList)
    {
        $output = new ConsoleOutput();
        $table  = new Table($output);
        $table->setHeaders(
            array(
                array(
                    'Target name',
                    'Visibility',
                    'Description',
                ),
            ),
            array(
                new TableCell(
                    $buildList[$buildFile]['name'],
                    array('colspan' => 3)
                )
            )
        );

        foreach ($targets as $file => $target) {
            $hiddenTargets = [
              'deprecated',
            ];
            if (!in_array($buildList[$file]['name'], $hiddenTargets)) {

                // Clean up target list.
                foreach ($target as $key => $value) {
                  if ($value['visibility'] == 'hidden') {
                    unset($target[$key]);
                  }
                }

                if (count($target) > 0) {
                  $table->addRows($target);
                }
            }
        }

        $table->render();

    }
protected function printBuildTargets($targets, $buildFile, $buildList)
    {
        $output = new ConsoleOutput();
        $table  = new Table($output);
        $table->setHeaders(
            array(
                array(
                    'Target name',
                    'Visibility',
                    'Description',
                ),
            ),
            array(
                new TableCell(
                    $buildList[$buildFile]['name'],
                    array('colspan' => 3)
                )
            )
        );

        foreach ($targets as $file => $target) {
            $hiddenTargets = [
              'deprecated',
            ];
            if (!in_array($buildList[$file]['name'], $hiddenTargets)) {

                // Clean up target list.
                foreach ($target as $key => $value) {
                  if ($value['visibility'] == 'hidden') {
                    unset($target[$key]);
                  }
                }

                if (count($target) > 0) {
                  $table->addRows($target);
                }
            }
        }

        $table->render();

    }
protected function printBuildTargets ( $ targets , $ buildFile , $ buildList ) { $ output = new ConsoleOutput ( ) ; $ table = new Table ( $ output ) ; $ table -> setHeaders ( array ( array ( 'Target name' , 'Visibility' , 'Description' , ) , ) , array ( new TableCell ( $ buildList [ $ buildFile ] [ 'name' ] , array ( 'colspan' => 3 ) ) ) ) ; foreach ( $ targets as $ file => $ target ) { $ hiddenTargets = [ 'deprecated' , ] ; if ( ! in_array ( $ buildList [ $ file ] [ 'name' ] , $ hiddenTargets ) ) { // Clean up target list. foreach ( $ target as $ key => $ value ) { if ( $ value [ 'visibility' ] == 'hidden' ) { unset ( $ target [ $ key ] ) ; } } if ( count ( $ target ) > 0 ) { $ table -> addRows ( $ target ) ; } } } $ table -> render ( ) ; }
Print Build Targets

@param array $targets   Targets
@param array $buildFile Build file name
@param array $buildList Build list

@return void
Print Build Targets