Permalink
Browse files

Merge pull request #1182 from simonharrer/master

Code Cleanup
  • Loading branch information...
2 parents e5bb195 + 1ea43ea commit e27be38b83066b4dc95bba01eceaff3f36c42687 @realityking realityking committed May 3, 2012
View
1 libraries/joomla/cache/controller/callback.php
@@ -94,7 +94,6 @@ public function get($callback, $args = array(), $id = false, $wrkarounds = false
$id = $this->_makeId($callback, $args);
}
- $data = false;
$data = $this->cache->get($id);
$locktest = new stdClass;
View
3 libraries/joomla/cache/controller/page.php
@@ -49,9 +49,6 @@ class JCacheControllerPage extends JCacheController
*/
public function get($id = false, $group = 'page', $wrkarounds = true)
{
- // Initialise variables.
- $data = false;
-
// If an id is not given, generate it from the request
if ($id == false)
{
View
1 libraries/joomla/cache/controller/view.php
@@ -38,7 +38,6 @@ public function get(&$view, $method, $id = false, $wrkarounds = true)
$id = $this->_makeId($view, $method);
}
- $data = false;
$data = $this->cache->get($id);
$locktest = new stdClass;
View
1 libraries/joomla/cache/storage/cachelite.php
@@ -92,7 +92,6 @@ protected function initCache($cloptions)
*/
public function get($id, $group, $checkTime = true)
{
- $data = false;
self::$CacheLiteInstance->setOption('cacheDir', $this->_root . '/' . $group . '/');
$this->_getCacheId($id, $group);
$data = self::$CacheLiteInstance->get($this->rawname, $group);
View
2 libraries/joomla/installer/adapters/component.php
@@ -1299,8 +1299,6 @@ protected function _buildAdminMenus()
$this->parent->pushStep(array('type' => 'menu', 'id' => $component_id));
}
- $parent_id = $table->id;
-
/*
* Process SubMenus
*/
View
3 libraries/joomla/installer/adapters/package.php
@@ -301,8 +301,6 @@ public function install()
if ($this->get('manifest_script'))
{
// First, we have to create a folder for the script if one isn't present
- $created = false;
-
if (!file_exists($this->parent->getPath('extension_root')))
{
JFolder::create($this->parent->getPath('extension_root'));
@@ -511,7 +509,6 @@ public function uninstall($id)
protected function _getExtensionID($type, $id, $client, $group)
{
$db = $this->parent->getDbo();
- $result = $id;
$query = $db->getQuery(true);
$query->select('extension_id');
View
2 libraries/joomla/installer/installer.php
@@ -875,8 +875,6 @@ public function parseSQLFiles($element)
}
// Get the name of the sql file to process
- $sqlfile = '';
-
foreach ($element->children() as $file)
{
$fCharset = (strtolower($file->attributes()->charset) == 'utf8') ? 'utf8' : '';
View
2 libraries/joomla/updater/adapters/collection.php
@@ -182,7 +182,7 @@ public function _startElement($parser, $name, $attrs = array())
*/
protected function _endElement($parser, $name)
{
- $lastcell = array_pop($this->stack);
+ array_pop($this->stack);
switch ($name)
{
case 'CATEGORY':

0 comments on commit e27be38

Please sign in to comment.