Skip to content

Commit 852bc94

Browse files
committed
TASK: Fix typo and phpdoc
1 parent 2e4a271 commit 852bc94

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Command/NodeIndexCommandController.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public function showMappingCommand()
133133
*
134134
* @param string $identifier
135135
* @param string $workspace
136+
* @return void
136137
*/
137138
public function indexNodeCommand($identifier, $workspace = null)
138139
{
@@ -164,7 +165,7 @@ public function indexNodeCommand($identifier, $workspace = null)
164165
$this->nodeIndexer->indexNode($node);
165166
};
166167

167-
$indexInWorkspacce = function ($identifier, Workspace $workspace) use ($indexNode) {
168+
$indexInWorkspace = function ($identifier, Workspace $workspace) use ($indexNode) {
168169
$combinations = $this->contentDimensionCombinator->getAllAllowedCombinations();
169170
if ($combinations === []) {
170171
$indexNode($identifier, $workspace, []);
@@ -177,10 +178,10 @@ public function indexNodeCommand($identifier, $workspace = null)
177178

178179
if ($workspace === null) {
179180
foreach ($this->workspaceRepository->findAll() as $workspace) {
180-
$indexInWorkspacce($identifier, $workspace);
181+
$indexInWorkspace($identifier, $workspace);
181182
}
182183
} else {
183-
$indexInWorkspacce($identifier, $workspace);
184+
$indexInWorkspace($identifier, $workspace);
184185
}
185186
}
186187

0 commit comments

Comments
 (0)