Skip to content

Commit

Permalink
Refactor key
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Mar 10, 2016
1 parent b8d3ae6 commit c45efcb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public function process(PHP_CodeSniffer_File $phpCsFile, $stackPointer) {
continue;
}

if ($methodSignatureValue['typehint']) {
$typeIndex = $methodSignatureValue['typehint'];
if ($methodSignatureValue['typehintIndex']) {
$typeIndex = $methodSignatureValue['typehintIndex'];
$type = $tokens[$typeIndex]['content'];
if (!in_array($type, $pieces) && ($type !== 'array' || !$this->containsTypeArray($pieces))) {
$pieces[] = $type;
Expand Down Expand Up @@ -165,7 +165,7 @@ protected function getMethodSignature(PHP_CodeSniffer_File $phpCsFile, $stackPtr

$arguments[] = [
'variable' => $nextVariableIndex,
'typehint' => $typehintIndex,
'typehintIndex' => $typehintIndex,
'defaultIndex' => $defaultIndex,
'default' => $default,
];
Expand Down

0 comments on commit c45efcb

Please sign in to comment.