@@ -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 |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | protected function getStatusHandler() |
160 | 160 | { |
161 | - return function ($payload) { |
|
161 | + return function($payload) { |
|
162 | 162 | return StatusResponse::get($payload); |
163 | 163 | }; |
164 | 164 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | */ |
171 | 171 | protected function getErrorHandler() |
172 | 172 | { |
173 | - return function ($payload) { |
|
173 | + return function($payload) { |
|
174 | 174 | return new ErrorResponse($payload); |
175 | 175 | }; |
176 | 176 | } |
@@ -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 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function getErrorType() |
44 | 44 | { |
45 | - list($errorType, ) = explode(' ', $this->getMessage(), 2); |
|
45 | + list($errorType,) = explode(' ', $this->getMessage(), 2); |
|
46 | 46 | |
47 | 47 | return $errorType; |
48 | 48 | } |
@@ -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); |