From b2dfcf38355de05cd6b40de61878a6cc7e8b014b Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 30 Aug 2016 02:48:16 +0000 Subject: [PATCH] spelling: locals in src/Microsoft.PowerShell.Commands.Utility --- .../commands/utility/CSVCommands.cs | 2 +- .../commands/utility/DebugRunspaceCommand.cs | 6 +++--- .../FormatAndOutput/out-printer/PrinterLineOutput.cs | 6 +++--- .../utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs | 4 ++-- .../commands/utility/select-object.cs | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs index cc7e0d219..377607e97 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs @@ -214,7 +214,7 @@ namespace Microsoft.PowerShell.Commands /// [Parameter] public SwitchParameter Append { get; set; } - private bool _isActuallyAppending; // true if Append=true AND the file written was not empty (or nonexistant) when the cmdlet was invoked + private bool _isActuallyAppending; // true if Append=true AND the file written was not empty (or nonexistent) when the cmdlet was invoked #endregion diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs index 18a4c3a73..d87c9029d 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs @@ -45,7 +45,7 @@ namespace Microsoft.PowerShell.Commands // Debugging to persist until Ctrl+C or Debugger 'Exit' stops cmdlet. private bool _debugging; private ManualResetEventSlim _newRunningScriptEvent = new ManualResetEventSlim(true); - private RunspaceAvailability _previousRunspaceAvailablity = RunspaceAvailability.None; + private RunspaceAvailability _previousRunspaceAvailability = RunspaceAvailability.None; #endregion @@ -409,8 +409,8 @@ namespace Microsoft.PowerShell.Commands } } - RunspaceAvailability prevAvailability = _previousRunspaceAvailablity; - _previousRunspaceAvailablity = e.RunspaceAvailability; + RunspaceAvailability prevAvailability = _previousRunspaceAvailability; + _previousRunspaceAvailability = e.RunspaceAvailability; if ((e.RunspaceAvailability == RunspaceAvailability.Available) || (e.RunspaceAvailability == RunspaceAvailability.None)) { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs index 15ea11247..a37177768 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs @@ -225,7 +225,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format // Use the MarginBounds on the event to do this float linesPerPage = ev.MarginBounds.Height / _printFont.GetHeight(ev.Graphics); - if (!_printingInitalized) + if (!_printingInitialized) { // on the first page we have to initialize the metrics for LineOutput @@ -234,7 +234,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format float w = ev.Graphics.MeasureString(s, _printFont).Width / s.Length; float columnsPerPage = ev.MarginBounds.Width / w; - _printingInitalized = true; + _printingInitialized = true; _deviceRows = (int)linesPerPage; _deviceColumns = (int)columnsPerPage; @@ -268,7 +268,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format /// /// flag for one time initialization of the interface (columns, etc.) /// - private bool _printingInitalized = false; + private bool _printingInitialized = false; /// /// callback to ask the outputter to playback its cache diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs index e148ea23b..0d7761772 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs @@ -55,7 +55,7 @@ namespace Microsoft.PowerShell.Commands request.Headers.Clear(); foreach (string key in WebSession.Headers.Keys) { - bool setHeaderViaProperty = TryMapHeaaderToProperty(webRequest, key); + bool setHeaderViaProperty = TryMapHeaderToProperty(webRequest, key); if (!setHeaderViaProperty) { @@ -150,7 +150,7 @@ namespace Microsoft.PowerShell.Commands return (request); } - private bool TryMapHeaaderToProperty(HttpWebRequest webRequest, string key) + private bool TryMapHeaderToProperty(HttpWebRequest webRequest, string key) { bool setHeaderViaProperty = false; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs index ff0446514..be87e1251 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs @@ -361,15 +361,15 @@ namespace Microsoft.PowerShell.Commands PSObject result = new PSObject(); if (matchedProperties.Count != 0) { - HashSet propertNames = new HashSet(StringComparer.OrdinalIgnoreCase); + HashSet propertyNames = new HashSet(StringComparer.OrdinalIgnoreCase); foreach (PSNoteProperty noteProperty in matchedProperties) { try { - if (!propertNames.Contains(noteProperty.Name)) + if (!propertyNames.Contains(noteProperty.Name)) { - propertNames.Add(noteProperty.Name); + propertyNames.Add(noteProperty.Name); result.Properties.Add(noteProperty); } else