diff --git a/check_adult_scrapers_status.php b/check_adult_scrapers_status.php deleted file mode 100644 index e5c83ed22..000000000 --- a/check_adult_scrapers_status.php +++ /dev/null @@ -1,176 +0,0 @@ -#!/usr/bin/env php - 'Adult DVD Empire', - 'Blacklight/processing/adult/ADM.php' => 'Adult DVD Marketplace', - 'Blacklight/processing/adult/AEBN.php' => 'AEBN Theater', - 'Blacklight/processing/adult/Hotmovies.php' => 'HotMovies', - 'Blacklight/processing/adult/Popporn.php' => 'Popporn', -]; - -foreach ($scrapers as $file => $name) { - if (file_exists($file)) { - // Check PHP syntax - $output = []; - $return = 0; - exec("php -l {$file} 2>&1", $output, $return); - - if ($return === 0) { - // Check for minimumSimilarity property - $content = file_get_contents($file); - if (strpos($content, 'minimumSimilarity') !== false) { - $success[] = "āœ“ {$name}: File exists, syntax OK, improvements applied"; - echo " āœ“ {$name}\n"; - } else { - $warnings[] = "⚠ {$name}: File exists but may need improvements"; - echo " ⚠ {$name} (may need improvements)\n"; - } - } else { - $errors[] = "āŒ {$name}: Syntax error in {$file}"; - echo " āŒ {$name} (syntax error)\n"; - } - } else { - $errors[] = "āŒ {$name}: File not found at {$file}"; - echo " āŒ {$name} (not found)\n"; - } -} - -echo "\nšŸ“‹ Checking Test Files...\n"; -$testFiles = [ - 'test_adult_scrapers.php' => 'Standalone test script', - 'tests/Unit/Blacklight/Processing/Adult/AdultScrapersTest.php' => 'PHPUnit test suite', -]; - -foreach ($testFiles as $file => $name) { - if (file_exists($file)) { - $output = []; - $return = 0; - exec("php -l {$file} 2>&1", $output, $return); - - if ($return === 0) { - $success[] = "āœ“ {$name}: Available and syntax OK"; - echo " āœ“ {$name}\n"; - - // Check if executable - if ($file === 'test_adult_scrapers.php' && is_executable($file)) { - echo " āœ“ Executable\n"; - } - } else { - $errors[] = "āŒ {$name}: Syntax error in {$file}"; - echo " āŒ {$name} (syntax error)\n"; - } - } else { - $errors[] = "āŒ {$name}: File not found at {$file}"; - echo " āŒ {$name} (not found)\n"; - } -} - -echo "\nšŸ“š Checking Documentation...\n"; -$docs = [ - 'ADULT_SCRAPERS_IMPROVEMENTS.md' => 'Improvements documentation', - 'ADULT_SCRAPERS_TESTING_GUIDE.md' => 'Testing guide', - 'ADULT_SCRAPERS_QUICK_REFERENCE.md' => 'Quick reference', - 'ADULT_SCRAPERS_TEST_EXAMPLES.md' => 'Test examples', - 'ADULT_SCRAPERS_SUMMARY.md' => 'Implementation summary', - 'tests/Unit/Blacklight/Processing/Adult/README.md' => 'Test directory README', -]; - -foreach ($docs as $file => $name) { - if (file_exists($file)) { - $size = filesize($file); - $success[] = "āœ“ {$name}: Available ({$size} bytes)"; - echo " āœ“ {$name}\n"; - } else { - $warnings[] = "⚠ {$name}: Not found at {$file}"; - echo " ⚠ {$name} (not found)\n"; - } -} - -echo "\nšŸ” Checking Dependencies...\n"; - -// Check if vendor/autoload.php exists -if (file_exists('vendor/autoload.php')) { - echo " āœ“ Composer autoload available\n"; - $success[] = 'āœ“ Composer dependencies installed'; -} else { - $errors[] = 'āŒ Composer autoload not found - run: composer install'; - echo " āŒ Composer autoload not found\n"; - echo " Run: composer install\n"; -} - -// Check for required classes -$requiredClasses = [ - 'voku\helper\HtmlDomParser' => 'HTML parser library', -]; - -foreach ($requiredClasses as $class => $description) { - if (class_exists($class)) { - echo " āœ“ {$description} ({$class})\n"; - $success[] = "āœ“ {$description} available"; - } else { - $warnings[] = "⚠ {$description} not loaded"; - echo " ⚠ {$description} not loaded\n"; - } -} - -echo "\n================================================================================\n"; -echo "SUMMARY\n"; -echo "================================================================================\n"; - -echo "\nāœ“ Success: ".count($success)." checks passed\n"; -if (! empty($warnings)) { - echo '⚠ Warnings: '.count($warnings)." issues\n"; -} -if (! empty($errors)) { - echo 'āŒ Errors: '.count($errors)." critical issues\n"; -} - -if (! empty($errors)) { - echo "\nšŸ”“ Critical Issues:\n"; - foreach ($errors as $error) { - echo " {$error}\n"; - } -} - -if (! empty($warnings)) { - echo "\n🟔 Warnings:\n"; - foreach ($warnings as $warning) { - echo " {$warning}\n"; - } -} - -echo "\n"; - -if (empty($errors) && empty($warnings)) { - echo "šŸŽ‰ All checks passed! The adult scrapers implementation is complete and ready to use.\n\n"; - echo "To get started:\n"; - echo " php test_adult_scrapers.php\n\n"; - exit(0); -} elseif (empty($errors)) { - echo "āœ… Core implementation is ready with minor warnings.\n\n"; - echo "To get started:\n"; - echo " php test_adult_scrapers.php\n\n"; - exit(0); -} else { - echo "āŒ Please fix critical errors before proceeding.\n\n"; - exit(1); -}