Skip to content

Commit 3acacdf

Browse files
committed
Set to single for phpdoc_line_span
1 parent a5096b3 commit 3acacdf

File tree

3 files changed

+37
-43
lines changed

3 files changed

+37
-43
lines changed

src/Ruleset/AbstractRuleset.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,25 @@ abstract class AbstractRuleset implements RulesetInterface
4343
*/
4444
protected $autoActivateIsRiskyAllowed = false;
4545

46-
/**
47-
* @inheritDoc
48-
*/
46+
/** @inheritDoc */
4947
final public function getName(): string
5048
{
5149
return $this->name ?? trim(strrchr(self::class, '\\'), '\\');
5250
}
5351

54-
/**
55-
* @inheritDoc
56-
*/
52+
/** @inheritDoc */
5753
final public function getRules(): array
5854
{
5955
return $this->rules;
6056
}
6157

62-
/**
63-
* @inheritDoc
64-
*/
58+
/** @inheritDoc */
6559
final public function getRequiredPHPVersion(): int
6660
{
6761
return $this->requiredPHPVersion;
6862
}
6963

70-
/**
71-
* @inheritDoc
72-
*/
64+
/** @inheritDoc */
7365
final public function willAutoActivateIsRiskyAllowed(): bool
7466
{
7567
return $this->autoActivateIsRiskyAllowed;

src/Ruleset/Nexus73.php

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -294,34 +294,38 @@ public function __construct()
294294
'method_private',
295295
],
296296
],
297-
'ordered_imports' => true,
298-
'ordered_interfaces' => false, // risky
299-
'ordered_traits' => true,
300-
'php_unit_construct' => true, // risky
301-
'php_unit_dedicate_assert' => ['target' => 'newest'], // risky
302-
'php_unit_dedicate_assert_internal_type' => ['target' => 'newest'], // risky
303-
'php_unit_expectation' => true, // risky
304-
'php_unit_fqcn_annotation' => true,
305-
'php_unit_internal_class' => true,
306-
'php_unit_method_casing' => true,
307-
'php_unit_mock' => true, // risky
308-
'php_unit_mock_short_will_return' => true, // risky
309-
'php_unit_namespaced' => true, // risky
310-
'php_unit_no_expectation_annotation' => true, // risky
311-
'php_unit_ordered_covers' => false, // deprecated
312-
'php_unit_set_up_tear_down_visibility' => true, // risky
313-
'php_unit_size_class' => false,
314-
'php_unit_strict' => true, // risky
315-
'php_unit_test_annotation' => false, // risky
316-
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'], // risky
317-
'php_unit_test_class_requires_covers' => false,
318-
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
319-
'phpdoc_align' => true,
320-
'phpdoc_annotation_without_dot' => true,
321-
'phpdoc_indent' => true,
322-
'phpdoc_inline_tag' => false, // deprecated
323-
'phpdoc_inline_tag_normalizer' => true,
324-
'phpdoc_line_span' => true,
297+
'ordered_imports' => true,
298+
'ordered_interfaces' => false, // risky
299+
'ordered_traits' => true,
300+
'php_unit_construct' => true, // risky
301+
'php_unit_dedicate_assert' => ['target' => 'newest'], // risky
302+
'php_unit_dedicate_assert_internal_type' => ['target' => 'newest'], // risky
303+
'php_unit_expectation' => true, // risky
304+
'php_unit_fqcn_annotation' => true,
305+
'php_unit_internal_class' => true,
306+
'php_unit_method_casing' => true,
307+
'php_unit_mock' => true, // risky
308+
'php_unit_mock_short_will_return' => true, // risky
309+
'php_unit_namespaced' => true, // risky
310+
'php_unit_no_expectation_annotation' => true, // risky
311+
'php_unit_ordered_covers' => false, // deprecated
312+
'php_unit_set_up_tear_down_visibility' => true, // risky
313+
'php_unit_size_class' => false,
314+
'php_unit_strict' => true, // risky
315+
'php_unit_test_annotation' => false, // risky
316+
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'], // risky
317+
'php_unit_test_class_requires_covers' => false,
318+
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
319+
'phpdoc_align' => true,
320+
'phpdoc_annotation_without_dot' => true,
321+
'phpdoc_indent' => true,
322+
'phpdoc_inline_tag' => false, // deprecated
323+
'phpdoc_inline_tag_normalizer' => true,
324+
'phpdoc_line_span' => [
325+
'const' => 'single',
326+
'method' => 'single',
327+
'property' => 'single',
328+
],
325329
'phpdoc_no_access' => true,
326330
'phpdoc_no_alias_tag' => true,
327331
'phpdoc_no_empty_return' => false,

tests/FactoryTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ public function testCreateForLibraryCreatesPreformattedLicense(): void
116116
self::assertStringContainsString('(c) 2020 Foo Bar <[email protected]>', $header);
117117
}
118118

119-
/**
120-
* @return \PHPUnit\Framework\MockObject\MockObject&\Nexus\CsConfig\Ruleset\RulesetInterface
121-
*/
119+
/** @return \PHPUnit\Framework\MockObject\MockObject&\Nexus\CsConfig\Ruleset\RulesetInterface */
122120
private function mockRuleset()
123121
{
124122
return $this->createMock(RulesetInterface::class);

0 commit comments

Comments
 (0)