Code Duplication    Length = 6-6 lines in 2 locations

Sources/ManageSettings.php 2 locations

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