Code Duplication    Length = 8-8 lines in 2 locations

apps/workflowengine/lib/Check/FileMimeType.php 1 location

@@ 77-84 (lines=8) @@
74
	/**
75
	 * @return bool
76
	 */
77
	protected function isWebDAVRequest() {
78
		return substr($this->request->getScriptName(), 0 - strlen('/remote.php')) === '/remote.php' && (
79
			$this->request->getPathInfo() === '/webdav' ||
80
			strpos($this->request->getPathInfo(), '/webdav/') === 0 ||
81
			$this->request->getPathInfo() === '/dav/files' ||
82
			strpos($this->request->getPathInfo(), '/dav/files/') === 0
83
		);
84
	}
85
}
86

apps/workflowengine/lib/Check/RequestURL.php 1 location

@@ 84-91 (lines=8) @@
81
	/**
82
	 * @return bool
83
	 */
84
	protected function isWebDAVRequest() {
85
		return substr($this->request->getScriptName(), 0 - strlen('/remote.php')) === '/remote.php' && (
86
			$this->request->getPathInfo() === '/webdav' ||
87
			strpos($this->request->getPathInfo(), '/webdav/') === 0 ||
88
			$this->request->getPathInfo() === '/dav/files' ||
89
			strpos($this->request->getPathInfo(), '/dav/files/') === 0
90
		);
91
	}
92
}
93