Code Duplication    Length = 11-11 lines in 2 locations

src/Darya/Database/Query/AbstractSqlTranslator.php 2 locations

@@ 199-209 (lines=11) @@
196
	 * @param mixed $identifier
197
	 * @return mixed
198
	 */
199
	protected function identifier($identifier) {
200
		if (is_array($identifier)) {
201
			return array_map(array($this, 'identifier'), $identifier);
202
		}
203
		
204
		if ($this->translatable($identifier)) {
205
			return $this->translateValue($identifier);
206
		}
207
		
208
		return $this->resolveIdentifier($identifier);
209
	}
210
	
211
	/**
212
	 * Determine whether the given value is translatable.
@@ 253-263 (lines=11) @@
250
	 * @param array|string $value
251
	 * @return array|string
252
	 */
253
	protected function value($value) {
254
		if ($this->translatable($value)) {
255
			return $this->translateValue($value);
256
		}
257
		
258
		if (is_array($value)) {
259
			return array_map(array($this, 'value'), $value);
260
		}
261
		
262
		return $this->resolveValue($value);
263
	}
264
	
265
	/**
266
	 * Resolve a placeholder or constant for the given parameter value.