Code Duplication    Length = 4-4 lines in 2 locations

apps/user_ldap/lib/Group_Proxy.php 1 location

@@ 58-61 (lines=4) @@
55
	protected function walkBackends($gid, $method, $parameters) {
56
		$cacheKey = $this->getGroupCacheKey($gid);
57
		foreach($this->backends as $configPrefix => $backend) {
58
			if($result = call_user_func_array(array($backend, $method), $parameters)) {
59
				$this->writeToCache($cacheKey, $configPrefix);
60
				return $result;
61
			}
62
		}
63
		return false;
64
	}

apps/user_ldap/lib/User_Proxy.php 1 location

@@ 69-72 (lines=4) @@
66
				&& method_exists($this->getAccess($configPrefix), $method)) {
67
				$instance = $this->getAccess($configPrefix);
68
			}
69
			if($result = call_user_func_array(array($instance, $method), $parameters)) {
70
				$this->writeToCache($cacheKey, $configPrefix);
71
				return $result;
72
			}
73
		}
74
		return false;
75
	}