Skip to content

Commit

Permalink
Hey Linter! ich komme gleich mit der rute!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Dec 1, 2024
1 parent 5f234c7 commit 725a211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static function ($handle) use ($commandSimulator, $matchingCommands, $remainingC
yield $this->reopenContentStreamWithoutConstraintChecks(
$workspace->currentContentStreamId
);
match($workspace->status) {
match ($workspace->status) {
// If the workspace is up-to-date it must be a problem regarding that the order of events cannot be changed
WorkspaceStatus::UP_TO_DATE =>
throw PartialWorkspaceRebaseFailed::duringPartialPublish($commandSimulator->getConflictingEvents()),
Expand Down Expand Up @@ -636,7 +636,7 @@ static function ($handle) use ($commandsToKeep): void {
yield $this->reopenContentStreamWithoutConstraintChecks(
$workspace->currentContentStreamId
);
match($workspace->status) {
match ($workspace->status) {
// If the workspace is up-to-date it must be a problem regarding that the order of events cannot be changed
WorkspaceStatus::UP_TO_DATE =>
throw PartialWorkspaceRebaseFailed::duringPartialDiscard($commandSimulator->getConflictingEvents()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public function theLastCommandShouldHaveThrownTheWorkspaceRebaseFailedWith(strin
$exception = $this->lastCommandException;
Assert::assertNotNull($exception, 'Command did not throw exception');

match($shortExceptionName) {
match ($shortExceptionName) {
'WorkspaceRebaseFailed' => Assert::assertInstanceOf(WorkspaceRebaseFailed::class, $exception, sprintf('Actual exception: %s (%s): %s', get_class($exception), $exception->getCode(), $exception->getMessage())),
'PartialWorkspaceRebaseFailed' => Assert::assertInstanceOf(PartialWorkspaceRebaseFailed::class, $exception, sprintf('Actual exception: %s (%s): %s', get_class($exception), $exception->getCode(), $exception->getMessage())),
};
Expand Down

0 comments on commit 725a211

Please sign in to comment.