Formatting fixes.
This commit is contained in:
parent
2e16d60601
commit
7b321a215d
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user