From fbec6eca5a31a5bc4002d2290ff5304a7c2ecec1 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 1 Sep 2016 16:03:02 +0000 Subject: [PATCH] spelling: locals in src/System.Management.Automation/namespaces --- .../namespaces/FileSystemProvider.cs | 22 +++++++++---------- .../namespaces/TransactedRegistryKey.cs | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/System.Management.Automation/namespaces/FileSystemProvider.cs b/src/System.Management.Automation/namespaces/FileSystemProvider.cs index d8f140845..eb1e8b9d6 100644 --- a/src/System.Management.Automation/namespaces/FileSystemProvider.cs +++ b/src/System.Management.Automation/namespaces/FileSystemProvider.cs @@ -1233,7 +1233,7 @@ namespace Microsoft.PowerShell.Commands if (fspDynamicParam != null) { evaluator = fspDynamicParam.Attributes; - switchEvaluator = FormatAttributeSwitchParamters(); + switchEvaluator = FormatAttributeSwitchParameters(); } bool filterHidden = false; // "Hidden" is specified somewhere in the expression @@ -1525,7 +1525,7 @@ namespace Microsoft.PowerShell.Commands if (fspDynamicParam != null) { evaluator = fspDynamicParam.Attributes; - switchEvaluator = FormatAttributeSwitchParamters(); + switchEvaluator = FormatAttributeSwitchParameters(); } bool attributeFilter = true; @@ -1632,7 +1632,7 @@ namespace Microsoft.PowerShell.Commands if (fspDynamicParam != null) { evaluator = fspDynamicParam.Attributes; - switchEvaluator = FormatAttributeSwitchParamters(); + switchEvaluator = FormatAttributeSwitchParameters(); } // Write out the items @@ -1766,7 +1766,7 @@ namespace Microsoft.PowerShell.Commands /// Otherwise, /// returns NULL /// - private FlagsExpression FormatAttributeSwitchParamters() + private FlagsExpression FormatAttributeSwitchParameters() { FlagsExpression switchParamEvaluator = null; StringBuilder sb = new StringBuilder(); @@ -3219,15 +3219,15 @@ namespace Microsoft.PowerShell.Commands // If the items see if we need to check the age of the file... if (result && itemExistsDynamicParameters != null) { - DateTime lastWrtiteTime = File.GetLastWriteTime(path); + DateTime lastWriteTime = File.GetLastWriteTime(path); if (itemExistsDynamicParameters.OlderThan.HasValue) { - result = lastWrtiteTime < itemExistsDynamicParameters.OlderThan.Value; + result = lastWriteTime < itemExistsDynamicParameters.OlderThan.Value; } if (itemExistsDynamicParameters.NewerThan.HasValue) { - result = lastWrtiteTime > itemExistsDynamicParameters.NewerThan.Value; + result = lastWriteTime > itemExistsDynamicParameters.NewerThan.Value; } } } @@ -3492,7 +3492,7 @@ namespace Microsoft.PowerShell.Commands { ps.Runspace = fromSession.Runspace; - InitilizeFunctionPSCopyFileFromRemoteSession(ps); + InitializeFunctionPSCopyFileFromRemoteSession(ps); try { @@ -3571,7 +3571,7 @@ namespace Microsoft.PowerShell.Commands { bool isContainer = IsItemContainer(path); - InitilizeFunctionsPSCopyFileToRemoteSession(ps); + InitializeFunctionsPSCopyFileToRemoteSession(ps); try { @@ -3998,7 +3998,7 @@ namespace Microsoft.PowerShell.Commands return streams; } - private void InitilizeFunctionPSCopyFileFromRemoteSession(System.Management.Automation.PowerShell ps) + private void InitializeFunctionPSCopyFileFromRemoteSession(System.Management.Automation.PowerShell ps) { if ((ps == null) || !ValidRemoteSessionForScripting(ps.Runspace)) { return; } @@ -4299,7 +4299,7 @@ namespace Microsoft.PowerShell.Commands return success; } - private void InitilizeFunctionsPSCopyFileToRemoteSession(System.Management.Automation.PowerShell ps) + private void InitializeFunctionsPSCopyFileToRemoteSession(System.Management.Automation.PowerShell ps) { if ((ps == null) || !ValidRemoteSessionForScripting(ps.Runspace)) { return; } diff --git a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs index eaefe4f5e..e67f6d557 100644 --- a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs +++ b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs @@ -768,7 +768,7 @@ namespace Microsoft.PowerShell.Commands.Internal if (ret == 0 && !result.IsInvalid) { TransactedRegistryKey key = new TransactedRegistryKey(result, writable, false, Transaction.Current, safeTransactionHandle); - key._checkMode = GetSubKeyPermissonCheck(writable); + key._checkMode = GetSubKeyPermissionCheck(writable); key._keyName = _keyName + "\\" + name; return key; } @@ -1986,7 +1986,7 @@ namespace Microsoft.PowerShell.Commands.Internal // Suppressed to be consistent with naming in Microsoft.Win32.RegistryKey [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")] - private RegistryKeyPermissionCheck GetSubKeyPermissonCheck(bool subkeyWritable) + private RegistryKeyPermissionCheck GetSubKeyPermissionCheck(bool subkeyWritable) { if (_checkMode == RegistryKeyPermissionCheck.Default) {