Code Duplication    Length = 3-3 lines in 2 locations

apps/workflowengine/lib/Manager.php 2 locations

@@ 180-182 (lines=3) @@
177
	 */
178
	public function addOperation($class, $name, array $checks, $operation) {
179
		$checkIds = [];
180
		foreach ($checks as $check) {
181
			$checkIds[] = $this->addCheck($check['class'], $check['operator'], $check['value']);
182
		}
183
184
		$query = $this->connection->getQueryBuilder();
185
		$query->insert('flow_operations')
@@ 208-210 (lines=3) @@
205
	 */
206
	public function updateOperation($id, $name, array $checks, $operation) {
207
		$checkIds = [];
208
		foreach ($checks as $check) {
209
			$checkIds[] = $this->addCheck($check['class'], $check['operator'], $check['value']);
210
		}
211
212
		$query = $this->connection->getQueryBuilder();
213
		$query->update('flow_operations')