{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "public function reorderSteps",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/PipelineRepository.php",
"output_mode": "content",
"-A": 10
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "238: public function reorderSteps(int $pipelineId, array $stepIds): void\n239- {\n240- $stmt = $this->pdo->prepare(\n241- 'UPDATE pipeline_steps SET sort_order = ? WHERE id = ? AND pipeline_id = ?'\n242- );\n243-\n244- foreach ($stepIds as $order => $stepId) {\n245- $stmt->execute([$order + 1, $stepId, $pipelineId]);\n246- }\n247- }\n248-",
"numLines": 11
}
}