This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
37
{
38
return [
39
[
40
'<?php
41
/** @var string $foo */
42
/** @var int $foo */
43
/** @var Foo $foo */
44
/** @var Foo\Bar $foo */
45
/** @var \Foo $foo */
46
/**
47
* @var Foo $foo
48
*/
49
',
50
],
51
[
52
'<?php
53
/** @var string $foo */
54
/** @var int $foo */
55
/** @var Foo $foo */
56
/** @var Foo\Bar $foo */
57
/** @var \Foo $foo */
58
/**
59
* @var Foo $foo
60
*/
61
',
62
'<?php
63
/** @var $foo string */
64
/** @var $foo int */
65
/** @var $foo Foo */
66
/** @var $foo Foo\Bar */
67
/** @var $foo \Foo */
68
/**
69
* @var $foo Foo
70
*/
71
',
72
],
73
[
74
'<?php
75
/** @var string $foo */
76
/** @var int $foo */
77
/** @var Foo $foo */
78
/** @var Foo\Bar $foo */
79
/** @var \Foo $foo */
80
/**
81
* @var Foo $foo
82
*/
83
',
84
'<?php
85
/** @var $foo string */
86
/** @var $foo int */
87
/** @var $foo Foo */
88
/** @var $foo Foo\Bar */
89
/** @var $foo \Foo */
90
/**
91
* @var $foo Foo
92
*/
93
',
94
],
95
];
96
}
97
98
/**
99
* @test
100
*/
101
public function shouldHaveAFixerDefinition()
102
{
103
$this->assertEquals(
104
new FixerDefinition(
105
'Corrects the order of variable and typedeclaration in a @var doccomment.',
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.