diff --git a/src/EventDispatcherAwareModelInterface.php b/src/EventDispatcherAwareModelInterface.php index 68a72a0..3735cfe 100644 --- a/src/EventDispatcherAwareModelInterface.php +++ b/src/EventDispatcherAwareModelInterface.php @@ -7,10 +7,10 @@ interface EventDispatcherAwareModelInterface /** * @param EventDispatcherInterface $eventDispatcher */ - static public function setEventDispatcher(EventDispatcherInterface $eventDispatcher); + public static function setEventDispatcher(EventDispatcherInterface $eventDispatcher); /** * @return EventDispatcherInterface */ - static public function getEventDispatcher(); + public static function getEventDispatcher(); } diff --git a/src/EventDispatcherObjectBuilderModifier.php b/src/EventDispatcherObjectBuilderModifier.php index 805ad6a..e47c0dd 100644 --- a/src/EventDispatcherObjectBuilderModifier.php +++ b/src/EventDispatcherObjectBuilderModifier.php @@ -132,7 +132,7 @@ public function objectFilter(&$script) $script = preg_replace('#(implements Persistent)#', '$1, EventDispatcherAwareModelInterface', $script); // rename the dummy_construct to __construct if __construct does not exists - if(strpos($script, 'function __construct') === false) { + if (strpos($script, 'function __construct') === false) { $script = str_replace('function dummy_construct', 'function __construct', $script); } diff --git a/tests/EventDispatcherBehaviorTest.php b/tests/EventDispatcherBehaviorTest.php index c6c9683..748b2f4 100644 --- a/tests/EventDispatcherBehaviorTest.php +++ b/tests/EventDispatcherBehaviorTest.php @@ -34,7 +34,7 @@ public function setUp() EOF ); - foreach($tables as $className => $schema) { + foreach ($tables as $className => $schema) { if (!class_exists($className)) { $builder = new PropelQuickBuilder(); $config = $builder->getConfig();