Skip to content

Commit

Permalink
Fix heredoc code style
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipxe13 committed May 1, 2020
1 parent 8fda72f commit 5100b0a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions src/Services/Authenticate/AuthenticateTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public function createSoapRequestWithData(Fiel $fiel, DateTime $since, DateTime
$expires = $until->formatSat();
$toDigest = $this->nospaces(
<<<EOT
<u:Timestamp xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" u:Id="_0">
<u:Created>${created}</u:Created>
<u:Expires>${expires}</u:Expires>
</u:Timestamp>
EOT
<u:Timestamp xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" u:Id="_0">
<u:Created>${created}</u:Created>
<u:Expires>${expires}</u:Expires>
</u:Timestamp>
EOT
);
$digested = base64_encode(sha1($toDigest, true));
$signedInfoData = $this->createSignedInfoCanonicalExclusive($digested, '#_0');
Expand Down
8 changes: 4 additions & 4 deletions src/Services/Download/DownloadTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public function createSoapRequestWithData(Fiel $fiel, string $rfc, string $packa
{
$toDigest = $this->nospaces(
<<<EOT
<des:PeticionDescargaMasivaTercerosEntrada xmlns:des="http://DescargaMasivaTerceros.sat.gob.mx">
<des:peticionDescarga IdPaquete="${packageId}" RfcSolicitante="${rfc}"></des:peticionDescarga>
</des:PeticionDescargaMasivaTercerosEntrada>
EOT
<des:PeticionDescargaMasivaTercerosEntrada xmlns:des="http://DescargaMasivaTerceros.sat.gob.mx">
<des:peticionDescarga IdPaquete="${packageId}" RfcSolicitante="${rfc}"></des:peticionDescarga>
</des:PeticionDescargaMasivaTercerosEntrada>
EOT
);

$digested = base64_encode(sha1($toDigest, true));
Expand Down
8 changes: 4 additions & 4 deletions src/Services/Query/QueryTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public function createSoapRequestWithData(

$toDigest = $this->nospaces(
<<<EOT
<des:SolicitaDescarga xmlns:des="http://DescargaMasivaTerceros.sat.gob.mx">
<des:solicitud FechaFinal="${end}" FechaInicial="${start}" ${rfcKey}="${rfc}" RfcSolicitante="${rfc}" TipoSolicitud="${requestTypeValue}"></des:solicitud>
</des:SolicitaDescarga>
EOT
<des:SolicitaDescarga xmlns:des="http://DescargaMasivaTerceros.sat.gob.mx">
<des:solicitud FechaFinal="${end}" FechaInicial="${start}" ${rfcKey}="${rfc}" RfcSolicitante="${rfc}" TipoSolicitud="${requestTypeValue}"></des:solicitud>
</des:SolicitaDescarga>
EOT
);
$digested = base64_encode(sha1($toDigest, true));
$signedInfoData = $this->createSignedInfoCanonicalExclusive($digested);
Expand Down
8 changes: 4 additions & 4 deletions src/Services/Verify/VerifyTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public function createSoapRequestWithData(
): string {
$toDigest = $this->nospaces(
<<<EOT
<des:VerificaSolicitudDescarga xmlns:des="http://DescargaMasivaTerceros.sat.gob.mx">
<des:solicitud IdSolicitud="${requestId}" RfcSolicitante="${rfc}"></des:solicitud>
</des:VerificaSolicitudDescarga>
EOT
<des:VerificaSolicitudDescarga xmlns:des="http://DescargaMasivaTerceros.sat.gob.mx">
<des:solicitud IdSolicitud="${requestId}" RfcSolicitante="${rfc}"></des:solicitud>
</des:VerificaSolicitudDescarga>
EOT
);
$digested = base64_encode(sha1($toDigest, true));
$signedInfoData = $this->createSignedInfoCanonicalExclusive($digested);
Expand Down

0 comments on commit 5100b0a

Please sign in to comment.