Code Duplication    Length = 9-9 lines in 2 locations

web_interface/astpp/system/helpers/date_helper.php 2 locations

@@ 223-231 (lines=9) @@
220
221
		$hours = floor($seconds / 3600);
222
223
		if ($days > 0 OR $hours > 0)
224
		{
225
			if ($hours > 0)
226
			{
227
				$str .= $hours.' '.$CI->lang->line((($hours > 1) ? 'date_hours' : 'date_hour')).', ';
228
			}
229
230
			$seconds -= $hours * 3600;
231
		}
232
233
		$minutes = floor($seconds / 60);
234
@@ 235-243 (lines=9) @@
232
233
		$minutes = floor($seconds / 60);
234
235
		if ($days > 0 OR $hours > 0 OR $minutes > 0)
236
		{
237
			if ($minutes > 0)
238
			{
239
				$str .= $minutes.' '.$CI->lang->line((($minutes > 1) ? 'date_minutes' : 'date_minute')).', ';
240
			}
241
242
			$seconds -= $minutes * 60;
243
		}
244
245
		if ($str == '')
246
		{