Code Duplication    Length = 4-4 lines in 2 locations

lib/Cake/View/Helper/FormHelper.php 2 locations

@@ 1710-1713 (lines=4) @@
1707
		if ($options['escape']) {
1708
			$title = h($title);
1709
		}
1710
		if (isset($options['name'])) {
1711
			$name = str_replace(array('[', ']'), array('.', ''), $options['name']);
1712
			$this->_secure($options['secure'], $name);
1713
		}
1714
		return $this->Html->useTag('button', $options, $title);
1715
	}
1716
@@ 1877-1880 (lines=4) @@
1874
			$divOptions = array_merge(array('class' => 'submit', 'tag' => 'div'), $div);
1875
		}
1876
1877
		if (isset($options['name'])) {
1878
			$name = str_replace(array('[', ']'), array('.', ''), $options['name']);
1879
			$this->_secure($options['secure'], $name);
1880
		}
1881
		unset($options['secure']);
1882
1883
		$before = $options['before'];