From e3d5dcf049b4e772ae05a924f4e1d045a3480006 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 6 Jun 2017 17:42:47 +0000 Subject: [PATCH] Beware of camels --- src/Util/Lock.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Util/Lock.php b/src/Util/Lock.php index ca327de1e1..26ccdc9dd2 100644 --- a/src/Util/Lock.php +++ b/src/Util/Lock.php @@ -22,7 +22,7 @@ class Lock { * * @return object|boolean The memcache object - or "false" if not successful */ - private static function connect_memcache() { + private static function connectMemcache() { if (!function_exists('memcache_connect')) { return false; } @@ -55,7 +55,7 @@ class Lock { $got_lock = false; $start = time(); - $memcache = self::connect_memcache(); + $memcache = self::connectMemcache(); if (is_object($memcache)) { $wait_sec = 0.2; $cachekey = get_app()->get_hostname().";lock:".$fn_name; @@ -126,7 +126,7 @@ class Lock { * @param string $fn_name Name of the lock */ public static function remove($fn_name) { - $memcache = self::connect_memcache(); + $memcache = self::connectMemcache(); if (is_object($memcache)) { $cachekey = get_app()->get_hostname().";lock:".$fn_name; $lock = $memcache->get($cachekey); @@ -147,7 +147,7 @@ class Lock { * @brief Removes all lock that were set by us */ public static function removeAll() { - $memcache = self::connect_memcache(); + $memcache = self::connectMemcache(); if (is_object($memcache)) { // We cannot delete all cache entries, but this doesn't matter with memcache return; -- 2.39.5