Code Duplication    Length = 5-5 lines in 2 locations

apps/dav/lib/Upload/AssemblyStream.php 1 location

@@ 225-229 (lines=5) @@
222
		} else {
223
			throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
224
		}
225
		if (isset($context['nodes']) and is_array($context['nodes'])) {
226
			$this->nodes = $context['nodes'];
227
		} else {
228
			throw new \BadMethodCallException('Invalid context, nodes not set');
229
		}
230
		return $context;
231
	}
232

apps/dav/lib/Upload/AssemblyStreamZsync.php 1 location

@@ 158-162 (lines=5) @@
155
		} else {
156
			throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
157
		}
158
		if (isset($context['nodes']) and is_array($context['nodes'])) {
159
			$this->nodes = $context['nodes'];
160
		} else {
161
			throw new \BadMethodCallException('Invalid context, nodes not set');
162
		}
163
		if (isset($context['backingFile'])) {
164
			$this->backingFile = $context['backingFile'];
165
		} else {