Code Duplication    Length = 3-3 lines in 2 locations

apps/workflowengine/lib/Manager.php 2 locations

@@ 183-185 (lines=3) @@
180
		$this->validateOperation($class, $name, $checks, $operation);
181
182
		$checkIds = [];
183
		foreach ($checks as $check) {
184
			$checkIds[] = $this->addCheck($check['class'], $check['operator'], $check['value']);
185
		}
186
187
		$query = $this->connection->getQueryBuilder();
188
		$query->insert('flow_operations')
@@ 214-216 (lines=3) @@
211
		$this->validateOperation($row['class'], $name, $checks, $operation);
212
213
		$checkIds = [];
214
		foreach ($checks as $check) {
215
			$checkIds[] = $this->addCheck($check['class'], $check['operator'], $check['value']);
216
		}
217
218
		$query = $this->connection->getQueryBuilder();
219
		$query->update('flow_operations')