Skip to content

Commit

Permalink
protected vis
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Apr 17, 2024
1 parent f3736a8 commit a509c43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
git fetch --depth=1 origin $GITHUB_BASE_REF
# Explicitly specify GitHub logger since our Stryker reporting will otherwise disable it.
php vendor/bin/infection --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --only-covered
php vendor/bin/infection --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --only-covered --min-covered-msi=100
- name: Run Infection for all files
if: github.event_name == 'push'
Expand Down
4 changes: 2 additions & 2 deletions src/Command/Ssh/SshKeyCommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function setSshKeyFilepath(string $privateSshKeyFilename): void {
$this->publicSshKeyFilepath = $this->privateSshKeyFilepath . '.pub';
}

public static function getIdeSshKeyLabel(string $ideLabel, string $ideUuid): string {
protected static function getIdeSshKeyLabel(string $ideLabel, string $ideUuid): string {
return self::normalizeSshKeyLabel('IDE_' . $ideLabel . '_' . $ideUuid);
}

Expand All @@ -48,7 +48,7 @@ public static function normalizeSshKeyLabel(?string $label): string|null {
throw new RuntimeException('The label cannot be empty');
}
// It may only contain letters, numbers and underscores.
return preg_replace('/[^A-Za-z0-9_]/', '', $label);
return preg_replace('/\W/', '', $label);
}

/**
Expand Down

0 comments on commit a509c43

Please sign in to comment.