Code Duplication    Length = 9-10 lines in 2 locations

lib/modules/mod_cacherss.php 1 location

@@ 131-139 (lines=9) @@
128
			}
129
		}
130
		$this->ns[] = $name;
131
		switch ($name) {
132
			default:
133
				if (is_array($attribs)) {
134
					foreach ($attribs as $key => $value) {
135
						$element[$name . ":" . $key] = $value;
136
					}
137
				}
138
				$element[$name] = $newElement;
139
		}
140
	}
141
142
	protected function endElement($parser, $name) {

lib/modules/mod_rss.php 1 location

@@ 176-185 (lines=10) @@
173
				$element = &$element[$n];
174
			}
175
			$this->ns[] = $name;
176
			switch ($name) {
177
				default:
178
					$element[$name] = $newElement;
179
					if ($attribs) {
180
						foreach($attribs as $attribName => $attribValue ) {
181
							$element[$name.':'.$attribName] = $attribValue;
182
						}
183
					}
184
				break;
185
			}
186
		}
187
188
		public function endElement($parser, $name) {