mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 23:20:18 +02:00
Add rector and phpstan
This commit is contained in:
@@ -48,6 +48,10 @@ jobs:
|
||||
run: docker compose exec -T php vendor/bin/php-cs-fixer check --diff --show-progress=none
|
||||
- name: Twig Coding Style
|
||||
run: docker compose exec -T php vendor/bin/twig-cs-fixer check
|
||||
- name: Static Analysis (PHPStan)
|
||||
run: docker compose exec -T php vendor/bin/phpstan analyse --no-progress --no-ansi
|
||||
- name: Rector
|
||||
run: docker compose exec -T php vendor/bin/rector process --dry-run
|
||||
- name: Check HTTP reachability
|
||||
run: curl -v --fail-with-body http://localhost
|
||||
- name: Check Mercure reachability
|
||||
|
||||
@@ -20,6 +20,7 @@ class Elimination
|
||||
{
|
||||
use SoftDeleteableEntity;
|
||||
use TimestampableEntity;
|
||||
|
||||
public const string SCREEN_GREEN = 'green';
|
||||
|
||||
public const string SCREEN_RED = 'red';
|
||||
|
||||
@@ -18,6 +18,7 @@ use Tvdt\Repository\QuizCandidateRepository;
|
||||
class QuizCandidate
|
||||
{
|
||||
use SoftDeleteableEntity;
|
||||
|
||||
#[ORM\Column(type: UuidType::NAME, unique: true)]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
|
||||
Reference in New Issue
Block a user