{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/StopwordRepository.php",
"offset": 185,
"limit": 35
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/StopwordRepository.php",
"content": " $result = $stmt->execute(['id' => $id]);\n\n $this->canonicalCache = null;\n\n return $result && $stmt->rowCount() > 0;\n }\n\n \/**\n * {@inheritDoc}\n *\/\n public function getStats(): array\n {\n $stmt = $this->db->query(\n 'SELECT category, COUNT(*) as count, SUM(is_active) as active\n FROM stopwords GROUP BY category'\n );\n\n $stats = ['total' => 0, 'active' => 0, 'by_category' => []];\n\n foreach ($stmt->fetchAll() as $row) {\n $stats['by_category'][$row['category']] = [\n 'count' => (int) $row['count'],\n 'active' => (int) $row['active'],\n ];\n $stats['total'] += (int) $row['count'];\n $stats['active'] += (int) $row['active'];\n }\n\n return $stats;\n }\n\n \/**\n * Normalize word to canonical form.\n *\/\n private function normalize(string $word): string",
"numLines": 35,
"startLine": 185,
"totalLines": 235
}
}
}