@@ -18,11 +18,11 @@ |
||
18 | 18 | */ |
19 | 19 | class MultiExecState |
20 | 20 | { |
21 | - const INITIALIZED = 1; // 0b00001 |
|
22 | - const INSIDEBLOCK = 2; // 0b00010 |
|
23 | - const DISCARDED = 4; // 0b00100 |
|
24 | - const CAS = 8; // 0b01000 |
|
25 | - const WATCH = 16; // 0b10000 |
|
21 | + const INITIALIZED = 1; // 0b00001 |
|
22 | + const INSIDEBLOCK = 2; // 0b00010 |
|
23 | + const DISCARDED = 4; // 0b00100 |
|
24 | + const CAS = 8; // 0b01000 |
|
25 | + const WATCH = 16; // 0b10000 |
|
26 | 26 | |
27 | 27 | private $flags; |
28 | 28 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | if (!$connection instanceof NodeConnectionInterface) { |
101 | 101 | throw new UnexpectedValueException( |
102 | - "Objects returned by connection initializers must implement ". |
|
102 | + "Objects returned by connection initializers must implement " . |
|
103 | 103 | "'Predis\Connection\NodeConnectionInterface'." |
104 | 104 | ); |
105 | 105 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function getStatusHandler() |
163 | 163 | { |
164 | - return function ($payload) { |
|
164 | + return function($payload) { |
|
165 | 165 | return StatusResponse::get($payload); |
166 | 166 | }; |
167 | 167 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | */ |
174 | 174 | protected function getErrorHandler() |
175 | 175 | { |
176 | - return function ($errorMessage) { |
|
176 | + return function($errorMessage) { |
|
177 | 177 | return new ErrorResponse($errorMessage); |
178 | 178 | }; |
179 | 179 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | private function getStatusHandler() |
135 | 135 | { |
136 | - return function ($payload) { |
|
136 | + return function($payload) { |
|
137 | 137 | return StatusResponse::get($payload); |
138 | 138 | }; |
139 | 139 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | protected function getErrorHandler() |
147 | 147 | { |
148 | - return function ($payload) { |
|
148 | + return function($payload) { |
|
149 | 149 | return new ErrorResponse($payload); |
150 | 150 | }; |
151 | 151 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function getErrorType() |
29 | 29 | { |
30 | - list($errorType, ) = explode(' ', $this->getMessage(), 2); |
|
30 | + list($errorType,) = explode(' ', $this->getMessage(), 2); |
|
31 | 31 | |
32 | 32 | return $errorType; |
33 | 33 | } |
@@ -41,10 +41,10 @@ |
||
41 | 41 | * @return mixed |
42 | 42 | */ |
43 | 43 | public function driver_set( |
44 | - $keyword, |
|
45 | - $value = '', |
|
46 | - $time = 300, |
|
47 | - $option = array() |
|
44 | + $keyword, |
|
45 | + $value = '', |
|
46 | + $time = 300, |
|
47 | + $option = array() |
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | /** |
@@ -29,10 +29,10 @@ |
||
29 | 29 | if ($language === null || !in_array($language, array('uni', 'Japanese', 'ja', 'English', 'en'), true)) { |
30 | 30 | $language = 'uni'; |
31 | 31 | } |
32 | - switch(strtoupper($encoding)) |
|
32 | + switch (strtoupper($encoding)) |
|
33 | 33 | { |
34 | 34 | case 'UTF-8': |
35 | - if(extension_loaded("mbstring")) { |
|
35 | + if (extension_loaded("mbstring")) { |
|
36 | 36 | mb_internal_encoding($encoding); |
37 | 37 | mb_http_output($encoding); |
38 | 38 | mb_http_input($encoding); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | class OpenBaseDir { |
6 | 6 | public static $stores = array(); |
7 | 7 | public static function checkBaseDir($path) { |
8 | - if(!is_null(PHP_OPEN_BASEDIR) && PHP_OPEN_BASEDIR != "") { |
|
8 | + if (!is_null(PHP_OPEN_BASEDIR) && PHP_OPEN_BASEDIR != "") { |
|
9 | 9 | /* |
10 | 10 | * ONLY check ONE time if System Have Open Base Dir |
11 | 11 | * Else, always return TRUE for system without OPenBaseDir |
@@ -8,23 +8,23 @@ |
||
8 | 8 | |
9 | 9 | use phpFastCache\CacheManager; |
10 | 10 | |
11 | - require_once __DIR__.'/../Core/DriverInterface.php'; |
|
12 | - require_once __DIR__.'/../Core/DriverAbstract.php'; |
|
13 | - require_once __DIR__.'/../Core/phpFastCache.php'; |
|
14 | - require_once __DIR__.'/../Core/phpFastCacheExtensions.php'; |
|
15 | - require_once __DIR__.'/../Exceptions/phpFastCacheCoreException.php'; |
|
16 | - require_once __DIR__.'/../Exceptions/phpFastCacheDriverException.php'; |
|
17 | - |
|
18 | - require_once __DIR__.'/../Drivers/files.php'; |
|
19 | - require_once __DIR__.'/../Drivers/memcache.php'; |
|
20 | - require_once __DIR__.'/../Drivers/memcached.php'; |
|
21 | - require_once __DIR__.'/../Drivers/mongodb.php'; |
|
22 | - require_once __DIR__.'/../Drivers/predis.php'; |
|
23 | - require_once __DIR__.'/../Drivers/redis.php'; |
|
24 | - require_once __DIR__.'/../Drivers/sqlite.php'; |
|
25 | - |
|
26 | - require_once __DIR__.'/../CacheManager.php'; |
|
27 | - require_once __DIR__.'/../phpFastCache.php'; |
|
11 | + require_once __DIR__ . '/../Core/DriverInterface.php'; |
|
12 | + require_once __DIR__ . '/../Core/DriverAbstract.php'; |
|
13 | + require_once __DIR__ . '/../Core/phpFastCache.php'; |
|
14 | + require_once __DIR__ . '/../Core/phpFastCacheExtensions.php'; |
|
15 | + require_once __DIR__ . '/../Exceptions/phpFastCacheCoreException.php'; |
|
16 | + require_once __DIR__ . '/../Exceptions/phpFastCacheDriverException.php'; |
|
17 | + |
|
18 | + require_once __DIR__ . '/../Drivers/files.php'; |
|
19 | + require_once __DIR__ . '/../Drivers/memcache.php'; |
|
20 | + require_once __DIR__ . '/../Drivers/memcached.php'; |
|
21 | + require_once __DIR__ . '/../Drivers/mongodb.php'; |
|
22 | + require_once __DIR__ . '/../Drivers/predis.php'; |
|
23 | + require_once __DIR__ . '/../Drivers/redis.php'; |
|
24 | + require_once __DIR__ . '/../Drivers/sqlite.php'; |
|
25 | + |
|
26 | + require_once __DIR__ . '/../CacheManager.php'; |
|
27 | + require_once __DIR__ . '/../phpFastCache.php'; |
|
28 | 28 | |
29 | 29 | |
30 | 30 | /** |