closesTask()) { return isset($task['is_active']) && (int) $task['is_active'] === 0; } return $this->taskMetadataModel->get((int) $task['id'], self::DONE_KEY, '') === 'on'; } /** * Should toggling Done also close (and reopen) the task? Global setting, default off. * * @return bool */ public function closesTask() { return (int) $this->configModel->get(self::CLOSES_KEY, 0) === 1; } }