Skip to content

Commit

Permalink
shortened if/else syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Mar 28, 2012
1 parent 2b8c2bc commit 8f11f2d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php
Expand Up @@ -33,12 +33,7 @@ abstract class HttpCache extends BaseHttpCache
*/
public function __construct(HttpKernelInterface $kernel, $cacheDir = null)
{
if ($cacheDir) {
$store = new Store($cacheDir);
} else {
$store = new Store($kernel->getCacheDir().'/http_cache');
}

$store = new Store($cacheDir ?: $kernel->getCacheDir().'/http_cache');
$esi = new Esi();

parent::__construct($kernel, $store, $esi, array_merge(array('debug' => $kernel->isDebug()), $this->getOptions()));
Expand Down

0 comments on commit 8f11f2d

Please sign in to comment.