Code Duplication    Length = 8-8 lines in 2 locations

Ajax/php/laravel/JsUtils.php 1 location

@@ 10-17 (lines=8) @@
7
	public function getUrl($url){
8
		return $url;
9
	}
10
	public function addViewElement($identifier,$content,$view){
11
		$controls=$view->__get("q");
12
		if (isset($controls) === false) {
13
			$controls=array ();
14
		}
15
		$controls[$identifier]=$content;
16
		$view->__set("q", $controls);
17
	}
18
19
	public function createScriptVariable($view,$view_var, $output){
20
		$view->__set($view_var,$output);

Ajax/php/phalcon/JsUtils.php 1 location

@@ 25-32 (lines=8) @@
22
		return $this->_di->get("url")->get($url);
23
	}
24
25
	public function addViewElement($identifier,$content,$view){
26
		$controls=$view->getVar("q");
27
		if (isset($controls) === false) {
28
			$controls=array ();
29
		}
30
		$controls[$identifier]=$content;
31
		$view->setVar("q", $controls);
32
	}
33
34
	public function createScriptVariable($view,$view_var, $output){
35
		$view->setVar($view_var,$output);