Code Duplication    Length = 12-13 lines in 2 locations

src/Publisher.php 2 locations

@@ 427-438 (lines=12) @@
424
	 * @param array $options
425
	 * @return string
426
	 */
427
	final public function get($path, $header = array(), $options = array()) {
428
		if (isset($this->logger) && !is_null($this->logger)) {
429
			$this->logger->info("Hi, from post, path is " . $path);
430
		}
431
		return $this->requestGate(
432
			'GET',
433
			$path,
434
			$header,
435
			array(),
436
			$options
437
		);
438
	}
439
440
	/**
441
	 * post proxy
@@ 449-461 (lines=13) @@
446
	 * @param array $options
447
	 * @return string
448
	 */
449
	final public function post($path, $body, $header = array(), $options = array()) {
450
451
		if (isset($this->logger) && !is_null($this->logger)) {
452
			$this->logger->info("Hi, from post " . $path);
453
		}
454
		return $this->requestGate(
455
			'POST',
456
			$path,
457
			$header,
458
			$body,
459
			$options
460
		);
461
	}
462
463
	/**
464
	 * delete proxy