2024-02-07 23:49:54 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$finder = (new PhpCsFixer\Finder())
|
|
|
|
->exclude([
|
|
|
|
'messages/',
|
2024-02-08 12:04:41 +01:00
|
|
|
'views/',
|
2024-02-07 23:49:54 +01:00
|
|
|
])
|
2024-12-18 14:21:00 +01:00
|
|
|
->notPath('protected/humhub/config/assets-prod.php')
|
2024-02-07 23:49:54 +01:00
|
|
|
->in([
|
2024-02-08 12:31:43 +01:00
|
|
|
'protected/humhub',
|
2024-02-07 23:49:54 +01:00
|
|
|
]);
|
|
|
|
|
|
|
|
return (new PhpCsFixer\Config())
|
|
|
|
->setRules([
|
2024-02-08 12:04:41 +01:00
|
|
|
'@PER-CS' => true,
|
|
|
|
'phpdoc_scalar' => true,
|
|
|
|
'cast_spaces' => false,
|
|
|
|
'single_line_empty_body' => false,
|
2024-02-07 23:49:54 +01:00
|
|
|
])
|
|
|
|
->setFinder($finder);
|