Code Duplication    Length = 14-15 lines in 3 locations

src/PHPSemVerChecker/Operation/ClassMethodImplementationChanged.php 1 location

@@ 5-18 (lines=14) @@
2
3
namespace PHPSemVerChecker\Operation;
4
5
class ClassMethodImplementationChanged extends ClassMethodOperationDelta
6
{
7
	/**
8
	 * @var array
9
	 */
10
	protected $code = [
11
		'class' => ['V023', 'V024', 'V025'],
12
		'trait' => ['V052', 'V053', 'V054'],
13
	];
14
	/**
15
	 * @var string
16
	 */
17
	protected $reason = 'Method implementation changed.';
18
}
19

src/PHPSemVerChecker/Operation/ClassMethodParameterDefaultValueChanged.php 1 location

@@ 5-19 (lines=15) @@
2
3
namespace PHPSemVerChecker\Operation;
4
5
class ClassMethodParameterDefaultValueChanged extends ClassMethodOperationDelta
6
{
7
	/**
8
	 * @var array
9
	 */
10
	protected $code = [
11
		'class'     => ['V097', 'V098', 'V099'],
12
		'interface' => ['V079'],
13
		'trait'     => ['V115', 'V116', 'V117'],
14
	];
15
	/**
16
	 * @var string
17
	 */
18
	protected $reason = 'Method parameter default value changed.';
19
}
20

src/PHPSemVerChecker/Operation/ClassMethodParameterNameChanged.php 1 location

@@ 5-19 (lines=15) @@
2
3
namespace PHPSemVerChecker\Operation;
4
5
class ClassMethodParameterNameChanged extends ClassMethodOperationDelta
6
{
7
	/**
8
	 * @var array
9
	 */
10
	protected $code = [
11
		'class'     => ['V060', 'V061', 'V062'],
12
		'interface' => ['V063'],
13
		'trait'     => ['V064', 'V065', 'V066'],
14
	];
15
	/**
16
	 * @var string
17
	 */
18
	protected $reason = 'Method parameter name changed.';
19
}
20