Code Duplication    Length = 8-8 lines in 2 locations

includes/libs/lockmanager/DBLockManager.php 1 location

@@ 100-107 (lines=8) @@
97
	 * @param array $pathsByType
98
	 * @return StatusValue
99
	 */
100
	protected function getLocksOnServer( $lockSrv, array $pathsByType ) {
101
		$status = StatusValue::newGood();
102
		foreach ( $pathsByType as $type => $paths ) {
103
			$status->merge( $this->doGetLocksOnServer( $lockSrv, $paths, $type ) );
104
		}
105
106
		return $status;
107
	}
108
109
	abstract protected function doGetLocksOnServer( $lockSrv, array $paths, $type );
110

includes/libs/lockmanager/LockManager.php 1 location

@@ 251-258 (lines=8) @@
248
	 * @return StatusValue
249
	 * @since 1.22
250
	 */
251
	protected function doUnlockByType( array $pathsByType ) {
252
		$status = StatusValue::newGood();
253
		foreach ( $pathsByType as $type => $paths ) {
254
			$status->merge( $this->doUnlock( $paths, $type ) );
255
		}
256
257
		return $status;
258
	}
259
260
	/**
261
	 * Unlock resources with the given keys and lock type