@@ -138,7 +138,7 @@ |
||
| 138 | 138 | */ |
| 139 | 139 | public function setJobs(ArrayCollection $jobs): Workflow |
| 140 | 140 | { |
| 141 | - $this->jobs = $jobs->filter(function (Job $job) { |
|
| 141 | + $this->jobs = $jobs->filter(function(Job $job) { |
|
| 142 | 142 | return true; |
| 143 | 143 | }); |
| 144 | 144 | return $this; |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function setTasks(ArrayCollection $tasks): Job |
| 37 | 37 | { |
| 38 | - $this->tasks = $tasks->filter(function (Task $task) { |
|
| 38 | + $this->tasks = $tasks->filter(function(Task $task) { |
|
| 39 | 39 | return true; |
| 40 | 40 | }); |
| 41 | 41 | return $this; |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function setTaskInstances(ArrayCollection $taskInstances): JobInstance |
| 37 | 37 | { |
| 38 | - $this->taskInstances = $taskInstances->filter(function (TaskInstance $taskInstance) { |
|
| 38 | + $this->taskInstances = $taskInstances->filter(function(TaskInstance $taskInstance) { |
|
| 39 | 39 | return true; |
| 40 | 40 | }); |
| 41 | 41 | return $this; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $workflows = parent::parseResponse($responseLine, $responseData); |
| 47 | 47 | |
| 48 | 48 | $name = $this->name; |
| 49 | - $matchingWorkflows = $workflows->filter(function (Workflow $workflow) use ($name) { |
|
| 49 | + $matchingWorkflows = $workflows->filter(function(Workflow $workflow) use ($name) { |
|
| 50 | 50 | return $workflow->getName() === $name; |
| 51 | 51 | }); |
| 52 | 52 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $tubes = parent::parseResponse($responseLine, $responseData); |
| 47 | 47 | |
| 48 | 48 | $name = $this->name; |
| 49 | - $matchingTubes = $tubes->filter(function (Tube $tube) use ($name) { |
|
| 49 | + $matchingTubes = $tubes->filter(function(Tube $tube) use ($name) { |
|
| 50 | 50 | return $tube->getName() === $name; |
| 51 | 51 | }); |
| 52 | 52 | |
@@ -288,7 +288,7 @@ |
||
| 288 | 288 | public function findWorkflow(Workflow $workflow) |
| 289 | 289 | { |
| 290 | 290 | $workflows = $this->_dispatch(new Command\ListWorkflowsCommand()); |
| 291 | - return $workflows->filter(function (Workflow $listedWorkflow) use ($workflow) { |
|
| 291 | + return $workflows->filter(function(Workflow $listedWorkflow) use ($workflow) { |
|
| 292 | 292 | return $listedWorkflow->getName() === $workflow->getName() |
| 293 | 293 | && $listedWorkflow->getGroup() === $workflow->getGroup(); |
| 294 | 294 | })->first(); |