Permalink
Browse files

Merge pull request #1329 from piotr-cz/JHttp-JSession_codestyle

JSession: Removed duplicated code, code style
  • Loading branch information...
2 parents e4bda8f + 575ab0e commit b697d695e93c840c16d7a4b9a7d50f9ed1bce4d7 @realityking realityking committed Jun 30, 2012
Showing with 3 additions and 13 deletions.
  1. +3 −13 libraries/joomla/session/session.php
@@ -368,12 +368,6 @@ public static function getStores()
continue;
}
- // If the class doesn't exist we have nothing left to do but look at the next type. We did our best.
- if (!class_exists($class))
- {
- continue;
- }
-
// Sweet! Our class exists, so now we just need to know if it passes its test method.
// @deprecated 12.3 Stop checking with test()
if ($class::isSupported() || $class::test())
@@ -408,11 +402,7 @@ public function isActive()
public function isNew()
{
$counter = $this->get('session.counter');
- if ($counter === 1)
- {
- return true;
- }
- return false;
+ return (bool) ($counter === 1);
}
/**
@@ -551,8 +541,8 @@ public function clear($name, $namespace = 'default')
}
/**
- * Start a session.
- *
+ * Start a session.
+ *
* @return boolean true on success
*
* @since 12.2

0 comments on commit b697d69

Please sign in to comment.