1
0
mirror of synced 2024-12-13 06:46:03 +03:00

Formatting fixes.

This commit is contained in:
Jonathan.Wage 2007-12-19 23:35:18 +00:00
parent 2e16d60601
commit 7b321a215d

View File

@ -58,12 +58,12 @@ class Doctrine_Template_Listener_Timestampable extends Doctrine_Record_Listener
*/
public function preInsert(Doctrine_Event $event)
{
if(!$this->_options['created']['disabled']) {
if( ! $this->_options['created']['disabled']) {
$createdName = $this->_options['created']['name'];
$event->getInvoker()->$createdName = $this->getTimestamp('created');
}
if(!$this->_options['updated']['disabled']) {
if( ! $this->_options['updated']['disabled']) {
$updatedName = $this->_options['updated']['name'];
$event->getInvoker()->$updatedName = $this->getTimestamp('updated');
}
@ -77,7 +77,7 @@ class Doctrine_Template_Listener_Timestampable extends Doctrine_Record_Listener
*/
public function preUpdate(Doctrine_Event $event)
{
if(!$this->_options['updated']['disabled']) {
if( ! $this->_options['updated']['disabled']) {
$updatedName = $this->_options['updated']['name'];
$event->getInvoker()->$updatedName = $this->getTimestamp('updated');
}