Commit 7b321a21 authored by Jonathan.Wage's avatar Jonathan.Wage

Formatting fixes.

parent 2e16d606
......@@ -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');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment