Code Duplication    Length = 18-18 lines in 2 locations

lib/modules/mod_cacherss.php 1 location

@@ 169-186 (lines=18) @@
166
				$element = &$element[$n];
167
			}
168
		}
169
		switch ($n) {
170
			case 'textinput':
171
			case 'item':
172
			case 'rss':
173
			case 'channel':
174
			case 'image':
175
			case 'rdf:RDF':
176
			case 'rdf:Seq':
177
			case 'rdf:li':
178
			case 'items':
179
				break;
180
			default:
181
				if (!$element) {
182
					$element = "";
183
				}
184
				$element .= $data;
185
			break;
186
		}
187
	}
188
189
	public function current() {

lib/modules/mod_rss.php 1 location

@@ 208-225 (lines=18) @@
205
			foreach ($this->ns as $n) {
206
				$element = &$element[$n];
207
			}
208
			switch ($n) {
209
				case 'item':
210
				case 'rss':
211
				case 'channel':
212
				case 'image':
213
				case 'rdf:RDF':
214
				case 'rdf:Seq':
215
				case 'rdf:li':
216
				case 'items':
217
218
				break;
219
				default:
220
					if (!$element) {
221
						$element = "";
222
					}
223
					$element .= $data;
224
				break;
225
			}
226
		}
227
228