@@ -27,20 +27,17 @@ |
||
27 | 27 | if (is_string($token)) |
28 | 28 | { |
29 | 29 | $new_source .= $token; |
30 | - } |
|
31 | - elseif ($token[0] === T_EXIT) |
|
30 | + } elseif ($token[0] === T_EXIT) |
|
32 | 31 | { |
33 | 32 | if ($tokens[$i+1] === ';') |
34 | 33 | { |
35 | 34 | $new_source .= 'exit__()'; |
36 | - } |
|
37 | - else |
|
35 | + } else |
|
38 | 36 | { |
39 | 37 | $new_source .= 'exit__'; |
40 | 38 | } |
41 | 39 | $patched = true; |
42 | - } |
|
43 | - else |
|
40 | + } else |
|
44 | 41 | { |
45 | 42 | $new_source .= $token[1]; |
46 | 43 | } |
@@ -13,8 +13,7 @@ |
||
13 | 13 | if (class_exists('PhpParser\Node\Identifier')) { |
14 | 14 | // PHP-Parser 4.x |
15 | 15 | require __DIR__ . '/4.x/MonkeyPatchManager.php'; |
16 | - } |
|
17 | - elseif (method_exists('PhpParser\Node\Name','set')) { |
|
16 | + } elseif (method_exists('PhpParser\Node\Name','set')) { |
|
18 | 17 | // PHP-Parser 2.x |
19 | 18 | require __DIR__ . '/2.x/MonkeyPatchManager.php'; |
20 | 19 | } else { |
@@ -80,8 +80,7 @@ discard block |
||
80 | 80 | if (version_compare(PHP_VERSION, '5.3', '>=')) |
81 | 81 | { |
82 | 82 | error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED); |
83 | - } |
|
84 | - else |
|
83 | + } else |
|
85 | 84 | { |
86 | 85 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); |
87 | 86 | } |
@@ -204,8 +203,7 @@ discard block |
||
204 | 203 | if (($_temp = realpath($system_path)) !== FALSE) |
205 | 204 | { |
206 | 205 | $system_path = $_temp.DIRECTORY_SEPARATOR; |
207 | - } |
|
208 | - else |
|
206 | + } else |
|
209 | 207 | { |
210 | 208 | // Ensure there's a trailing slash |
211 | 209 | $system_path = strtr( |
@@ -249,8 +247,7 @@ discard block |
||
249 | 247 | if (($_temp = realpath($application_folder)) !== FALSE) |
250 | 248 | { |
251 | 249 | $application_folder = $_temp; |
252 | - } |
|
253 | - else |
|
250 | + } else |
|
254 | 251 | { |
255 | 252 | $application_folder = strtr( |
256 | 253 | rtrim($application_folder, '/\\'), |
@@ -258,16 +255,14 @@ discard block |
||
258 | 255 | DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR |
259 | 256 | ); |
260 | 257 | } |
261 | - } |
|
262 | - elseif (is_dir(BASEPATH.$application_folder.DIRECTORY_SEPARATOR)) |
|
258 | + } elseif (is_dir(BASEPATH.$application_folder.DIRECTORY_SEPARATOR)) |
|
263 | 259 | { |
264 | 260 | $application_folder = BASEPATH.strtr( |
265 | 261 | trim($application_folder, '/\\'), |
266 | 262 | '/\\', |
267 | 263 | DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR |
268 | 264 | ); |
269 | - } |
|
270 | - else |
|
265 | + } else |
|
271 | 266 | { |
272 | 267 | header('HTTP/1.1 503 Service Unavailable.', TRUE, 503); |
273 | 268 | echo 'Your application folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF; |
@@ -280,14 +275,12 @@ discard block |
||
280 | 275 | if ( ! isset($view_folder[0]) && is_dir(APPPATH.'views'.DIRECTORY_SEPARATOR)) |
281 | 276 | { |
282 | 277 | $view_folder = APPPATH.'views'; |
283 | - } |
|
284 | - elseif (is_dir($view_folder)) |
|
278 | + } elseif (is_dir($view_folder)) |
|
285 | 279 | { |
286 | 280 | if (($_temp = realpath($view_folder)) !== FALSE) |
287 | 281 | { |
288 | 282 | $view_folder = $_temp; |
289 | - } |
|
290 | - else |
|
283 | + } else |
|
291 | 284 | { |
292 | 285 | $view_folder = strtr( |
293 | 286 | rtrim($view_folder, '/\\'), |
@@ -295,16 +288,14 @@ discard block |
||
295 | 288 | DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR |
296 | 289 | ); |
297 | 290 | } |
298 | - } |
|
299 | - elseif (is_dir(APPPATH.$view_folder.DIRECTORY_SEPARATOR)) |
|
291 | + } elseif (is_dir(APPPATH.$view_folder.DIRECTORY_SEPARATOR)) |
|
300 | 292 | { |
301 | 293 | $view_folder = APPPATH.strtr( |
302 | 294 | trim($view_folder, '/\\'), |
303 | 295 | '/\\', |
304 | 296 | DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR |
305 | 297 | ); |
306 | - } |
|
307 | - else |
|
298 | + } else |
|
308 | 299 | { |
309 | 300 | header('HTTP/1.1 503 Service Unavailable.', TRUE, 503); |
310 | 301 | echo 'Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF; |
@@ -317,8 +308,7 @@ discard block |
||
317 | 308 | if (is_file(TESTPATH . '_ci_phpunit_test' . DIRECTORY_SEPARATOR . 'CIPHPUnitTest.php')) |
318 | 309 | { |
319 | 310 | define('CI_PHPUNIT_TESTPATH', TESTPATH . '_ci_phpunit_test' . DIRECTORY_SEPARATOR); |
320 | - } |
|
321 | - else |
|
311 | + } else |
|
322 | 312 | { |
323 | 313 | // Assume Composer with a vendor directory parallel to the application directory |
324 | 314 | define('CI_PHPUNIT_TESTPATH', implode( |