mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-06 07:30:17 +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
|
run: docker compose exec -T php vendor/bin/php-cs-fixer check --diff --show-progress=none
|
||||||
- name: Twig Coding Style
|
- name: Twig Coding Style
|
||||||
run: docker compose exec -T php vendor/bin/twig-cs-fixer check
|
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
|
- name: Check HTTP reachability
|
||||||
run: curl -v --fail-with-body http://localhost
|
run: curl -v --fail-with-body http://localhost
|
||||||
- name: Check Mercure reachability
|
- name: Check Mercure reachability
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ class Elimination
|
|||||||
{
|
{
|
||||||
use SoftDeleteableEntity;
|
use SoftDeleteableEntity;
|
||||||
use TimestampableEntity;
|
use TimestampableEntity;
|
||||||
|
|
||||||
public const string SCREEN_GREEN = 'green';
|
public const string SCREEN_GREEN = 'green';
|
||||||
|
|
||||||
public const string SCREEN_RED = 'red';
|
public const string SCREEN_RED = 'red';
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ use Tvdt\Repository\QuizCandidateRepository;
|
|||||||
class QuizCandidate
|
class QuizCandidate
|
||||||
{
|
{
|
||||||
use SoftDeleteableEntity;
|
use SoftDeleteableEntity;
|
||||||
|
|
||||||
#[ORM\Column(type: UuidType::NAME, unique: true)]
|
#[ORM\Column(type: UuidType::NAME, unique: true)]
|
||||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||||
|
|||||||
Reference in New Issue
Block a user