|
42 | 42 | ->withConfiguredRule(SlevomatCodingStandard\Sniffs\Classes\EnumCaseSpacingSniff::class, ['minLinesCountBeforeWithComment' => 1, 'maxLinesCountBeforeWithComment' => 1, 'minLinesCountBeforeWithoutComment' => 0, 'maxLinesCountBeforeWithoutComment' => 0]) |
43 | 43 | ->withConfiguredRule(SlevomatCodingStandard\Sniffs\Classes\MethodSpacingSniff::class, ['minLinesCount' => 1, 'maxLinesCount' => 1]) |
44 | 44 | ->withConfiguredRule(SlevomatCodingStandard\Sniffs\Classes\ParentCallSpacingSniff::class, ['linesCountBefore' => 0, 'linesCountAfter' => 1]) |
45 | | - ->withConfiguredRule(SlevomatCodingStandard\Sniffs\Classes\PropertySpacingSniff::class, ['minLinesCountBeforeWithComment' => 1, 'maxLinesCountBeforeWithComment' => 1, 'minLinesCountBeforeWithoutComment' => 0, 'maxLinesCountBeforeWithoutComment' => 0]) |
| 45 | + ->withConfiguredRule(SlevomatCodingStandard\Sniffs\Classes\PropertySpacingSniff::class, ['minLinesCountBeforeWithComment' => 1, 'maxLinesCountBeforeWithComment' => 1, 'minLinesCountBeforeWithoutComment' => 1, 'maxLinesCountBeforeWithoutComment' => 1]) |
46 | 46 | ->withConfiguredRule(SlevomatCodingStandard\Sniffs\Classes\TraitUseSpacingSniff::class, ['linesCountBeforeFirstUse' => 0, 'linesCountBeforeFirstUseWhenFirstInClass' => 0, 'linesCountBetweenUses' => 0, 'linesCountAfterLastUse' => 1, 'linesCountAfterLastUseWhenLastInClass' => 0]) |
47 | 47 | ->withConfiguredRule(SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff::class, ['linesCountBeforeFirstContent' => 0, 'linesCountBetweenDescriptionAndAnnotations' => 1, 'linesCountBetweenDifferentAnnotationsTypes' => 0, 'linesCountAfterLastContent' => 0]) |
48 | 48 | // ->withConfiguredRule(SlevomatCodingStandard\Sniffs\ControlStructures\BlockControlStructureSpacingSniff::class, ['linesCountBefore' => 1, 'linesCountBeforeFirst' => 1, 'linesCountAfter' => 1, 'linesCountAfterLast' => 1, 'controlStructures' => ['if', 'switch', 'for', 'foreach', 'while', 'do']]) |
|
329 | 329 | SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff::class, |
330 | 330 | ])->withSkip([ |
331 | 331 | SlevomatCodingStandard\Sniffs\Functions\UnusedParameterSniff::class => [ |
332 | | - getcwd() . '/app/Traits', |
333 | | - getcwd() . '/app/Policies', |
334 | 332 | getcwd() . '/app/Models', |
| 333 | + getcwd() . '/app/Policies', |
| 334 | + getcwd() . '/app/Repositories/QuerySorts', |
| 335 | + getcwd() . '/app/Scopes', |
| 336 | + getcwd() . '/app/Traits', |
| 337 | + getcwd() . '/app/Data/Casts', |
| 338 | + getcwd() . '/app/Providers', |
335 | 339 | ], |
336 | 340 | SlevomatCodingStandard\Sniffs\Functions\DisallowEmptyFunctionSniff::class => [ |
337 | 341 | getcwd() . '/app/Providers', |
338 | 342 | ], |
339 | 343 | SlevomatCodingStandard\Sniffs\TypeHints\PropertyTypeHintSniff::class => [ |
| 344 | + getcwd() . '/app/Console/Commands', |
340 | 345 | getcwd() . '/app/Models', |
341 | 346 | ], |
342 | 347 | SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff::class => [ |
343 | | - getcwd() . '/app/Models', |
| 348 | + getcwd() . '/app/Data/Casts', |
| 349 | + getcwd() . '/app/Models/User/User.php', |
344 | 350 | ], |
345 | 351 | PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer::class => [ |
346 | 352 | getcwd() . '/app/Models', |
|
352 | 358 | getcwd() . '/database/seeders', |
353 | 359 | getcwd() . '/database/migrations', |
354 | 360 | ], |
| 361 | + SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff::class => [ |
| 362 | + getcwd() . '/app/Models/User/User.php', |
| 363 | + ], |
355 | 364 | ]); |
0 commit comments