Code Duplication    Length = 6-6 lines in 2 locations

tests/lib/files/view.php 2 locations

@@ 1999-2004 (lines=6) @@
1996
		$storage->expects($this->once())
1997
			->method($operation)
1998
			->will($this->returnCallback(
1999
				function() use ($view, $sourcePath, $targetPath, &$lockTypeSourceDuring, &$lockTypeTargetDuring){
2000
					$lockTypeSourceDuring = $this->getFileLockType($view, $sourcePath);
2001
					$lockTypeTargetDuring = $this->getFileLockType($view, $targetPath);
2002
2003
					return true;
2004
				}
2005
			));
2006
2007
		$this->connectMockHooks($operation, $view, $sourcePath, $lockTypeSourcePre, $lockTypeSourcePost);
@@ 2143-2148 (lines=6) @@
2140
		$storage2->expects($this->once())
2141
			->method($storageOperation)
2142
			->will($this->returnCallback(
2143
				function() use ($view, $sourcePath, $targetPath, &$lockTypeSourceDuring, &$lockTypeTargetDuring){
2144
					$lockTypeSourceDuring = $this->getFileLockType($view, $sourcePath);
2145
					$lockTypeTargetDuring = $this->getFileLockType($view, $targetPath);
2146
2147
					return true;
2148
				}
2149
			));
2150
2151
		$this->connectMockHooks($viewOperation, $view, $sourcePath, $lockTypeSourcePre, $lockTypeSourcePost);