diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Repair.php | 2 | ||||
-rw-r--r-- | lib/private/Repair/Events/RepairAdvanceEvent.php | 11 | ||||
-rw-r--r-- | lib/private/Updater.php | 2 |
3 files changed, 7 insertions, 8 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php index 97a72707d03..e2e5da79216 100644 --- a/lib/private/Repair.php +++ b/lib/private/Repair.php @@ -279,7 +279,7 @@ class Repair implements IOutput { } /** - * @param int $step + * @param int $step number of step to advance * @param string $description */ public function advance($step = 1, $description = '') { 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 { diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 49909fc4562..78613ddbb0c 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -460,7 +460,7 @@ class Updater extends BasicEmitter { if (empty($desc)) { $desc = ''; } - $log->info(get_class($event).': ' . $desc . ' (' . $event->getCurrentStep() . ')', ['app' => 'updater']); + $log->info(get_class($event).': ' . $desc . ' (' . $event->getIncrement() . ')', ['app' => 'updater']); } elseif ($event instanceof RepairFinishEvent) { $log->info(get_class($event), ['app' => 'updater']); } elseif ($event instanceof RepairStepEvent) { |