Skip to content

Commit 68155c9

Browse files
committed
Formatting edits
1 parent 2ca3db3 commit 68155c9

9 files changed

+40
-50
lines changed

ServiceNow/Public/Get-ServiceNowChangeRequest.ps1

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Get-ServiceNowChangeRequest {
1616
[int]$Limit = 10,
1717

1818
# Fields to return
19-
[parameter(mandatory = $false)]
19+
[Parameter(Mandatory = $false)]
2020
[string[]]$Fields,
2121

2222
# Hashtable containing machine field names and values returned must match exactly (will be combined with AND)
@@ -60,18 +60,16 @@ function Get-ServiceNowChangeRequest {
6060
$getServiceNowTableSplat = @{
6161
Table = 'change_request'
6262
Query = $Query
63-
Limit = $
63+
Limit = $Limit
6464
Fields = $Fields
6565
DisplayValues = $DisplayValues
6666
}
6767

6868
# Update the Table Splat if the parameters have values
69-
if ($null -ne $PSBoundParameters.Connection)
70-
{
69+
if ($null -ne $PSBoundParameters.Connection) {
7170
$getServiceNowTableSplat.Add('Connection',$Connection)
7271
}
73-
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL)
74-
{
72+
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL) {
7573
$getServiceNowTableSplat.Add('ServiceNowCredential',$ServiceNowCredential)
7674
$getServiceNowTableSplat.Add('ServiceNowURL',$ServiceNowURL)
7775
}

ServiceNow/Public/Get-ServiceNowConfigurationItem.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Get-ServiceNowConfigurationItem {
1616
[int]$Limit = 10,
1717

1818
# Fields to return
19-
[parameter(mandatory = $false)]
19+
[Parameter(Mandatory = $false)]
2020
[string[]]$Fields,
2121

2222
# Hashtable containing machine field names and values returned must match exactly (will be combined with AND)
@@ -66,12 +66,10 @@ function Get-ServiceNowConfigurationItem {
6666
}
6767

6868
# Update the Table Splat if the parameters have values
69-
if ($null -ne $PSBoundParameters.Connection)
70-
{
69+
if ($null -ne $PSBoundParameters.Connection) {
7170
$getServiceNowTableSplat.Add('Connection',$Connection)
7271
}
73-
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL)
74-
{
72+
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL) {
7573
$getServiceNowTableSplat.Add('ServiceNowCredential',$ServiceNowCredential)
7674
$getServiceNowTableSplat.Add('ServiceNowURL',$ServiceNowURL)
7775
}

ServiceNow/Public/Get-ServiceNowIncident.ps1

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Get-ServiceNowIncident{
1616
[int]$Limit = 10,
1717

1818
# Fields to return
19-
[parameter(mandatory = $false)]
19+
[Parameter(Mandatory = $false)]
2020
[string[]]$Fields,
2121

2222
# Hashtable containing machine field names and values returned must match exactly (will be combined with AND)
@@ -58,20 +58,18 @@ function Get-ServiceNowIncident{
5858

5959
# Table Splat
6060
$getServiceNowTableSplat = @{
61-
Table = 'incident'
62-
Query = $Query
63-
Limit = $Limit
61+
Table = 'incident'
62+
Query = $Query
63+
Limit = $Limit
6464
Fields = $Fields
6565
DisplayValues = $DisplayValues
6666
}
6767

6868
# Update the splat if the parameters have values
69-
if ($null -ne $PSBoundParameters.Connection)
70-
{
69+
if ($null -ne $PSBoundParameters.Connection) {
7170
$getServiceNowTableSplat.Add('Connection',$Connection)
7271
}
73-
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL)
74-
{
72+
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL) {
7573
$getServiceNowTableSplat.Add('ServiceNowCredential',$ServiceNowCredential)
7674
$getServiceNowTableSplat.Add('ServiceNowURL',$ServiceNowURL)
7775
}

ServiceNow/Public/Get-ServiceNowRequest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Get-ServiceNowRequest {
1616
[int]$Limit = 10,
1717

1818
# Fields to return
19-
[parameter(mandatory = $false)]
19+
[Parameter(Mandatory = $false)]
2020
[string[]]$Fields,
2121

2222
# Hashtable containing machine field names and values returned must match exactly (will be combined with AND)

ServiceNow/Public/Get-ServiceNowRequestItem.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Get-ServiceNowRequestItem {
3232
[int]$Limit = 10,
3333

3434
# Fields to return
35-
[parameter(mandatory = $false)]
35+
[Parameter(Mandatory = $false)]
3636
[string[]]$Fields,
3737

3838
# Hashtable containing machine field names and values returned must match exactly (will be combined with AND)

ServiceNow/Public/Get-ServiceNowTable.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Get-ServiceNowTable {
3030
[int]$Limit = 10,
3131

3232
# Fields to return
33-
[parameter(mandatory = $false)]
33+
[Parameter(Mandatory = $false)]
3434
[string[]]$Fields,
3535

3636
# Whether or not to show human readable display values instead of machine values

ServiceNow/Public/Get-ServiceNowTableEntry.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function Get-ServiceNowTableEntry {
3939
[int]$Limit = 10,
4040

4141
# Fields to return
42-
[parameter(mandatory = $false)]
42+
[Parameter(Mandatory = $false)]
4343
[string[]]$Fields,
4444

4545
# Hashtable containing machine field names and values returned must match exactly (will be combined with AND)

ServiceNow/Public/Get-ServiceNowUser.ps1

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,31 +49,29 @@ function Get-ServiceNowUser{
4949

5050
# Query Splat
5151
$newServiceNowQuerySplat = @{
52-
OrderBy = $OrderBy
52+
OrderBy = $OrderBy
5353
OrderDirection = $OrderDirection
54-
MatchExact = $MatchExact
55-
MatchContains = $MatchContains
54+
MatchExact = $MatchExact
55+
MatchContains = $MatchContains
5656
}
5757
$Query = New-ServiceNowQuery @newServiceNowQuerySplat
5858

5959
# Table Splat
6060
$getServiceNowTableSplat = @{
61-
Table = 'sys_user'
62-
Query = $Query
63-
Limit = $Limit
64-
Fields = $Fields
61+
Table = 'sys_user'
62+
Query = $Query
63+
Limit = $Limit
64+
Fields = $Fields
6565
DisplayValues = $DisplayValues
6666
}
6767

6868
# Update the splat if the parameters have values
69-
if ($null -ne $PSBoundParameters.Connection)
70-
{
69+
if ($null -ne $PSBoundParameters.Connection) {
7170
$getServiceNowTableSplat.Add('Connection',$Connection)
7271
}
73-
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL)
74-
{
75-
$getServiceNowTableSplat.Add('ServiceNowCredential',$ServiceNowCredential)
76-
$getServiceNowTableSplat.Add('ServiceNowURL',$ServiceNowURL)
72+
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL) {
73+
$getServiceNowTableSplat.Add('ServiceNowCredential', $ServiceNowCredential)
74+
$getServiceNowTableSplat.Add('ServiceNowURL', $ServiceNowURL)
7775
}
7876

7977
# Perform query and return each object in the format.ps1xml format

ServiceNow/Public/Get-ServiceNowUserGroup.ps1

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Get-ServiceNowUserGroup{
1616
[int]$Limit = 10,
1717

1818
# Fields to return
19-
[parameter(mandatory = $false)]
19+
[Parameter(Mandatory = $false)]
2020
[string[]]$Fields,
2121

2222
# Hashtable containing machine field names and values returned must match exactly (will be combined with AND)
@@ -49,31 +49,29 @@ function Get-ServiceNowUserGroup{
4949

5050
# Query Splat
5151
$newServiceNowQuerySplat = @{
52-
OrderBy = $OrderBy
52+
OrderBy = $OrderBy
5353
OrderDirection = $OrderDirection
54-
MatchExact = $MatchExact
55-
MatchContains = $MatchContains
54+
MatchExact = $MatchExact
55+
MatchContains = $MatchContains
5656
}
5757
$Query = New-ServiceNowQuery @newServiceNowQuerySplat
5858

5959
# Table Splat
6060
$getServiceNowTableSplat = @{
61-
Table = 'sys_user_group'
62-
Query = $Query
63-
Limit = $Limit
64-
Fields = $Fields
61+
Table = 'sys_user_group'
62+
Query = $Query
63+
Limit = $Limit
64+
Fields = $Fields
6565
DisplayValues = $DisplayValues
6666
}
6767

6868
# Update the splat if the parameters have values
69-
if ($null -ne $PSBoundParameters.Connection)
70-
{
69+
if ($null -ne $PSBoundParameters.Connection) {
7170
$getServiceNowTableSplat.Add('Connection',$Connection)
7271
}
73-
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL)
74-
{
75-
$getServiceNowTableSplat.Add('ServiceNowCredential',$ServiceNowCredential)
76-
$getServiceNowTableSplat.Add('ServiceNowURL',$ServiceNowURL)
72+
elseif ($null -ne $PSBoundParameters.ServiceNowCredential -and $null -ne $PSBoundParameters.ServiceNowURL) {
73+
$getServiceNowTableSplat.Add('ServiceNowCredential', $ServiceNowCredential)
74+
$getServiceNowTableSplat.Add('ServiceNowURL', $ServiceNowURL)
7775
}
7876

7977
# Perform query and return each object in the format.ps1xml format

0 commit comments

Comments
 (0)