Code Duplication    Length = 3-3 lines in 3 locations

lib/Cake/Configure/IniReader.php 1 location

@@ 213-215 (lines=3) @@
210
			list($plugin, $key) = pluginSplit($key);
211
			$key .= '.ini.php';
212
		} else {
213
			if (substr($key, -4) === '.ini') {
214
				$key = substr($key, 0, -4);
215
			}
216
			list($plugin, $key) = pluginSplit($key);
217
			$key .= '.ini';
218
		}

lib/Cake/Configure/PhpReader.php 1 location

@@ 101-103 (lines=3) @@
98
 * @return string Full file path
99
 */
100
	protected function _getFilePath($key) {
101
		if (substr($key, -4) === '.php') {
102
			$key = substr($key, 0, -4);
103
		}
104
		list($plugin, $key) = pluginSplit($key);
105
		$key .= '.php';
106

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

@@ 822-824 (lines=3) @@
819
			} else {
820
				$text = $fieldName;
821
			}
822
			if (substr($text, -3) === '_id') {
823
				$text = substr($text, 0, -3);
824
			}
825
			$text = __(Inflector::humanize(Inflector::underscore($text)));
826
		}
827