Code Duplication    Length = 14-14 lines in 2 locations

Ajax/JsUtils.php 2 locations

@@ 89-102 (lines=14) @@
86
	 * @param JqueryUI $ui
87
	 * @return \Ajax\JqueryUI
88
	 */
89
	public function ui($ui=NULL) {
90
		if ($ui!==NULL) {
91
			$this->_ui=$ui;
92
			if ($this->js!=null) {
93
				$this->js->ui($ui);
94
				$ui->setJs($this);
95
			}
96
			$bs=$this->bootstrap();
97
			if (isset($bs)) {
98
				$this->conflict();
99
			}
100
		}
101
		return $this->_ui;
102
	}
103
104
	/**
105
	 *
@@ 109-122 (lines=14) @@
106
	 * @param Bootstrap $bootstrap
107
	 * @return \Ajax\Bootstrap
108
	 */
109
	public function bootstrap($bootstrap=NULL) {
110
		if ($bootstrap!==NULL) {
111
			$this->_bootstrap=$bootstrap;
112
			if ($this->js!=null) {
113
				$this->js->bootstrap($bootstrap);
114
				$bootstrap->setJs($this);
115
			}
116
			$ui=$this->ui();
117
			if (isset($ui)) {
118
				$this->conflict();
119
			}
120
		}
121
		return $this->_bootstrap;
122
	}
123
124
	/**
125
	 *