Remove unused local vars

This commit is contained in:
jeroendedauw 2015-08-03 20:42:43 +02:00
parent 2fda9ec493
commit 320c717358
4 changed files with 1 additions and 6 deletions

View File

@ -498,7 +498,7 @@ class Config {
}
}
$value = $nothing = null;
$nothing = null;
// Then the manifest values
foreach($this->manifests as $manifest) {

View File

@ -216,7 +216,6 @@ abstract class Object {
$tokens = token_get_all("<?php $classSpec");
$class = null;
$args = array();
$passedBracket = false;
// Keep track of the current bucket that we're putting data into
$bucket = &$args;

View File

@ -51,7 +51,6 @@ function getTempFolderUsername() {
function getTempParentFolder($base = null) {
if(!$base && defined('BASE_PATH')) $base = BASE_PATH;
$tempPath = '';
$worked = true;
// first, try finding a silverstripe-cache dir built off the base path

View File

@ -63,11 +63,8 @@ class SS_TemplateLoader {
*/
public function findTemplates($templates, $theme = null) {
$result = array();
$project = project();
foreach ((array) $templates as $template) {
$found = false;
if (strpos($template, '/')) {
list($type, $template) = explode('/', $template, 2);
} else {