Code Duplication    Length = 2-2 lines in 3 locations

src/Query/SelectAbstract.php 3 locations

@@ 101-102 (lines=2) @@
98
	protected function addColumn($expr1, $expr2 = null, $func = null){
99
		// @todo: quotes
100
		switch(true){
101
			case  $expr2 && $func:
102
				$col = sprintf('%s(%s) AS %s', strtoupper($func), $this->quote($expr1), $this->quote($expr2)); break;
103
			case  $expr2 && !$func:
104
				$col = sprintf('%s AS %s', $this->quote($expr1), $this->quote($expr2)); break;
105
			case !$expr2 && $func:
@@ 103-104 (lines=2) @@
100
		switch(true){
101
			case  $expr2 && $func:
102
				$col = sprintf('%s(%s) AS %s', strtoupper($func), $this->quote($expr1), $this->quote($expr2)); break;
103
			case  $expr2 && !$func:
104
				$col = sprintf('%s AS %s', $this->quote($expr1), $this->quote($expr2)); break;
105
			case !$expr2 && $func:
106
				$col = sprintf('%s(%s)', strtoupper($func), $this->quote($expr1)); break;
107
			case !$expr2 && !$func:
@@ 105-106 (lines=2) @@
102
				$col = sprintf('%s(%s) AS %s', strtoupper($func), $this->quote($expr1), $this->quote($expr2)); break;
103
			case  $expr2 && !$func:
104
				$col = sprintf('%s AS %s', $this->quote($expr1), $this->quote($expr2)); break;
105
			case !$expr2 && $func:
106
				$col = sprintf('%s(%s)', strtoupper($func), $this->quote($expr1)); break;
107
			case !$expr2 && !$func:
108
			default:
109
				$col = $this->quote($expr1);