@@ 33-35 (lines=3) @@ | ||
30 | ||
31 | $task = $this->tasks->get($name); |
|
32 | ||
33 | if ($this->hooksEnabled) { |
|
34 | $tasks = array_merge(array_map([$this, 'getTasks'], $task->getBefore()), $tasks); |
|
35 | } |
|
36 | ||
37 | if ($task instanceof GroupTask) { |
|
38 | foreach ($task->getGroup() as $taskName) { |
|
@@ 49-51 (lines=3) @@ | ||
46 | $tasks[] = $task; |
|
47 | } |
|
48 | ||
49 | if ($this->hooksEnabled) { |
|
50 | $tasks = array_merge($tasks, array_map([$this, 'getTasks'], $task->getAfter())); |
|
51 | } |
|
52 | ||
53 | return array_flatten($tasks); |
|
54 | } |