Skip to content

[CS] Update PhpCsFixer config #1190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

if (!file_exists(__DIR__.'/src')) {
exit(0);
}

$fileHeaderComment = <<<'EOF'
This file is part of the Symfony package.

(c) Fabien Potencier <[email protected]>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;

return (new PhpCsFixer\Config())
->setRules([
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit75Migration:risky' => true,
'php_unit_dedicate_assert' => ['target' => '5.6'],
'array_syntax' => ['syntax' => 'short'],
'fopen_flags' => false,
'protected_to_private' => false,
'native_constant_invocation' => true,
'combine_nested_dirname' => true,
'list_syntax' => ['syntax' => 'short'],
'ordered_imports' => [
'imports_order' => ['const', 'class', 'function'],
],
'header_comment' => ['header' => $fileHeaderComment],
])
->setRiskyAllowed(true)
->setFinder(
Expand All @@ -28,6 +37,5 @@
->notPath('#/Fixtures/#')
->notPath('#/app/var/#')
->notPath('#/var/cache/#')
->notPath('Turbo/Attribute/Broadcast.php') // Need https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4702
)
;
9 changes: 9 additions & 0 deletions src/Autocomplete/config/routes.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;

return function (RoutingConfigurator $routes) {
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/src/Form/WrappedEntityTypeAutocompleter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\UX\Autocomplete\Form;

use Doctrine\ORM\EntityRepository;
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.ar.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'لم يتم العثور على أي نتائج',
'No more results' => 'لا توجد نتائج أٌخرى',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.bg.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Няма намерени съвпадения',
'No more results' => 'Няма повече резултати',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.ca.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'No s\'han trobat resultats',
'No more results' => 'No hi ha més resultats',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.cs.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Nenalezeny žádné položky',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.da.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Ingen resultater fundet',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.de.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Keine Übereinstimmungen gefunden',
'No more results' => 'Keine weiteren Ergebnisse',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.el.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Δεν βρέθηκαν αποτελέσματα',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.en.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'No results found',
'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.es.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'No se han encontrado resultados',
'No more results' => 'No hay más resultados',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.eu.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Ez da bat datorrenik aurkitu',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.fa.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'هیچ نتیجه‌ای یافت نشد',
'No more results' => 'نتیجه دیگری وجود ندارد',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.fi.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Ei tuloksia',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.fr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Aucun résultat trouvé',
'No more results' => 'Aucun autre résultat trouvé',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.gl.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Non se atoparon resultados',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.hr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Nema rezultata',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.hu.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Nincs találat',
'No more results' => 'Nincs több találat',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.id.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Tidak ada hasil yang ditemukan',
'No more results' => 'Tidak ada hasil lagi',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.it.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Nessun risultato trovato',
'No more results' => 'Non ci sono altri risultati',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.lb.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Keng Resultater fonnt',
'No more results' => 'Keng weider Resultater',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.lt.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Atitikmenų nerasta',
// 'No more results' => 'No more results',
Expand Down
9 changes: 9 additions & 0 deletions src/Autocomplete/translations/AutocompleteBundle.nl.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

return [
'No results found' => 'Geen resultaten gevonden…',
'No more results' => 'Niet meer resultaten gevonden…',
Expand Down
Loading