Code Duplication    Length = 14-14 lines in 2 locations

Ajax/JsUtils.php 2 locations

@@ 62-75 (lines=14) @@
59
	 * @param JqueryUI $ui
60
	 * @return \Ajax\JqueryUI
61
	 */
62
	public function ui($ui=NULL) {
63
		if ($ui!==NULL) {
64
			$this->_ui=$ui;
65
			if ($this->js!=null) {
66
				$this->js->ui($ui);
67
				$ui->setJs($this);
68
			}
69
			$bs=$this->bootstrap();
70
			if (isset($bs)) {
71
				$this->conflict();
72
			}
73
		}
74
		return $this->_ui;
75
	}
76
77
	/**
78
	 *
@@ 82-95 (lines=14) @@
79
	 * @param Bootstrap $bootstrap
80
	 * @return \Ajax\Bootstrap
81
	 */
82
	public function bootstrap($bootstrap=NULL) {
83
		if ($bootstrap!==NULL) {
84
			$this->_bootstrap=$bootstrap;
85
			if ($this->js!=null) {
86
				$this->js->bootstrap($bootstrap);
87
				$bootstrap->setJs($this);
88
			}
89
			$ui=$this->ui();
90
			if (isset($ui)) {
91
				$this->conflict();
92
			}
93
		}
94
		return $this->_bootstrap;
95
	}
96
97
	/**
98
	 *