@@ -117,9 +117,9 @@ private function traverseNode(Node $node, Traversal $traversal)
117117 {
118118 // Visitors have two possibilities to influence the traversal:
119119 //
120- // 1. If a visitor's enterNode () method returns false, the traversal is
120+ // 1. If a visitor's visit () method returns false, the traversal is
121121 // skipped entirely.
122- // 2. If a visitor's enterNode () method removes a group from the node,
122+ // 2. If a visitor's visit () method removes a group from the node,
123123 // that group will be skipped in the subtree of that node.
124124
125125 if (false === $ this ->visit ($ node , $ traversal ->context )) {
@@ -197,9 +197,9 @@ private function traverseClassNode(ClassNode $node, Traversal $traversal)
197197 {
198198 // Visitors have two possibilities to influence the traversal:
199199 //
200- // 1. If a visitor's enterNode () method returns false, the traversal is
200+ // 1. If a visitor's visit () method returns false, the traversal is
201201 // skipped entirely.
202- // 2. If a visitor's enterNode () method removes a group from the node,
202+ // 2. If a visitor's visit () method removes a group from the node,
203203 // that group will be skipped in the subtree of that node.
204204
205205 if (false === $ this ->visit ($ node , $ traversal ->context )) {
@@ -259,9 +259,9 @@ private function traverseCollectionNode(CollectionNode $node, Traversal $travers
259259 {
260260 // Visitors have two possibilities to influence the traversal:
261261 //
262- // 1. If a visitor's enterNode () method returns false, the traversal is
262+ // 1. If a visitor's visit () method returns false, the traversal is
263263 // skipped entirely.
264- // 2. If a visitor's enterNode () method removes a group from the node,
264+ // 2. If a visitor's visit () method removes a group from the node,
265265 // that group will be skipped in the subtree of that node.
266266
267267 if (false === $ this ->visit ($ node , $ traversal ->context )) {
0 commit comments