Code Duplication    Length = 3-5 lines in 2 locations

lib/Cake/View/Helper/FormHelper.php 1 location

@@ 411-413 (lines=3) @@
408
				'action' => $options['action'],
409
			);
410
			$options['action'] = array_merge($actionDefaults, (array)$options['url']);
411
			if (empty($options['action'][0]) && !empty($id)) {
412
				$options['action'][0] = $id;
413
			}
414
		} elseif (is_string($options['url'])) {
415
			$options['action'] = $options['url'];
416
		}

lib/Cake/View/Helper/PaginatorHelper.php 1 location

@@ 360-364 (lines=5) @@
357
		if ($isSorted) {
358
			$dir = $this->sortDir($options['model']) === 'asc' ? 'desc' : 'asc';
359
			$class = $dir === 'asc' ? 'desc' : 'asc';
360
			if (!empty($options['class'])) {
361
				$options['class'] .= ' ' . $class;
362
			} else {
363
				$options['class'] = $class;
364
			}
365
		}
366
		if (is_array($title) && array_key_exists($dir, $title)) {
367
			$title = $title[$dir];