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

@@ 81-84 (lines=4) @@
78
				&& method_exists($this->getAccess($configPrefix), $method)) {
79
				$instance = $this->getAccess($configPrefix);
80
			}
81
			if($result = call_user_func_array(array($instance, $method), $parameters)) {
82
				$this->writeToCache($cacheKey, $configPrefix);
83
				return $result;
84
			}
85
		}
86
		return false;
87
	}