View/Helper/TaskHelper.php
protected function _formatWaiting(array $tasks, $plain) {
		$dependsOnTaskFormatted = array();
		foreach ($tasks as $task) {
			if (!in_array((int)$task['status'], array(TaskType::DEFFERED, TaskType::RUNNING, TaskType::STOPPING, TaskType::UNSTARTED))) {
				continue;
			}
			$dependsOnTaskFormatted[] = $plain ? $task['id'] : $this->id($task);
		}
		return $dependsOnTaskFormatted;
	}
protected function _formatWaiting(array $tasks, $plain) {
		$dependsOnTaskFormatted = array();
		foreach ($tasks as $task) {
			if (!in_array((int)$task['status'], array(TaskType::DEFFERED, TaskType::RUNNING, TaskType::STOPPING, TaskType::UNSTARTED))) {
				continue;
			}
			$dependsOnTaskFormatted[] = $plain ? $task['id'] : $this->id($task);
		}
		return $dependsOnTaskFormatted;
	}
protected function _formatWaiting ( array $ tasks , $ plain ) { $ dependsOnTaskFormatted = array ( ) ; foreach ( $ tasks as $ task ) { if ( ! in_array ( ( int ) $ task [ 'status' ] , array ( TaskType :: DEFFERED , TaskType :: RUNNING , TaskType :: STOPPING , TaskType :: UNSTARTED ) ) ) { continue ; } $ dependsOnTaskFormatted [ ] = $ plain ? $ task [ 'id' ] : $ this -> id ( $ task ) ; } return $ dependsOnTaskFormatted ; }
Waiting tasks formatter

@param array $tasks
@param bool $plain
@return array
Waiting tasks formatter