@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | public function enableHooks() |
117 | 117 | { |
118 | 118 | $this->enableHooks = true; |
119 | - $this->hooks =& load_class('Hooks', 'core'); |
|
119 | + $this->hooks = & load_class('Hooks', 'core'); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | { |
163 | 163 | set_status_header($e->getCode()); |
164 | 164 | } |
165 | - $CI =& get_instance(); |
|
165 | + $CI = & get_instance(); |
|
166 | 166 | $CI->output->_status['redirect'] = $e->getMessage(); |
167 | 167 | } |
168 | 168 | // show_404() |
@@ -224,17 +224,17 @@ discard block |
||
224 | 224 | $this->setRawInputStream($request_params); |
225 | 225 | |
226 | 226 | // 404 checking |
227 | - if (! class_exists($class) || ! method_exists($class, $method)) |
|
227 | + if ( ! class_exists($class) || ! method_exists($class, $method)) |
|
228 | 228 | { |
229 | 229 | // If 404, CodeIgniter instance is not created yet. So create it here |
230 | 230 | // Because we need CI->output->_status to store info |
231 | - $CI =& get_instance(); |
|
231 | + $CI = & get_instance(); |
|
232 | 232 | if ($CI instanceof CIPHPUnitTestNullCodeIgniter) |
233 | 233 | { |
234 | 234 | CIPHPUnitTest::createCodeIgniterInstance(); |
235 | 235 | } |
236 | 236 | |
237 | - show_404($class.'::'.$method . '() is not found'); |
|
237 | + show_404($class.'::'.$method.'() is not found'); |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | $params = $argv; |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | { |
297 | 297 | if (is_string($string)) |
298 | 298 | { |
299 | - $INPUT =& load_class('Input', 'core'); |
|
299 | + $INPUT = & load_class('Input', 'core'); |
|
300 | 300 | CIPHPUnitTestReflection::setPrivateProperty( |
301 | 301 | $INPUT, |
302 | 302 | '_raw_input_stream', |
@@ -326,12 +326,12 @@ discard block |
||
326 | 326 | new CI(); |
327 | 327 | } |
328 | 328 | $controller = new $class; |
329 | - $CI =& get_instance(); |
|
329 | + $CI = & get_instance(); |
|
330 | 330 | |
331 | 331 | // Set CodeIgniter instance to TestCase |
332 | 332 | $this->testCase->setCI($CI); |
333 | 333 | |
334 | - if (!isset($CI->output->_status)) { // prevent overwriting, if already set in the $class::__construct() |
|
334 | + if ( ! isset($CI->output->_status)) { // prevent overwriting, if already set in the $class::__construct() |
|
335 | 335 | // Set default response code 200 |
336 | 336 | set_status_header(200); |
337 | 337 | } |
@@ -375,8 +375,8 @@ discard block |
||
375 | 375 | */ |
376 | 376 | public function getStatus() |
377 | 377 | { |
378 | - $CI =& get_instance(); |
|
379 | - if (! isset($CI->output->_status)) |
|
378 | + $CI = & get_instance(); |
|
379 | + if ( ! isset($CI->output->_status)) |
|
380 | 380 | { |
381 | 381 | throw new LogicException('Status code is not set. You must call $this->request() first'); |
382 | 382 | } |