fix some method names (camelcase) in Probe.php and Lock.php

This commit is contained in:
rabuzarus 2017-08-02 13:09:42 +02:00
parent e38340dc5f
commit 28eb5d57a7
2 changed files with 22 additions and 23 deletions

View file

@ -19,7 +19,7 @@ use dbm;
class Lock {
private static $semaphore = array();
/**
/**
* @brief Check for memcache and open a connection if configured
*
* @return object|boolean The memcache object - or "false" if not successful
@ -52,7 +52,7 @@ class Lock {
*
* @return ressource the semaphore key
*/
private static function semaphore_key($fn_name) {
private static function semaphoreKey($fn_name) {
$temp = get_temppath();
$file = $temp.'/'.$fn_name.'.sem';
@ -77,7 +77,7 @@ class Lock {
$start = time();
if (function_exists('sem_get')) {
self::$semaphore[$fn_name] = sem_get(self::semaphore_key($fn_name));
self::$semaphore[$fn_name] = sem_get(self::semaphoreKey($fn_name));
if (self::$semaphore[$fn_name]) {
return sem_acquire(self::$semaphore[$fn_name], ($timeout == 0));
}