@@ -101,8 +101,8 @@ function GenerateMatrix(
101
101
) {
102
102
$result = ProcessImport $config.matrixParameters $selectFromMatrixType $nonSparseParameters $config.displayNamesLookup
103
103
104
- $matrixParameters = $result.Matrix
105
- $importedMatrix = $result.ImportedMatrix
104
+ $matrixParameters = $result.Matrix
105
+ $importedMatrix = $result.ImportedMatrix
106
106
$combinedDisplayNameLookup = $result.DisplayNamesLookup
107
107
108
108
if ($selectFromMatrixType -eq " sparse" ) {
@@ -148,7 +148,7 @@ function ProcessNonSparseParameters(
148
148
$nonSparse = [MatrixParameter []]@ ()
149
149
150
150
foreach ($param in $parameters ) {
151
- if ($null -eq $param ){
151
+ if ($null -eq $param ) {
152
152
continue
153
153
}
154
154
if ($param.Name -in $nonSparseParameters ) {
@@ -430,9 +430,9 @@ function ProcessImport([MatrixParameter[]]$matrix, [String]$selection, [Array]$n
430
430
}
431
431
if ((! $matrix -and ! $importPath ) -or ! $importPath ) {
432
432
return [PSCustomObject ]@ {
433
- Matrix = $matrix
434
- ImportedMatrix = @ ()
435
- DisplayNamesLookup = $displayNamesLookup
433
+ Matrix = $matrix
434
+ ImportedMatrix = @ ()
435
+ DisplayNamesLookup = $displayNamesLookup
436
436
}
437
437
}
438
438
@@ -456,9 +456,9 @@ function ProcessImport([MatrixParameter[]]$matrix, [String]$selection, [Array]$n
456
456
}
457
457
458
458
return [PSCustomObject ]@ {
459
- Matrix = $matrix ?? @ ()
460
- ImportedMatrix = $importedMatrix
461
- DisplayNamesLookup = $combinedDisplayNameLookup
459
+ Matrix = $matrix ?? @ ()
460
+ ImportedMatrix = $importedMatrix
461
+ DisplayNamesLookup = $combinedDisplayNameLookup
462
462
}
463
463
}
464
464
@@ -643,7 +643,7 @@ function InitializeMatrix {
643
643
function GetMatrixDimensions ([MatrixParameter []]$parameters ) {
644
644
$dimensions = @ ()
645
645
foreach ($param in $parameters ) {
646
- if ($null -eq $param ){
646
+ if ($null -eq $param ) {
647
647
continue
648
648
}
649
649
$dimensions += $param.Length ()
@@ -760,12 +760,12 @@ function Get4dMatrixIndex([int]$index, [Array]$dimensions) {
760
760
761
761
function GenerateMatrixForConfig {
762
762
param (
763
- [Parameter (Mandatory = $true )][string ] $ConfigPath ,
764
- [Parameter (Mandatory = $true )][string ] $Selection ,
765
- [Parameter (Mandatory = $false )][string ] $DisplayNameFilter ,
766
- [Parameter (Mandatory = $false )][array ] $Filters ,
767
- [Parameter (Mandatory = $false )][array ] $Replace ,
768
- [Parameter (Mandatory = $false )][Array ] $NonSparseParameters = @ ()
763
+ [Parameter (Mandatory = $true )][string ] $ConfigPath ,
764
+ [Parameter (Mandatory = $true )][string ] $Selection ,
765
+ [Parameter (Mandatory = $false )][string ] $DisplayNameFilter ,
766
+ [Parameter (Mandatory = $false )][array ] $Filters ,
767
+ [Parameter (Mandatory = $false )][array ] $Replace ,
768
+ [Parameter (Mandatory = $false )][Array ] $NonSparseParameters = @ ()
769
769
)
770
770
$matrixFile = Join-Path $PSScriptRoot " .." " .." " .." " .." $ConfigPath
771
771
@@ -776,12 +776,12 @@ function GenerateMatrixForConfig {
776
776
$Filters = $Filters | Where-Object { $_ }
777
777
778
778
[array ]$matrix = GenerateMatrix `
779
- - config $config `
780
- - selectFromMatrixType $Selection `
781
- - displayNameFilter $DisplayNameFilter `
782
- - filters $Filters `
783
- -replace $Replace `
784
- - nonSparseParameters $NonSparseParameters
779
+ - config $config `
780
+ - selectFromMatrixType $Selection `
781
+ - displayNameFilter $DisplayNameFilter `
782
+ - filters $Filters `
783
+ -replace $Replace `
784
+ - nonSparseParameters $NonSparseParameters
785
785
786
786
return , $matrix
787
787
}
0 commit comments