Skip to content

Commit

Permalink
Minor code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Maisonneuve committed Mar 14, 2014
1 parent d83a228 commit 3017872
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Paybox/System/Base/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getParameters()
{
if (null === $this->getParameter('PBX_HMAC')) {
$this->setParameter('PBX_TIME', date('c'));
$this->setParameter('PBX_HMAC', strtoupper(parent::computeHmac()));
$this->setParameter('PBX_HMAC', strtoupper($this->computeHmac()));
}

$resolver = new ParameterResolver($this->globals['currencies']);
Expand Down
6 changes: 3 additions & 3 deletions Paybox/System/Base/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class Response
/**
* Contructor.
*
* @param HttpRequest $request
* @param LoggerInterface $logger
* @param EventDispatcher $dispatcher
* @param HttpRequest $request
* @param LoggerInterface $logger
* @param EventDispatcherInterface $dispatcher
*/
public function __construct(HttpRequest $request, LoggerInterface $logger, EventDispatcherInterface $dispatcher)
{
Expand Down
8 changes: 4 additions & 4 deletions Paybox/System/Cancellation/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class Request extends Paybox
/**
* Constructor.
*
* @param array $parameters
* @param array $servers
* @param FormFactoryInterface $factory
* @param array $parameters
* @param array $servers
* @param TransportInterface $transport
*/
public function __construct(array $parameters, array $servers, TransportInterface $transport = null)
{
Expand Down Expand Up @@ -55,7 +55,7 @@ public function getParameters()
{
if (null === $this->getParameter('HMAC')) {
$this->setParameter('TIME', date('c'));
$this->setParameter('HMAC', strtoupper(parent::computeHmac()));
$this->setParameter('HMAC', strtoupper($this->computeHmac()));
}

$resolver = new ParameterResolver();
Expand Down

0 comments on commit 3017872

Please sign in to comment.