Skip to content

Commit 9ee7d3b

Browse files
author
Alê Borba
committed
Ajustes de identação, internacionalização, inclusão de autor e alterção da versão
1 parent be1cc0f commit 9ee7d3b

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

MoIP.php

+10-13
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* @author Herberth Amaral
66
* @author Wesley Willians
77
* @author Alê Borba
8-
* @version 1.0
8+
* @author Diego Puddu
9+
* @version 1.2
910
* @license <a href="http://www.opensource.org/licenses/bsd-license.php">BSD License</a>
1011
*/
1112
/**
@@ -948,24 +949,20 @@ public function queryInstruction($token,$client=null)
948949
$xml = new SimpleXmlElement($response->resposta);
949950
return $xml;
950951
}
951-
952-
/**
953-
* Method setRecebedor()
954-
*
952+
953+
/**
954+
* Method setReceiver()
955955
* Set the Recebedor data
956956
*
957-
* @param array $recebedor: ['LoginMoIP']
958-
* ['Apelido']
957+
* @param array $receiver: ['LoginMoIP']['Apelido']
959958
* @access public
960959
*/
961-
//Diego Puddu 08/07/2011
962-
public function setRecebedor($recebedor){
963-
if (!isset($this->xml->InstrucaoUnica->Recebedor)){
960+
public function setReceiver($receiver){
961+
if (!isset($this->xml->InstrucaoUnica->Recebedor)){
964962
$this->xml->InstrucaoUnica->addChild('Recebedor');
965-
(isset($recebedor['LoginMoIP']))?$this->xml->InstrucaoUnica->Recebedor->addChild( 'LoginMoIP' , $recebedor['LoginMoIP'] ):null;
966-
(isset($recebedor['Apelido']))?$this->xml->InstrucaoUnica->Recebedor->addChild( 'Apelido' , $recebedor['Apelido'] ):null;
963+
(isset($receiver['LoginMoIP']))?$this->xml->InstrucaoUnica->Recebedor->addChild( 'LoginMoIP' , $receiver['LoginMoIP'] ):null;
964+
(isset($receiver['Apelido']))?$this->xml->InstrucaoUnica->Recebedor->addChild( 'Apelido' , $receiver['Apelido'] ):null;
967965
}
968966
}
969-
970967
}
971968
?>

0 commit comments

Comments
 (0)