mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
* Some tests * More tests! * Tests 3 * Move getScores from Candidate to Quiz * Add some suggestions for future refactoring * - **Add Gedmo doctrine-extensions and Stof bundle integration** - Added `stof/doctrine-extensions-bundle` and `gedmo/doctrine-extensions` dependencies. - Integrated `Timestampable` behavior for `Created` fields in entities. - Updated `bundles.php` to register StofDoctrineExtensionsBundle. - Added configuration for the Stof bundle. - Simplified `SeasonVoter` with `match` expression and added new tests. - Minor fixes and adjustments across various files. * WIP * All the tests * Base64 tests * Symfomny 7.4.0 * Update * Update recipe * PHP 8.5 * Rector changes * More 8.5 * Things
41 lines
1.4 KiB
PHP
41 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
use PhpCsFixer\Config;
|
|
use PhpCsFixer\Finder;
|
|
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
|
|
|
|
$finder = new Finder()
|
|
->in(__DIR__)
|
|
->exclude('var')
|
|
->exclude('bin')
|
|
->notPath(['config/reference.php'])
|
|
;
|
|
|
|
return new Config()
|
|
->setParallelConfig(ParallelConfigFactory::detect())
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'@Symfony:risky' => true,
|
|
'declare_strict_types' => true,
|
|
'fully_qualified_strict_types' => ['import_symbols' => true],
|
|
'linebreak_after_opening_tag' => true,
|
|
'mb_str_functions' => true,
|
|
'no_php4_constructor' => true,
|
|
'no_unreachable_default_argument_value' => true,
|
|
'no_useless_else' => true,
|
|
'no_useless_return' => true,
|
|
'phpdoc_line_span' => ['const' => 'single', 'method' => 'single', 'property' => 'single'],
|
|
'phpdoc_order' => true,
|
|
'single_line_empty_body' => true,
|
|
'strict_comparison' => true,
|
|
'strict_param' => true,
|
|
'ordered_attributes' => true,
|
|
'heredoc_indentation' => ['indentation' => 'start_plus_one'],
|
|
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arguments', 'array_destructuring', 'arrays', 'match', 'parameters']],
|
|
])
|
|
->setRiskyAllowed(true)
|
|
->setFinder($finder)
|
|
->setUnsupportedPhpVersionAllowed(true)
|
|
;
|