This repository was archived by the owner on Jan 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/Detector/Strategy/SuffixTree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,5 @@ abstract public function __toString(): string;
30
30
31
31
abstract public function hashCode (): int ;
32
32
33
- abstract public function equals (self $ obj ): bool ;
33
+ abstract public function equals (self $ other ): bool ;
34
34
}
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ public function hashCode(): int
40
40
return $ this ->hash ;
41
41
}
42
42
43
- public function equals (AbstractToken $ obj ): bool
43
+ public function equals (AbstractToken $ other ): bool
44
44
{
45
45
// Original code uses physical object equality, not present in PHP.
46
- return $ obj instanceof self;
46
+ return $ other instanceof self;
47
47
}
48
48
}
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ public function hashCode(): int
35
35
return crc32 ($ this ->content );
36
36
}
37
37
38
- public function equals (AbstractToken $ token ): bool
38
+ public function equals (AbstractToken $ other ): bool
39
39
{
40
- return $ token ->hashCode () === $ this ->hashCode ();
40
+ return $ other ->hashCode () === $ this ->hashCode ();
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments