Skip to content

Commit b93d832

Browse files
committed
removed custom FunctionDeclarationFixer, used configuration
1 parent 0e7b5f6 commit b93d832

File tree

3 files changed

+4
-245
lines changed

3 files changed

+4
-245
lines changed

preset-fixer/base.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
new NetteCodingStandard\Fixer\Basic\CurlyBracesPositionFixer,
1414
new NetteCodingStandard\Fixer\ClassNotation\ClassAndTraitVisibilityRequiredFixer,
1515
new NetteCodingStandard\Fixer\FunctionNotation\MethodArgumentSpaceFixer,
16-
new NetteCodingStandard\Fixer\FunctionNotation\FunctionDeclarationFixer,
1716
]);
1817
$config->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());
1918
$config->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers);

preset-fixer/common/Nette.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
'declare_parentheses' => true,
2424
// There must not be more than one statement per line
2525
'no_multiple_statements_per_line' => true,
26+
// Spaces should be properly placed in a function declaration.
27+
'function_declaration' => [
28+
'closure_fn_spacing' => 'none',
29+
],
2630

2731

2832
// overriden rules
@@ -37,10 +41,6 @@
3741
'method_argument_space' => false,
3842
'Nette/method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
3943

40-
// Spaces should be properly placed in a function declaration.
41-
'function_declaration' => false,
42-
'Nette/function_declaration' => true,
43-
4444
'visibility_required' => false,
4545
'Nette/class_and_trait_visibility_required' => true,
4646

src/Fixer/FunctionDeclarationFixer.php

Lines changed: 0 additions & 240 deletions
This file was deleted.

0 commit comments

Comments
 (0)