Skip to content

Commit

Permalink
fixed psr2 style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Simonas Šerlinskas committed Oct 4, 2016
1 parent b93540d commit 06ea2e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Event/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ final class Events
const POST_UPDATE = 'ongr.settings.post_update';
const PRE_DELETE = 'ongr.settings.pre_delete';
const POST_DELETE = 'ongr.settings.post_delete';
}
}
2 changes: 1 addition & 1 deletion Event/SettingActionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ public function setSetting($setting)
{
$this->setting = $setting;
}
}
}
1 change: 0 additions & 1 deletion Service/SettingsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ public function update($name, $data = [])
public function delete($name)
{
if ($this->has($name)) {

$this->eventDispatcher->dispatch(Events::PRE_UPDATE, new SettingActionEvent($name, [], null));

$setting = $this->get($name);
Expand Down
8 changes: 7 additions & 1 deletion Tests/Unit/Service/SettingsManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ public function setUp()
->disableOriginalConstructor()
->setMethods(
[
'findOneBy', 'remove', 'createSearch', 'findDocuments', 'getClassName', 'getManager', 'getAggregation'
'findOneBy',
'remove',
'createSearch',
'findDocuments',
'getClassName',
'getManager',
'getAggregation',
]
)
->getMock();
Expand Down

0 comments on commit 06ea2e5

Please sign in to comment.