getting sloppy as I get older, fixing code sniffer errors

This commit is contained in:
Larry E. Masters 2015-12-29 00:06:44 -05:00
parent 6ee621011b
commit e7a313edee
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ class DatabaseSession implements CakeSessionHandlerInterface {
'conditions' => array($this->_model->alias . '.' . $this->_model->primaryKey => $id) 'conditions' => array($this->_model->alias . '.' . $this->_model->primaryKey => $id)
)); ));
if(empty($row[$this->_model->alias])){ if (empty($row[$this->_model->alias])) {
return ''; return '';
} }

View file

@ -201,7 +201,7 @@ class SessionComponentTest extends CakeTestCase {
$this->assertTrue($Session->write('Test', $array)); $this->assertTrue($Session->write('Test', $array));
$this->assertEquals($Session->read('Test'), $array); $this->assertEquals($Session->read('Test'), $array);
$Session->delete('Test'); $Session->delete('Test');
$this->assertTrue($Session->write(array('Test' => 'some value'))); $this->assertTrue($Session->write(array('Test' => 'some value')));
$this->assertEquals('some value', $Session->read('Test')); $this->assertEquals('some value', $Session->read('Test'));
$Session->delete('Test'); $Session->delete('Test');