Code Duplication    Length = 8-8 lines in 2 locations

source/Threema/Console/Command/Base.php 2 locations

@@ 136-143 (lines=8) @@
133
	 * @param string $pos
134
	 * @return null|string
135
	 */
136
	public function getArgumentPrivateKey($pos) {
137
		$content = Common::getPrivateKey($this->getArgumentStringOrFileContent($pos));
138
		$cryptTool = CryptTool::getInstance();
139
		if(null !== $content) {
140
			return $cryptTool->hex2bin($content);
141
		}
142
		return null;
143
	}
144
145
	/**
146
	 * @param string $pos
@@ 149-156 (lines=8) @@
146
	 * @param string $pos
147
	 * @return null|string
148
	 */
149
	public function getArgumentPublicKey($pos) {
150
		$content = Common::getPublicKey($this->getArgumentStringOrFileContent($pos));
151
		$cryptTool = CryptTool::getInstance();
152
		if(null !== $content) {
153
			return $cryptTool->hex2bin($content);
154
		}
155
		return null;
156
	}
157
158
	/**
159
	 * @param string $pos