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
|
// Then the manifest values
|
||||||
foreach($this->manifests as $manifest) {
|
foreach($this->manifests as $manifest) {
|
||||||
|
@ -216,7 +216,6 @@ abstract class Object {
|
|||||||
$tokens = token_get_all("<?php $classSpec");
|
$tokens = token_get_all("<?php $classSpec");
|
||||||
$class = null;
|
$class = null;
|
||||||
$args = array();
|
$args = array();
|
||||||
$passedBracket = false;
|
|
||||||
|
|
||||||
// Keep track of the current bucket that we're putting data into
|
// Keep track of the current bucket that we're putting data into
|
||||||
$bucket = &$args;
|
$bucket = &$args;
|
||||||
|
@ -51,7 +51,6 @@ function getTempFolderUsername() {
|
|||||||
function getTempParentFolder($base = null) {
|
function getTempParentFolder($base = null) {
|
||||||
if(!$base && defined('BASE_PATH')) $base = BASE_PATH;
|
if(!$base && defined('BASE_PATH')) $base = BASE_PATH;
|
||||||
|
|
||||||
$tempPath = '';
|
|
||||||
$worked = true;
|
$worked = true;
|
||||||
|
|
||||||
// first, try finding a silverstripe-cache dir built off the base path
|
// 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) {
|
public function findTemplates($templates, $theme = null) {
|
||||||
$result = array();
|
$result = array();
|
||||||
$project = project();
|
|
||||||
|
|
||||||
foreach ((array) $templates as $template) {
|
foreach ((array) $templates as $template) {
|
||||||
$found = false;
|
|
||||||
|
|
||||||
if (strpos($template, '/')) {
|
if (strpos($template, '/')) {
|
||||||
list($type, $template) = explode('/', $template, 2);
|
list($type, $template) = explode('/', $template, 2);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user