@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param mixed $library Library name |
192 | 192 | * @param array $params Optional parameters to pass to the library class constructor |
193 | 193 | * @param string $object_name An optional object name to assign to |
194 | - * @return object |
|
194 | + * @return CI_Loader |
|
195 | 195 | * |
196 | 196 | * @codeCoverageIgnore |
197 | 197 | */ |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @param mixed $model Model name |
238 | 238 | * @param string $name An optional object name to assign to |
239 | 239 | * @param bool $db_conn An optional database connection configuration to initialize |
240 | - * @return object |
|
240 | + * @return CI_Loader |
|
241 | 241 | * |
242 | 242 | * modified by ci-phpunit-test |
243 | 243 | */ |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | /** |
376 | 376 | * Database Loader |
377 | 377 | * |
378 | - * @param mixed $params Database configuration options |
|
378 | + * @param string|boolean $params Database configuration options |
|
379 | 379 | * @param bool $return Whether to return the database object |
380 | 380 | * @param bool $query_builder Whether to enable Query Builder |
381 | 381 | * (overrides the configuration setting) |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | * An associative array or object containing values |
540 | 540 | * to be set, or a value's name if string |
541 | 541 | * @param string $val Value to set, only used if $vars is a string |
542 | - * @return object |
|
542 | + * @return CI_Loader |
|
543 | 543 | * |
544 | 544 | * @codeCoverageIgnore |
545 | 545 | */ |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | * Helper Loader |
614 | 614 | * |
615 | 615 | * @param string|string[] $helpers Helper name(s) |
616 | - * @return object |
|
616 | + * @return CI_Loader |
|
617 | 617 | * |
618 | 618 | * @codeCoverageIgnore |
619 | 619 | */ |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | * |
693 | 693 | * @uses CI_Loader::helper() |
694 | 694 | * @param string|string[] $helpers Helper name(s) |
695 | - * @return object |
|
695 | + * @return CI_Loader |
|
696 | 696 | * |
697 | 697 | * @codeCoverageIgnore |
698 | 698 | */ |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | * |
711 | 711 | * @param string|string[] $files List of language file names to load |
712 | 712 | * @param string Language name |
713 | - * @return object |
|
713 | + * @return CI_Loader |
|
714 | 714 | * |
715 | 715 | * @codeCoverageIgnore |
716 | 716 | */ |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | * |
811 | 811 | * @param string $path Path to add |
812 | 812 | * @param bool $view_cascade (default: TRUE) |
813 | - * @return object |
|
813 | + * @return CI_Loader |
|
814 | 814 | * |
815 | 815 | * @codeCoverageIgnore |
816 | 816 | */ |
@@ -858,7 +858,7 @@ discard block |
||
858 | 858 | * added path will be removed removed. |
859 | 859 | * |
860 | 860 | * @param string $path Path to remove |
861 | - * @return object |
|
861 | + * @return CI_Loader |
|
862 | 862 | * |
863 | 863 | * @codeCoverageIgnore |
864 | 864 | */ |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | // Load the mime types |
104 | - $mimes =& get_mimes(); |
|
104 | + $mimes = & get_mimes(); |
|
105 | 105 | |
106 | 106 | // Only change the default MIME if we can find one |
107 | 107 | if (isset($mimes[$extension])) |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | if (ENVIRONMENT === 'testing') |
148 | 148 | { |
149 | - $CI =& get_instance(); |
|
149 | + $CI = & get_instance(); |
|
150 | 150 | $CI->output->set_header('Content-Type: '.$mime); |
151 | 151 | $CI->output->set_header('Content-Disposition: attachment; filename="'.$filename.'"'); |
152 | 152 | $CI->output->set_header('Expires: 0'); |
@@ -105,7 +105,7 @@ |
||
105 | 105 | ob_end_clean(); |
106 | 106 | } |
107 | 107 | |
108 | - throw new CIPHPUnitTestRedirectException('Redirect to ' . $uri, $code); |
|
108 | + throw new CIPHPUnitTestRedirectException('Redirect to '.$uri, $code); |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | } |
@@ -139,17 +139,17 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function __construct() |
141 | 141 | { |
142 | - $this->_allow_get_array = (config_item('allow_get_array') !== FALSE); |
|
143 | - $this->_enable_xss = (config_item('global_xss_filtering') === TRUE); |
|
144 | - $this->_enable_csrf = (config_item('csrf_protection') === TRUE); |
|
145 | - $this->_standardize_newlines = (bool) config_item('standardize_newlines'); |
|
142 | + $this->_allow_get_array = (config_item('allow_get_array') !== FALSE); |
|
143 | + $this->_enable_xss = (config_item('global_xss_filtering') === TRUE); |
|
144 | + $this->_enable_csrf = (config_item('csrf_protection') === TRUE); |
|
145 | + $this->_standardize_newlines = (bool) config_item('standardize_newlines'); |
|
146 | 146 | |
147 | - $this->security =& load_class('Security', 'core'); |
|
147 | + $this->security = & load_class('Security', 'core'); |
|
148 | 148 | |
149 | 149 | // Do we need the UTF-8 class? |
150 | 150 | if (UTF8_ENABLED === TRUE) |
151 | 151 | { |
152 | - $this->uni =& load_class('Utf8', 'core'); |
|
152 | + $this->uni = & load_class('Utf8', 'core'); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | // Sanitize global arrays |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | |
430 | 430 | // Save cookie in Output object |
431 | 431 | // added by ci-phpunit-test |
432 | - $CI =& get_instance(); |
|
432 | + $CI = & get_instance(); |
|
433 | 433 | $output = $CI->output; |
434 | 434 | $output->_cookies[$prefix.$name][] = [ |
435 | 435 | 'value' => $value, |