Code Duplication    Length = 6-6 lines in 2 locations

Sources/ManageSettings.php 2 locations

@@ 1345-1350 (lines=6) @@
1342
					'class' => 'centercol',
1343
				),
1344
				'data' => array(
1345
					'function' => function ($rowData)
1346
					{
1347
						$isChecked = $rowData['disabled'] ? '' : ' checked';
1348
						$onClickHandler = $rowData['can_show_register'] ? sprintf(' onclick="document.getElementById(\'reg_%1$s\').disabled = !this.checked;"', $rowData['id']) : '';
1349
						return sprintf('<input type="checkbox" name="active[]" id="active_%1$s" value="%1$s" %2$s%3$s>', $rowData['id'], $isChecked, $onClickHandler);
1350
					},
1351
					'style' => 'width: 20%;',
1352
					'class' => 'centercol',
1353
				),
@@ 1361-1366 (lines=6) @@
1358
					'class' => 'centercol',
1359
				),
1360
				'data' => array(
1361
					'function' => function ($rowData)
1362
					{
1363
						$isChecked = $rowData['on_register'] && !$rowData['disabled'] ? ' checked' : '';
1364
						$isDisabled = $rowData['can_show_register'] ? '' : ' disabled';
1365
						return sprintf('<input type="checkbox" name="reg[]" id="reg_%1$s" value="%1$s" %2$s%3$s>', $rowData['id'], $isChecked, $isDisabled);
1366
					},
1367
					'style' => 'width: 20%;',
1368
					'class' => 'centercol',
1369
				),