Skip to content

Commit

Permalink
Consolidate unset()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 28, 2012
1 parent 4607d78 commit cad7ac9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions App/Config/app.php
Expand Up @@ -112,7 +112,7 @@
if (!class_exists('App\Controller\AppController')) {
$loader = new \Cake\Core\ClassLoader($namespace, dirname(APP));
$loader->register();
unset($loader, $namespace);
unset($loader);
}

/**
Expand All @@ -129,10 +129,11 @@
if (isset($httpHost)) {
define('FULL_BASE_URL', 'http' . $s . '://' . $httpHost);
}
unset($httpHost, $s);

/**
* Configure the mbstring extension to use the correct encoding.
*/
$encoding = Configure::read('App.encoding');
mb_internal_encoding($encoding);

unset($httpHost, $s, $namespace, $encoding);

0 comments on commit cad7ac9

Please sign in to comment.