Code Duplication    Length = 6-6 lines in 2 locations

lib/Cake/basics.php 1 location

@@ 189-194 (lines=6) @@
186
		}
187
188
		static $defaultCharset = false;
189
		if ($defaultCharset === false) {
190
			$defaultCharset = Configure::read('App.encoding');
191
			if ($defaultCharset === null) {
192
				$defaultCharset = 'UTF-8';
193
			}
194
		}
195
		if (is_string($double)) {
196
			$charset = $double;
197
		}

lib/Cake/Utility/Sanitize.php 1 location

@@ 101-106 (lines=6) @@
98
 */
99
	public static function html($string, $options = array()) {
100
		static $defaultCharset = false;
101
		if ($defaultCharset === false) {
102
			$defaultCharset = Configure::read('App.encoding');
103
			if ($defaultCharset === null) {
104
				$defaultCharset = 'UTF-8';
105
			}
106
		}
107
		$default = array(
108
			'remove' => false,
109
			'charset' => $defaultCharset,