Skip to content

Commit

Permalink
build: Include settings for PHPInsights to properly handle spaces aro…
Browse files Browse the repository at this point in the history
…und the equal sign

Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Feb 11, 2024
1 parent cfbdb4c commit 378a7e1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions phpinsights.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
SlevomatCodingStandard\Sniffs\ControlStructures\DisallowShortTernaryOperatorSniff::class,
SlevomatCodingStandard\Sniffs\ControlStructures\DisallowYodaComparisonSniff::class,
NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff::class,
// ExampleInsight::class,
],

'config' => [
Expand All @@ -87,9 +86,14 @@
'absoluteLineLimit' => 140,
'ignoreComments' => false,
],
// ExampleInsight::class => [
// 'key' => 'value',
// ],

SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff::class => [
'spacesCountAroundEqualsSign' => 1,
],

PhpCsFixer\Fixer\LanguageConstruct\DeclareEqualNormalizeFixer::class => [
'space' => 'single',
],
],

/*
Expand Down

0 comments on commit 378a7e1

Please sign in to comment.