Code Duplication    Length = 4-4 lines in 2 locations

Sources/ManagePaid.php 1 location

@@ 351-354 (lines=4) @@
348
					'class' => 'centercol',
349
				),
350
				'data' => array(
351
					'function' => function($rowData) use ($txt)
352
					{
353
						return '<span style="color: ' . ($rowData['active'] ? 'green' : 'red') . '">' . ($rowData['active'] ? $txt['yes'] : $txt['no']) . '</span>';
354
					},
355
					'class' => 'centercol',
356
				),
357
			),

Sources/ManageLanguages.php 1 location

@@ 435-438 (lines=4) @@
432
					'value' => $txt['languages_download_writable'],
433
				),
434
				'data' => array(
435
					'function' => function($rowData) use ($txt)
436
					{
437
						return '<span style="color: ' . ($rowData['writable'] ? 'green' : 'red') . ';">' . ($rowData['writable'] ? $txt['yes'] : $txt['no']) . '</span>';
438
					},
439
				),
440
			),
441
			'version' => array(