Skip to content

Commit

Permalink
improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 12, 2014
1 parent a28c648 commit 12a8823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions library/PSX/Data/RecordStore/Memory.php
Expand Up @@ -44,11 +44,6 @@ public function save($key, RecordInterface $record)

public function load($key)
{
if(isset($this->protected[$key]))
{
return $this->protected[$key];
}

return null;
return isset($this->protected[$key]) ? $this->protected[$key] : null;
}
}
7 changes: 1 addition & 6 deletions library/PSX/Data/RecordStore/Session.php
Expand Up @@ -42,11 +42,6 @@ public function save($key, RecordInterface $record)

public function load($key)
{
if(isset($_SESSION[$key]))
{
return $_SESSION[$key];
}

return null;
return isset($_SESSION[$key]) ? $_SESSION[$key] : null;
}
}

0 comments on commit 12a8823

Please sign in to comment.