spelling: locals in src/System.Management.Automation/namespaces

This commit is contained in:
Josh Soref 2016-09-01 16:03:02 +00:00
parent c75e01a02f
commit fbec6eca5a
2 changed files with 13 additions and 13 deletions

View file

@ -1233,7 +1233,7 @@ namespace Microsoft.PowerShell.Commands
if (fspDynamicParam != null) if (fspDynamicParam != null)
{ {
evaluator = fspDynamicParam.Attributes; evaluator = fspDynamicParam.Attributes;
switchEvaluator = FormatAttributeSwitchParamters(); switchEvaluator = FormatAttributeSwitchParameters();
} }
bool filterHidden = false; // "Hidden" is specified somewhere in the expression bool filterHidden = false; // "Hidden" is specified somewhere in the expression
@ -1525,7 +1525,7 @@ namespace Microsoft.PowerShell.Commands
if (fspDynamicParam != null) if (fspDynamicParam != null)
{ {
evaluator = fspDynamicParam.Attributes; evaluator = fspDynamicParam.Attributes;
switchEvaluator = FormatAttributeSwitchParamters(); switchEvaluator = FormatAttributeSwitchParameters();
} }
bool attributeFilter = true; bool attributeFilter = true;
@ -1632,7 +1632,7 @@ namespace Microsoft.PowerShell.Commands
if (fspDynamicParam != null) if (fspDynamicParam != null)
{ {
evaluator = fspDynamicParam.Attributes; evaluator = fspDynamicParam.Attributes;
switchEvaluator = FormatAttributeSwitchParamters(); switchEvaluator = FormatAttributeSwitchParameters();
} }
// Write out the items // Write out the items
@ -1766,7 +1766,7 @@ namespace Microsoft.PowerShell.Commands
/// Otherwise, /// Otherwise,
/// returns NULL /// returns NULL
/// </returns> /// </returns>
private FlagsExpression<FileAttributes> FormatAttributeSwitchParamters() private FlagsExpression<FileAttributes> FormatAttributeSwitchParameters()
{ {
FlagsExpression<FileAttributes> switchParamEvaluator = null; FlagsExpression<FileAttributes> switchParamEvaluator = null;
StringBuilder sb = new StringBuilder(); 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 the items see if we need to check the age of the file...
if (result && itemExistsDynamicParameters != null) if (result && itemExistsDynamicParameters != null)
{ {
DateTime lastWrtiteTime = File.GetLastWriteTime(path); DateTime lastWriteTime = File.GetLastWriteTime(path);
if (itemExistsDynamicParameters.OlderThan.HasValue) if (itemExistsDynamicParameters.OlderThan.HasValue)
{ {
result = lastWrtiteTime < itemExistsDynamicParameters.OlderThan.Value; result = lastWriteTime < itemExistsDynamicParameters.OlderThan.Value;
} }
if (itemExistsDynamicParameters.NewerThan.HasValue) 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; ps.Runspace = fromSession.Runspace;
InitilizeFunctionPSCopyFileFromRemoteSession(ps); InitializeFunctionPSCopyFileFromRemoteSession(ps);
try try
{ {
@ -3571,7 +3571,7 @@ namespace Microsoft.PowerShell.Commands
{ {
bool isContainer = IsItemContainer(path); bool isContainer = IsItemContainer(path);
InitilizeFunctionsPSCopyFileToRemoteSession(ps); InitializeFunctionsPSCopyFileToRemoteSession(ps);
try try
{ {
@ -3998,7 +3998,7 @@ namespace Microsoft.PowerShell.Commands
return streams; 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; } if ((ps == null) || !ValidRemoteSessionForScripting(ps.Runspace)) { return; }
@ -4299,7 +4299,7 @@ namespace Microsoft.PowerShell.Commands
return success; 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; } if ((ps == null) || !ValidRemoteSessionForScripting(ps.Runspace)) { return; }

View file

@ -768,7 +768,7 @@ namespace Microsoft.PowerShell.Commands.Internal
if (ret == 0 && !result.IsInvalid) if (ret == 0 && !result.IsInvalid)
{ {
TransactedRegistryKey key = new TransactedRegistryKey(result, writable, false, Transaction.Current, safeTransactionHandle); TransactedRegistryKey key = new TransactedRegistryKey(result, writable, false, Transaction.Current, safeTransactionHandle);
key._checkMode = GetSubKeyPermissonCheck(writable); key._checkMode = GetSubKeyPermissionCheck(writable);
key._keyName = _keyName + "\\" + name; key._keyName = _keyName + "\\" + name;
return key; return key;
} }
@ -1986,7 +1986,7 @@ namespace Microsoft.PowerShell.Commands.Internal
// Suppressed to be consistent with naming in Microsoft.Win32.RegistryKey // Suppressed to be consistent with naming in Microsoft.Win32.RegistryKey
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")] [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
private RegistryKeyPermissionCheck GetSubKeyPermissonCheck(bool subkeyWritable) private RegistryKeyPermissionCheck GetSubKeyPermissionCheck(bool subkeyWritable)
{ {
if (_checkMode == RegistryKeyPermissionCheck.Default) if (_checkMode == RegistryKeyPermissionCheck.Default)
{ {