Skip to content

Commit ada15c5

Browse files
committed
Rename to British English
1 parent f853a11 commit ada15c5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Analyser/Generator/GeneratorNodeScopeResolver.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function processStmtNodes(
106106
{
107107
$stack = [];
108108

109-
$gen = $this->analyzeStmts($stmts, $scope);
109+
$gen = $this->analyseStmts($stmts, $scope);
110110
$gen->current();
111111

112112
// Trampoline loop
@@ -129,17 +129,17 @@ private function processStmtNodes(
129129
continue;
130130
} elseif ($yielded instanceof ExprAnalysisRequest) {
131131
$stack[] = $gen;
132-
$gen = $this->analyzeExpr($exprAnalysisResultStorage, $yielded->expr, $yielded->scope);
132+
$gen = $this->analyseExpr($exprAnalysisResultStorage, $yielded->expr, $yielded->scope);
133133
$gen->current();
134134
continue;
135135
} elseif ($yielded instanceof StmtAnalysisRequest) {
136136
$stack[] = $gen;
137-
$gen = $this->analyzeStmt($yielded->stmt, $yielded->scope);
137+
$gen = $this->analyseStmt($yielded->stmt, $yielded->scope);
138138
$gen->current();
139139
continue;
140140
} elseif ($yielded instanceof StmtsAnalysisRequest) {
141141
$stack[] = $gen;
142-
$gen = $this->analyzeStmts($yielded->stmts, $yielded->scope);
142+
$gen = $this->analyseStmts($yielded->stmts, $yielded->scope);
143143
$gen->current();
144144
continue;
145145
} else { // phpcs:ignore
@@ -186,7 +186,7 @@ static function () {
186186
* @param array<Stmt> $stmts
187187
* @return Generator<int, StmtAnalysisRequest, StmtAnalysisResult, StmtAnalysisResult>
188188
*/
189-
private function analyzeStmts(array $stmts, GeneratorScope $scope): Generator
189+
private function analyseStmts(array $stmts, GeneratorScope $scope): Generator
190190
{
191191
foreach ($stmts as $stmt) {
192192
$result = yield new StmtAnalysisRequest($stmt, $scope);
@@ -199,7 +199,7 @@ private function analyzeStmts(array $stmts, GeneratorScope $scope): Generator
199199
/**
200200
* @return Generator<int, ExprAnalysisRequest|StmtAnalysisRequest|StmtsAnalysisRequest|NodeCallbackRequest, ExprAnalysisResult|StmtAnalysisResult, StmtAnalysisResult>
201201
*/
202-
private function analyzeStmt(Stmt $stmt, GeneratorScope $scope): Generator
202+
private function analyseStmt(Stmt $stmt, GeneratorScope $scope): Generator
203203
{
204204
yield new NodeCallbackRequest($stmt, $scope);
205205

@@ -223,7 +223,7 @@ private function analyzeStmt(Stmt $stmt, GeneratorScope $scope): Generator
223223
/**
224224
* @return Generator<int, ExprAnalysisRequest|NodeCallbackRequest, ExprAnalysisResult, ExprAnalysisResult>
225225
*/
226-
private function analyzeExpr(ExprAnalysisResultStorage $storage, Expr $expr, GeneratorScope $scope): Generator
226+
private function analyseExpr(ExprAnalysisResultStorage $storage, Expr $expr, GeneratorScope $scope): Generator
227227
{
228228
yield new NodeCallbackRequest($expr, $scope);
229229

0 commit comments

Comments
 (0)