Code Duplication    Length = 8-8 lines in 2 locations

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);

Ajax/php/laravel/JsUtils.php 1 location

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