@@ -64,7 +64,7 @@ |
||
| 64 | 64 | public function filter(array $filters): self |
| 65 | 65 | { |
| 66 | 66 | $q = clone $this; |
| 67 | - $q->body['filter'] = array_map(static function ($filter) use ($q): string { return $q->parseFilter($filter); }, $filters); |
|
| 67 | + $q->body['filter'] = array_map(static function($filter) use ($q): string { return $q->parseFilter($filter); }, $filters); |
|
| 68 | 68 | |
| 69 | 69 | return $q; |
| 70 | 70 | } |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | public function toJson(): string |
| 69 | 69 | { |
| 70 | - return self::jsonEncode(array_filter($this->options, static function ($option): bool { return null !== $option; }), JSON_FORCE_OBJECT); |
|
| 70 | + return self::jsonEncode(array_filter($this->options, static function($option): bool { return null !== $option; }), JSON_FORCE_OBJECT); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | public function getName(): string |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | public function toJson(): string |
| 75 | 75 | { |
| 76 | - return self::jsonEncode(array_filter($this->options, static function ($option): bool { return null !== $option; })); |
|
| 76 | + return self::jsonEncode(array_filter($this->options, static function($option): bool { return null !== $option; })); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | public function getName(): string |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function __construct(iterable $commands = []) |
| 43 | 43 | { |
| 44 | - $this->commands = (static function (Command ...$commands): array { |
|
| 44 | + $this->commands = (static function(Command ...$commands): array { |
|
| 45 | 45 | return $commands; |
| 46 | 46 | })(...$commands); |
| 47 | 47 | } |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | public function toJson(): string |
| 69 | 69 | { |
| 70 | - return self::jsonEncode(array_filter($this->options, static function ($option): bool { return null !== $option; }), JSON_FORCE_OBJECT); |
|
| 70 | + return self::jsonEncode(array_filter($this->options, static function($option): bool { return null !== $option; }), JSON_FORCE_OBJECT); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | public function getName(): string |
@@ -20,39 +20,12 @@ |
||
| 20 | 20 | use PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer; |
| 21 | 21 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 22 | 22 | |
| 23 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 23 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 24 | 24 | $parameters = $containerConfigurator->parameters(); |
| 25 | 25 | $parameters->set('sets', ['php70', 'php71', 'psr12', 'clean-code', 'symfony', 'symfony-risky']); |
| 26 | - $parameters->set('paths', [__DIR__ . '/src', __DIR__ . '/tests']); |
|
| 26 | + $parameters->set('paths', [__DIR__.'/src', __DIR__.'/tests']); |
|
| 27 | 27 | $parameters->set('skip', [PhpdocToCommentFixer::class => null]); |
| 28 | 28 | |
| 29 | 29 | $services = $containerConfigurator->services(); |
| 30 | 30 | $services->set(HeaderCommentFixer::class) |
| 31 | 31 | ->call('configure', [['header' => <<<'HEADER' |
| 32 | - This file is part of Solr Client Symfony package. |
|
| 33 | - |
|
| 34 | - (c) ingatlan.com Zrt. <[email protected]> |
|
| 35 | - |
|
| 36 | - This source file is subject to the MIT license that is bundled |
|
| 37 | - with this source code in the file LICENSE. |
|
| 38 | - HEADER |
|
| 39 | - ]]); |
|
| 40 | - $services->set(PsrAutoloadingFixer::class); |
|
| 41 | - $services->set(OrderedClassElementsFixer::class); |
|
| 42 | - $services->set(ProtectedToPrivateFixer::class); |
|
| 43 | - $services->set(NoUselessElseFixer::class); |
|
| 44 | - $services->set(NativeFunctionInvocationFixer::class) |
|
| 45 | - ->call('configure', [['include' => ['@compiler_optimized']]]); |
|
| 46 | - $services->set(NoUnreachableDefaultArgumentValueFixer::class); |
|
| 47 | - $services->set(StaticLambdaFixer::class); |
|
| 48 | - $services->set(PhpdocAlignFixer::class) |
|
| 49 | - ->call('configure', [['align' => 'left']]); |
|
| 50 | - $services->set(PhpUnitMethodCasingFixer::class) |
|
| 51 | - ->call('configure', [['case' => 'snake_case']]); |
|
| 52 | - $services->set(PhpUnitSetUpTearDownVisibilityFixer::class); |
|
| 53 | - $services->set(PhpUnitTestAnnotationFixer::class) |
|
| 54 | - ->call('configure', [['style' => 'annotation']]); |
|
| 55 | - $services->set(NoUselessReturnFixer::class); |
|
| 56 | - $services->set(HeredocToNowdocFixer::class); |
|
| 57 | - $services->set(ArrayIndentationFixer::class); |
|
| 58 | -}; |
|