Closed
Description
Unformatted code:
$Var = 6
(Get-Date).AddDays(-6)
(Get-Date).AddDays(-$Var)
Formatted code:
$Var = 6
(Get-Date).AddDays(-6)
(Get-Date).AddDays( - $Var)
As you can see, the formatter adds spaces around a hyphen which is followed by a variable but does not add them if a hyphen is followed by a number. I think, the behavior should be consistent.