Update pwsh style to latest community standards #52

Merged
OCram85 merged 19 commits from rework2022 into master 2022-06-28 08:56:33 +02:00
5 changed files with 5 additions and 5 deletions
Showing only changes of commit a3e68a17dd - Show all commits

View File

@ -20,7 +20,7 @@ function Test-CSCertificate {
#> #>
[CmdletBinding()] [CmdletBinding()]
[OutputType([boolean])] [OutputType([bool])]
param( param(
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()] [ValidateNotNullOrEmpty()]

View File

@ -37,7 +37,7 @@ function Test-CredentialStoreItem {
} }
#> #>
[CmdletBinding(DefaultParameterSetName = 'Private')] [CmdletBinding(DefaultParameterSetName = 'Private')]
[OutputType([boolean])] [OutputType([bool])]
param ( param (
[Parameter(Mandatory = $false, ParameterSetName = 'Shared')] [Parameter(Mandatory = $false, ParameterSetName = 'Shared')]
[string]$Path = "{0}\PSCredentialStore\CredentialStore.json" -f $env:ProgramData, [string]$Path = "{0}\PSCredentialStore\CredentialStore.json" -f $env:ProgramData,

View File

@ -40,7 +40,7 @@ function Resolve-Dependency {
} }
#> #>
[OutputType([boolean])] [OutputType([bool])]
[CmdletBinding()] [CmdletBinding()]
param ( param (
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]

View File

@ -26,7 +26,7 @@ function Test-CSPfxCertificate {
#> #>
[CmdletBinding()] [CmdletBinding()]
[OutputType([boolean])] [OutputType([bool])]
param( param(
[Parameter(Mandatory = $true, ValueFromPipeline = $true)] [Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[ValidateNotNullOrEmpty()] [ValidateNotNullOrEmpty()]

View File

@ -19,7 +19,7 @@ function Test-CredentialStore {
#> #>
[CmdletBinding(DefaultParameterSetName = 'Private')] [CmdletBinding(DefaultParameterSetName = 'Private')]
[OutputBinding([boolean])] [OutputBinding([bool])]
param ( param (
[Parameter(Mandatory = $false, ParameterSetName = 'Shared')] [Parameter(Mandatory = $false, ParameterSetName = 'Shared')]
[string]$Path, [string]$Path,