Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Aug 22, 2019
1 parent e648416 commit 2e32a6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Types/ContextFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ private function createFromReflectionClass(ReflectionClass $class) : Context
/**
* Build a Context for a namespace in the provided file contents.
*
* @param string $namespace It does not matter if a `\` precedes the namespace name,
* this method first normalizes.
* @param string $fileContents The file's contents to retrieve the aliases from with the given namespace.
* @see Context for more information on Contexts.
*
* @param string $namespace It does not matter if a `\` precedes the namespace name,
* this method first normalizes.
* @param string $fileContents The file's contents to retrieve the aliases from with the given namespace.
*/
public function createForNamespace(string $namespace, string $fileContents) : Context
{
Expand Down Expand Up @@ -260,8 +260,8 @@ private function extractUseStatements(ArrayIterator $tokens) : array
switch ($tokenId) {
case T_STRING:
case T_NS_SEPARATOR:
$currentNs .= $tokenValue;
$currentAlias = $tokenValue;
$currentNs .= $tokenValue;
$currentAlias = $tokenValue;
break;
case T_CURLY_OPEN:
case '{':
Expand Down Expand Up @@ -296,7 +296,7 @@ private function extractUseStatements(ArrayIterator $tokens) : array
switch ($tokenId) {
case T_STRING:
case T_NS_SEPARATOR:
$currentNs .= $tokenValue;
$currentNs .= $tokenValue;
$currentAlias = $tokenValue;
break;
case T_AS:
Expand Down

0 comments on commit 2e32a6d

Please sign in to comment.