mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Remove unused local vars
This commit is contained in:
parent
2fda9ec493
commit
320c717358
@ -498,7 +498,7 @@ class Config {
|
||||
}
|
||||
}
|
||||
|
||||
$value = $nothing = null;
|
||||
$nothing = null;
|
||||
|
||||
// Then the manifest values
|
||||
foreach($this->manifests as $manifest) {
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user