Skip to content

Commit a6eb8e1

Browse files
committed
use __DIR__
1 parent a776995 commit a6eb8e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Redisent/RedisentCluster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @package Redisent
88
*/
99

10-
require_once dirname(__FILE__) . '/Redisent.php';
10+
require_once __DIR__ . '/Redisent.php';
1111

1212
/**
1313
* A generalized Redisent interface for a cluster of Redis servers

lib/Resque/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Third- party apps may have already loaded Resident from elsewhere
33
// so lets be careful.
44
if(!class_exists('Redisent', false)) {
5-
require_once dirname(__FILE__) . '/../Redisent/Redisent.php';
5+
require_once __DIR__ . '/../Redisent/Redisent.php';
66
}
77

88
/**

lib/Resque/RedisCluster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Third- party apps may have already loaded Resident from elsewhere
33
// so lets be careful.
44
if(!class_exists('RedisentCluster', false)) {
5-
require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php';
5+
require_once __DIR__ . '/../Redisent/RedisentCluster.php';
66
}
77

88
/**

0 commit comments

Comments
 (0)