Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Aug 13, 2013
1 parent f9b3998 commit 0d76e7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/EventDispatcherAwareModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
2 changes: 1 addition & 1 deletion src/EventDispatcherObjectBuilderModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/EventDispatcherBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0d76e7b

Please sign in to comment.