Skip to content

Commit

Permalink
Updated codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk committed Jul 2, 2021
1 parent f1eee8e commit 83cea87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/unit/Common/HelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
class HelperTest extends FrameworkTestCase
{
const MAGIC_NUMBER = 42;
protected const MAGIC_NUMBER = 42;

/**
* @var ConcreteHelpers
Expand Down
12 changes: 3 additions & 9 deletions tests/unit/EventManager/EventManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,16 @@ public function testTriggerWithTarget()
// first
$this->eventManager->attach(
'test',
function (
function ($event) {
/* @var Event */
$event
) {
return $event->getTarget() + 1;
}
);
// second
$this->eventManager->attach(
'test',
function (
function ($event) {
/* @var Event */
$event
) {
return $event->getTarget() + 1;
}
);
Expand All @@ -189,10 +185,8 @@ public function testTriggerWithParams()
{
$this->eventManager->attach(
'test',
function (
function ($event) {
/* @var Event */
$event
) {
return $event->getTarget() + $event->getParam('plus');
}
);
Expand Down

0 comments on commit 83cea87

Please sign in to comment.