Skip to content

Commit 2dd5686

Browse files
committed
Removed unused actions
1 parent 90d1ce6 commit 2dd5686

File tree

7 files changed

+20
-75
lines changed

7 files changed

+20
-75
lines changed

.github/workflows/infection.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/phpunit.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/vendor/
1+
/vendor
2+
.php-cs-fixer.cache
3+
/bin

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
}
3636
},
3737
"require-dev": {
38-
"rector/rector": "^0.15.21"
38+
"rector/rector": "^0.15.0"
3939
}
4040
}

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ActionRuntimeInterface.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\Runtime\Action;
46

@@ -13,5 +15,5 @@ public function execute(
1315
ActionInterface $action,
1416
RejectionInterface $rejection,
1517
StateInterface $state
16-
): ActionRuntimeInterface;
18+
): self;
1719
}

src/Console.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\Runtime\Action;
46

57
use Kiboko\Component\State;
6-
use Kiboko\Contract\Action\ActionState;
78
use Kiboko\Contract\Action\ActionInterface;
9+
use Kiboko\Contract\Action\ActionState;
810
use Kiboko\Contract\Action\ExecutingActionInterface;
911
use Kiboko\Contract\Action\RejectionInterface;
1012
use Kiboko\Contract\Action\StateInterface;
@@ -32,7 +34,8 @@ public function execute(
3234
$this->state
3335
->addMetric('read', $state->observeAccept())
3436
->addMetric('error', fn () => 0)
35-
->addMetric('rejected', $state->observeReject());
37+
->addMetric('rejected', $state->observeReject())
38+
;
3639

3740
return $this;
3841
}

0 commit comments

Comments
 (0)