@@ 106-116 (lines=11) @@ | ||
103 | return null; |
|
104 | } |
|
105 | ||
106 | public function getExtendPostition(TokenCollection $tokens) |
|
107 | { |
|
108 | $len = sizeof($tokens); |
|
109 | for($i = 0; $i < $len; $i++) { |
|
110 | $token = $tokens[$i]; |
|
111 | if ($token->getValue() === 'extends') { |
|
112 | return $i; |
|
113 | } |
|
114 | } |
|
115 | return null; |
|
116 | } |
|
117 | public function getClassNamePosition(TokenCollection $tokens) |
|
118 | { |
|
119 | $len = sizeof($tokens); |
|
@@ 117-127 (lines=11) @@ | ||
114 | } |
|
115 | return null; |
|
116 | } |
|
117 | public function getClassNamePosition(TokenCollection $tokens) |
|
118 | { |
|
119 | $len = sizeof($tokens); |
|
120 | for($i = 0; $i < $len; $i++) { |
|
121 | $token = $tokens[$i]; |
|
122 | if ($token->getValue() === 'class') { |
|
123 | return $i; |
|
124 | } |
|
125 | } |
|
126 | return null; |
|
127 | } |
|
128 | }; |