Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Commit af25ab6

Browse files
committed
fix geTclasses to getClasses
1 parent 0a48b2a commit af25ab6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/QafooLabs/Refactoring/Adapters/TokenReflection/StaticCodeAnalysis.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function isMethodStatic(File $file, LineRange $range)
3838
$lastLine = $range->getEnd();
3939

4040
foreach ($file->getNamespaces() as $namespace) {
41-
foreach ($namespace->geTclasses() as $class) {
41+
foreach ($namespace->getClasses() as $class) {
4242
foreach ($class->getMethods() as $method) {
4343
if ($method->getStartLine() < $lastLine && $lastLine < $method->getEndLine()) {
4444
return $method->isStatic();
@@ -57,7 +57,7 @@ public function getMethodEndLine(File $file, LineRange $range)
5757
$lastLine = $range->getEnd();
5858

5959
foreach ($file->getNamespaces() as $namespace) {
60-
foreach ($namespace->geTclasses() as $class) {
60+
foreach ($namespace->getClasses() as $class) {
6161
foreach ($class->getMethods() as $method) {
6262
if ($method->getStartLine() < $lastLine && $lastLine < $method->getEndLine()) {
6363
return $method->getEndLine();
@@ -76,7 +76,7 @@ public function getMethodStartLine(File $file, LineRange $range)
7676
$lastLine = $range->getEnd();
7777

7878
foreach ($file->getNamespaces() as $namespace) {
79-
foreach ($namespace->geTclasses() as $class) {
79+
foreach ($namespace->getClasses() as $class) {
8080
foreach ($class->getMethods() as $method) {
8181
if ($method->getStartLine() < $lastLine && $lastLine < $method->getEndLine()) {
8282
return $method->getStartLine();

0 commit comments

Comments
 (0)