Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into refactor_lib_private_root_classes_part_3
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed May 2, 2024
commit 98ef21f030e7663704473730933158114ffb96aa
18 changes: 9 additions & 9 deletions lib/private/Repair.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,22 @@
use Throwable;

class Repair implements IOutput {
/** @var IRepairStep[] */
private array $repairSteps = [];

private string $currentStep;

/**
* Creates a new repair step runner
*
* @param IRepairStep[] $repairSteps array of RepairStep instances
*/
public function __construct(
private array $repairSteps,
private IEventDispatcher $dispatcher,
private LoggerInterface $logger,
private LoggerInterface $logger
) {
}

/** @param IRepairStep[] $repairSteps */
public function setRepairSteps(array $repairSteps): void {
$this->repairSteps = $repairSteps;
}

/**
* Run a series of repair steps for common problems
*/
Expand Down Expand Up @@ -232,8 +234,6 @@ public static function getExpensiveRepairSteps(): array {
* @return IRepairStep[]
*/
public static function getBeforeUpgradeRepairSteps(): array {
/** @var Connection $connection */
$connection = \OC::$server->get(Connection::class);
/** @var ConnectionAdapter $connectionAdapter */
$connectionAdapter = \OC::$server->get(ConnectionAdapter::class);
$config = \OC::$server->getConfig();
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.