Code Duplication    Length = 13-14 lines in 2 locations

lib/Gnf/db/helpers.php 2 locations

@@ 45-58 (lines=14) @@
42
		return new GnfSqlPassword($in);
43
	}
44
}
45
if (!function_exists('sqlLike')) {
46
	function sqlLike($in)
47
	{
48
		//__sqlNot을 포함관계에서 최상단으로
49
		if (is_a($in, '\Gnf\db\Helper\GnfSqlNot') && is_a($in->dat, '\Gnf\db\Helper\GnfSqlCompareOperator')) {
50
			$wrapper = new GnfSqlLike($in->dat);
51
52
			return new GnfSqlNot($wrapper);
53
		}
54
55
		return new GnfSqlLike($in);
56
	}
57
58
}
59
if (!function_exists('sqlLikeBegin')) {
60
	function sqlLikeBegin($in)
61
	{
@@ 59-71 (lines=13) @@
56
	}
57
58
}
59
if (!function_exists('sqlLikeBegin')) {
60
	function sqlLikeBegin($in)
61
	{
62
		//__sqlNot을 포함관계에서 최상단으로
63
		if (is_a($in, '\Gnf\db\Helper\GnfSqlNot') && is_a($in->dat, '\Gnf\db\Helper\GnfSqlCompareOperator')) {
64
			$wrapper = new GnfSqlLikeBegin($in->dat);
65
66
			return new GnfSqlNot($wrapper);
67
		}
68
69
		return new GnfSqlLikeBegin($in);
70
	}
71
}
72
if (!function_exists('sqlRaw')) {
73
	function sqlRaw($in)
74
	{