Skip to content

Commit

Permalink
getting sloppy as I get older, fixing code sniffer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
phpnut committed Dec 29, 2015
1 parent 6ee6210 commit e7a313e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Session/DatabaseSession.php
Expand Up @@ -92,7 +92,7 @@ public function read($id) {
'conditions' => array($this->_model->alias . '.' . $this->_model->primaryKey => $id)
));

if(empty($row[$this->_model->alias])){
if (empty($row[$this->_model->alias])) {
return '';
}

Expand Down
Expand Up @@ -201,7 +201,7 @@ public function testSessionReadWrite() {
$this->assertTrue($Session->write('Test', $array));
$this->assertEquals($Session->read('Test'), $array);
$Session->delete('Test');

$this->assertTrue($Session->write(array('Test' => 'some value')));
$this->assertEquals('some value', $Session->read('Test'));
$Session->delete('Test');
Expand Down

0 comments on commit e7a313e

Please sign in to comment.