aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 16:26:31 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 16:26:31 +0200
commit9a2902553495baa6fb1515176a8bbaab5633fb58 (patch)
treef795d5a7053ee1ed69c989946cc9136cd5917550 /lib/private/Repair
parent652ab6da3f5309b0ea6e1e19ce4d915ecb6cc9b1 (diff)
downloadnextcloud-server-9a2902553495baa6fb1515176a8bbaab5633fb58.tar.gz
nextcloud-server-9a2902553495baa6fb1515176a8bbaab5633fb58.zip
Parameter of RepairAdvanceEvent is actually an increment, not a step id
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/Events/RepairAdvanceEvent.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/private/Repair/Events/RepairAdvanceEvent.php b/lib/private/Repair/Events/RepairAdvanceEvent.php
index 7602127cf41..174d4ec48cd 100644
--- a/lib/private/Repair/Events/RepairAdvanceEvent.php
+++ b/lib/private/Repair/Events/RepairAdvanceEvent.php
@@ -27,20 +27,19 @@ namespace OC\Repair\Events;
use OCP\EventDispatcher\Event;
class RepairAdvanceEvent extends Event {
- // TODO Is that current step or step increment?
- private int $current;
+ private int $increment;
private string $description;
public function __construct(
- int $current,
+ int $increment,
string $description
) {
- $this->current = $current;
+ $this->increment = $increment;
$this->description = $description;
}
- public function getCurrentStep(): int {
- return $this->current;
+ public function getIncrement(): int {
+ return $this->increment;
}
public function getDescription(): string {