private function printBeforeAfterTasks(array $tasks, $applicationName, $task, $step, &$output)
    {
        $label = $applicationName === '_' ? 'for all applications' : 'for application ' . $applicationName;
        if (isset($tasks[$step][$applicationName][$task])) {
            // 'Task "' . $beforeTask . '" before "' . $task
            foreach ($tasks[$step][$applicationName][$task] as $beforeAfterTask) {
                $output .= '          <success>Task ' . $beforeAfterTask . ' ' . $step . ' ' . $task . '</success> <info>(' . $label . ')</info>' . PHP_EOL;
            }
        }
    }
private function printBeforeAfterTasks(array $tasks, $applicationName, $task, $step, &$output)
    {
        $label = $applicationName === '_' ? 'for all applications' : 'for application ' . $applicationName;
        if (isset($tasks[$step][$applicationName][$task])) {
            // 'Task "' . $beforeTask . '" before "' . $task
            foreach ($tasks[$step][$applicationName][$task] as $beforeAfterTask) {
                $output .= '          <success>Task ' . $beforeAfterTask . ' ' . $step . ' ' . $task . '</success> <info>(' . $label . ')</info>' . PHP_EOL;
            }
        }
    }
private function printBeforeAfterTasks ( array $ tasks , $ applicationName , $ task , $ step , & $ output ) { $ label = $ applicationName === '_' ? 'for all applications' : 'for application ' . $ applicationName ; if ( isset ( $ tasks [ $ step ] [ $ applicationName ] [ $ task ] ) ) { // 'Task "' . $beforeTask . '" before "' . $task foreach ( $ tasks [ $ step ] [ $ applicationName ] [ $ task ] as $ beforeAfterTask ) { $ output .= '          <success>Task ' . $ beforeAfterTask . ' ' . $ step . ' ' . $ task . '</success> <info>(' . $ label . ')</info>' . PHP_EOL ; } } }
Print all tasks before or after a task

@param array $tasks
@param string $applicationName
@param string $task
@param string $step
@param string $output
Print all tasks before or after a task