@@ 82-90 (lines=9) @@ | ||
79 | if ($tokens === false) { |
|
80 | return false; |
|
81 | ||
82 | } elseif ($tokenCount === 1) { |
|
83 | // We got what we came for, or did we? |
|
84 | if (isset($tokens[0])) { |
|
85 | $functionDefinitionList->add($this->getDefinitionFromTokens($tokens[0], $getRecursive)); |
|
86 | } |
|
87 | ||
88 | return $functionDefinitionList; |
|
89 | ||
90 | } elseif ($tokenCount > 1) { |
|
91 | // We are still here, but got a function name to look for |
|
92 | foreach ($tokens as $token) { |
|
93 | try { |
|
@@ 124-130 (lines=7) @@ | ||
121 | if ($tokens === false) { |
|
122 | return false; |
|
123 | ||
124 | } elseif ($tokenCount === 1) { |
|
125 | // We got what we came for, or did we? |
|
126 | if (isset($tokens[0])) { |
|
127 | return $this->getDefinitionFromTokens($tokens[0], $getRecursive); |
|
128 | } |
|
129 | ||
130 | } elseif ($tokenCount > 1) { |
|
131 | // We are still here, but got a function name to look for |
|
132 | foreach ($tokens as $token) { |
|
133 | // Now iterate over the array and search for the class we want |