Code Duplication    Length = 11-11 lines in 2 locations

lib/filter/office.php 2 locations

@@ 61-71 (lines=11) @@
58
		\OCA\Documents\Filter::add($mimeSpec['write']['target'], $this);
59
	}
60
61
	public function read($data){
62
		return array(
63
			'mimetype' => $this->readSpec['target'],
64
			'content' => 
65
				\OCA\Documents\Converter::convert(
66
						$data['content'], 
67
						$this->readSpec['format'],
68
						$this->readSpec['extension']
69
				)
70
		);
71
	}
72
	
73
	public function write($data){
74
		return array(
@@ 73-83 (lines=11) @@
70
		);
71
	}
72
	
73
	public function write($data){
74
		return array(
75
			'mimetype' => $this->writeSpec['target'],
76
			'content' => 
77
				\OCA\Documents\Converter::convert(
78
						$data['content'], 
79
						$this->writeSpec['format'],
80
						$this->writeSpec['extension']
81
				)
82
		);
83
	}
84
85
}
86