Code Duplication    Length = 8-8 lines in 3 locations

Ajax/lib/CDNBase.php 1 location

@@ 26-33 (lines=8) @@
23
		return $this->jsUrl;
24
	}
25
26
	public function setJsUrl($jsUrl, $local=null) {
27
		$this->jsUrl=$jsUrl;
28
		if (isset($local)===false) {
29
			$local=PhalconUtils::startsWith($jsUrl, "http")===false;
30
		}
31
		$this->setLocal($local);
32
		return $this;
33
	}
34
35
	protected function getUrlOrCss($element, $key) {
36
		if (isset($element))

Ajax/lib/CDNGuiGen.php 1 location

@@ 66-73 (lines=8) @@
63
		return PhalconUtils::javascriptInclude($url, $this->local)."\n".PhalconUtils::stylesheetLink($css, $this->localCss);
64
	}
65
66
	public function setCssUrl($cssUrl, $local=null) {
67
		$this->cssUrl=$cssUrl;
68
		if (isset($local)===false) {
69
			$local=PhalconUtils::startsWith($cssUrl, "http")===false;
70
		}
71
		$this->setLocalCss($local);
72
		return $this;
73
	}
74
75
	public function getLocalCss() {
76
		return $this->localCss;

Ajax/lib/CDNCoreCss.php 1 location

@@ 33-40 (lines=8) @@
30
		;
31
	}
32
33
	public function setCssUrl($cssUrl, $local=null) {
34
		$this->cssUrl=$cssUrl;
35
		if (isset($local)===false) {
36
			$local=PhalconUtils::startsWith($cssUrl, "http")===false;
37
		}
38
		$this->setLocalCss($local);
39
		return $this;
40
	}
41
42
	public function getLocalCss() {
43
		return $this->localCss;