Code Duplication    Length = 2-3 lines in 2 locations

apps/dav/lib/DAV/Sharing/Plugin.php 1 location

@@ 122-123 (lines=2) @@
119
120
		// Only handling xml
121
		$contentType = $request->getHeader('Content-Type');
122
		if (strpos($contentType, 'application/xml') === false && strpos($contentType, 'text/xml') === false)
123
			return;
124
125
		// Making sure the node exists
126
		try {

apps/dav/lib/CalDAV/Publishing/PublishPlugin.php 1 location

@@ 144-146 (lines=3) @@
141
142
		// Only handling xml
143
		$contentType = $request->getHeader('Content-Type');
144
		if (strpos($contentType, 'application/xml') === false && strpos($contentType, 'text/xml') === false) {
145
			return;
146
		}
147
148
		// Making sure the node exists
149
		try {