Code Duplication    Length = 8-9 lines in 2 locations

includes/filebackend/lockmanager/MemcLockManager.php 1 location

@@ 114-122 (lines=9) @@
111
	}
112
113
	// @todo Change this code to work in one batch
114
	protected function freeLocksOnServer( $lockSrv, array $pathsByType ) {
115
		$status = Status::newGood();
116
117
		foreach ( $pathsByType as $type => $paths ) {
118
			$status->merge( $this->doFreeLocksOnServer( $lockSrv, $paths, $type ) );
119
		}
120
121
		return $status;
122
	}
123
124
	/**
125
	 * @see QuorumLockManager::getLocksOnServer()

includes/filebackend/lockmanager/DBLockManager.php 1 location

@@ 106-113 (lines=8) @@
103
	}
104
105
	// @todo change this code to work in one batch
106
	protected function getLocksOnServer( $lockSrv, array $pathsByType ) {
107
		$status = Status::newGood();
108
		foreach ( $pathsByType as $type => $paths ) {
109
			$status->merge( $this->doGetLocksOnServer( $lockSrv, $paths, $type ) );
110
		}
111
112
		return $status;
113
	}
114
115
	abstract protected function doGetLocksOnServer( $lockSrv, array $paths, $type );
116