Code Duplication    Length = 4-4 lines in 2 locations

API/TeamSpeak3.php 2 locations

@@ 2114-2117 (lines=4) @@
2111
  * @return     boolean success
2112
  */
2113
	function gm($msg) {
2114
		if(empty($msg)) {
2115
			$this->addDebugLog('empty message given');
2116
			return $this->generateOutput(false, array('Error: empty message given'), false);
2117
		}
2118
		return $this->getData('boolean', 'gm msg='.$this->escapeText($msg));
2119
	}
2120
@@ 3896-3899 (lines=4) @@
3893
			return $this->generateOutput(false, array('Error: '.$mode.' is an invalid mode'), false);
3894
		}
3895
		
3896
		if(empty($command)) {
3897
			$this->addDebugLog('you have to enter a command');
3898
			return $this->generateOutput(false, array('Error: you have to enter a command'), false);
3899
		}
3900
		
3901
		$fetchData = $this->executeCommand($command, debug_backtrace());
3902