Code Duplication    Length = 8-8 lines in 2 locations

lib/ar/html/form.php 2 locations

@@ 334-341 (lines=8) @@
331
			);
332
		}
333
334
		public function __set($name, $value) {
335
			if ($name[0] == '_') {
336
				$name = substr($name, 1);
337
			}
338
			if ( in_array( $name, array('action', 'method', 'name', 'class', 'id', 'requiredLabel' ) ) ) {
339
				$this->{$name} = $value;
340
			}
341
		}
342
343
		public function __get($name) {
344
			if ($name[0] == '_') {
@@ 343-350 (lines=8) @@
340
			}
341
		}
342
343
		public function __get($name) {
344
			if ($name[0] == '_') {
345
				$name = substr($name, 1);
346
			}
347
			if ( in_array( $name, array('action', 'method', 'name', 'class', 'id', 'requiredLabel') ) ) {
348
				return $this->{$name};
349
			}
350
		}
351
	}
352
353
	class ar_html_formButton {