Code Duplication    Length = 7-7 lines in 2 locations

lib/ar/formats/csv.php 1 location

@@ 236-242 (lines=7) @@
233
			parent::__construct( $keyedElements );
234
		}
235
236
		public function configure( $name, $value = null ) {
237
			if ( is_array( $name ) ) {
238
				$this->configuration = $name + $this->configuration;
239
			} else {
240
				$this->configuration[$name] = $value;
241
			}
242
		}
243
244
		public function __toString() {
245
			$elements = (array) $this;

lib/ar/http/cookie.php 1 location

@@ 56-62 (lines=7) @@
53
			return $this->values[ $name ];
54
		}
55
56
		public function configure( $name, $value = null ) {
57
			if ( is_array( $name ) ) {
58
				$this->configuration = $name + $this->configuration;
59
			} else {
60
				$this->configuration[$name] = $value;
61
			}
62
		}
63
64
		public function save( $name = null ) {
65
			if ( $name == 'ARSessionCookie' ) {