Apply strict_types and extensive type declarations throughout the API and models, improving type safety and error handling. Key changes: add declare(strict_types=1) to many files; convert properties, method parameters and return values to typed signatures (PDO, arrays, ints, strings, bools, nullables); switch exception handling to Throwable in index and Router; improve Router, controllers and model method signatures and nullability handling; refine file/image serving security checks and headers in ImageController; strengthen Database typing and initialization methods; return explicit types from BaseModel CRUD helpers and counting; update Media/Cast/Adult/Game/Console/Settings controllers and models to use typed methods, better validation, and clearer update/create return types. Also add AGENTS.md (agent skills index), update README with Swagger/OpenAPI usage instructions, and add /.windsurf to .gitignore. These changes aim to harden runtime correctness, make intended contracts explicit, and prepare the codebase for easier maintenance and static analysis.
58 lines
508 B
Plaintext
58 lines
508 B
Plaintext
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
Desktop.ini
|
|
|
|
# Composer
|
|
/vendor/
|
|
composer.lock
|
|
|
|
# Environment
|
|
.env
|
|
.env.local
|
|
.env.production
|
|
|
|
# Logs
|
|
*.log
|
|
logs/
|
|
|
|
# Cache
|
|
/cache/
|
|
/tmp/
|
|
/temp/
|
|
|
|
# Database
|
|
*.sqlite
|
|
*.db
|
|
|
|
# Node (if applicable)
|
|
node_modules/
|
|
npm-debug.log
|
|
yarn-error.log
|
|
|
|
# Docker
|
|
*.pid
|
|
*.seed
|
|
*.pid.lock
|
|
|
|
# Build artifacts
|
|
/dist/
|
|
/build/
|
|
*.min.js
|
|
*.min.css
|
|
|
|
# Uploads
|
|
/uploads/
|
|
/storage/app/public/*
|
|
!/storage/app/public/.gitkeep
|
|
*/public/images/*
|
|
/api/public/images
|
|
/.windsurf
|