Code Duplication    Length = 3-7 lines in 2 locations

lib/Cake/Model/Model.php 1 location

@@ 1326-1328 (lines=3) @@
1323
					return null;
1324
				}
1325
1326
				if (isset($data[$val]) && !empty($data[$val])) {
1327
					$date[$key] = $data[$val];
1328
				}
1329
			}
1330
		}
1331

lib/Cake/View/Helper.php 1 location

@@ 899-905 (lines=7) @@
896
			}
897
		}
898
		$array = array();
899
		if (!empty($data)) {
900
			foreach ($data as $row) {
901
				if (isset($row[$key])) {
902
					$array[$row[$key]] = $row[$key];
903
				}
904
			}
905
		}
906
		return empty($array) ? null : $array;
907
	}
908