Code Duplication    Length = 6-6 lines in 2 locations

Sources/ManageSettings.php 2 locations

@@ 1337-1342 (lines=6) @@
1334
					'class' => 'centercol',
1335
				),
1336
				'data' => array(
1337
					'function' => function ($rowData)
1338
					{
1339
						$isChecked = $rowData['disabled'] ? '' : ' checked';
1340
						$onClickHandler = $rowData['can_show_register'] ? sprintf(' onclick="document.getElementById(\'reg_%1$s\').disabled = !this.checked;"', $rowData['id']) : '';
1341
						return sprintf('<input type="checkbox" name="active[]" id="active_%1$s" value="%1$s" %2$s%3$s>', $rowData['id'], $isChecked, $onClickHandler);
1342
					},
1343
					'style' => 'width: 20%;',
1344
					'class' => 'centercol',
1345
				),
@@ 1353-1358 (lines=6) @@
1350
					'class' => 'centercol',
1351
				),
1352
				'data' => array(
1353
					'function' => function ($rowData)
1354
					{
1355
						$isChecked = $rowData['on_register'] && !$rowData['disabled'] ? ' checked' : '';
1356
						$isDisabled = $rowData['can_show_register'] ? '' : ' disabled';
1357
						return sprintf('<input type="checkbox" name="reg[]" id="reg_%1$s" value="%1$s" %2$s%3$s>', $rowData['id'], $isChecked, $isDisabled);
1358
					},
1359
					'style' => 'width: 20%;',
1360
					'class' => 'centercol',
1361
				),