Code Duplication    Length = 7-7 lines in 2 locations

Ubiquity/controllers/auth/AuthController.php 2 locations

@@ 307-313 (lines=7) @@
304
	 */
305
	public function finalize() {
306
		if(!UResponse::isJSON()){
307
			if(!URequest::isAjax()){
308
				if(isset($this->_controllerInstance)){
309
					call_user_func_array(array($this->_controllerInstance, 'parent::finalize'), []);
310
				}else{
311
					parent::finalize();	
312
				}
313
			}
314
			$this->jquery->execAtLast("if($('#_userInfo').length){\$('#_userInfo').html(".preg_replace("/$\R?^/m", "",Javascript::prep_element($this->info())).");}");
315
			echo $this->jquery->compile();
316
		}
@@ 324-330 (lines=7) @@
321
	 * @see \Ubiquity\controllers\ControllerBase::initialize()
322
	 */
323
	public function initialize() {
324
		if(!URequest::isAjax()){
325
			if(isset($this->_controllerInstance)){
326
				call_user_func_array(array($this->_controllerInstance, 'parent::initialize'), []);
327
			}else{
328
				parent::initialize();
329
			}
330
		}
331
	}
332
	
333
	/**