Add recrawl functionality and fix PHPCS warnings

- Added "Recrawl" button in jobs table UI
- Implemented recrawl API endpoint that deletes all job data and restarts crawl
- Fixed PHPCS line length warnings in api.php and Crawler.php

All quality checks pass:
- PHPStan Level 8: 0 errors
- PHPCS PSR-12: 0 warnings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-04 09:07:50 +02:00
parent 11fd8fa673
commit 9e61572747
3 changed files with 64 additions and 2 deletions

View File

@@ -211,8 +211,8 @@ class Crawler
// Save link
$stmt = $this->db->prepare(
"INSERT INTO links (page_id, crawl_job_id, source_url, target_url, link_text, is_nofollow, is_internal)
VALUES (?, ?, ?, ?, ?, ?, ?)"
"INSERT INTO links (page_id, crawl_job_id, source_url, target_url, " .
"link_text, is_nofollow, is_internal) VALUES (?, ?, ?, ?, ?, ?, ?)"
);
$stmt->execute([
$pageId,