@@ -24,9 +24,9 @@ |
||
24 | 24 | $extension = $bundle->getContainerExtension(); |
25 | 25 | $container = new ContainerBuilder(); |
26 | 26 | $container->setParameter('kernel.debug', true); |
27 | - $container->setParameter('kernel.cache_dir', sys_get_temp_dir() . '/guzzle'); |
|
27 | + $container->setParameter('kernel.cache_dir', sys_get_temp_dir().'/guzzle'); |
|
28 | 28 | $container->setParameter('kernel.bundles', array()); |
29 | - $container->setParameter('kernel.root_dir', __DIR__ . '/Fixtures'); |
|
29 | + $container->setParameter('kernel.root_dir', __DIR__.'/Fixtures'); |
|
30 | 30 | |
31 | 31 | $container->set('validator', $this->getMock('\Symfony\Component\Validator\Validator\ValidatorInterface')); |
32 | 32 |
@@ -106,9 +106,9 @@ discard block |
||
106 | 106 | ); |
107 | 107 | } |
108 | 108 | } catch (Exception\Declined $e) { |
109 | - return $this->errorResponse('Payment declined: ' . print_r($e->getErrors(), true)); |
|
109 | + return $this->errorResponse('Payment declined: '.print_r($e->getErrors(), true)); |
|
110 | 110 | } catch (Exception\Runtime $e) { |
111 | - return $this->errorResponse('Unexpected error occured: ' . print_r($e, true)); |
|
111 | + return $this->errorResponse('Unexpected error occured: '.print_r($e, true)); |
|
112 | 112 | }; |
113 | 113 | } |
114 | 114 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | return new RedirectResponse($this->router->generate('cardinity_client.payment_success')); |
170 | 170 | } |
171 | 171 | } catch (Exception\Runtime $e) { |
172 | - return $this->errorResponse('Unexpected error occured. ' . $e->getMessage() . ': ' . print_r($e->getErrors(), true)); |
|
172 | + return $this->errorResponse('Unexpected error occured. '.$e->getMessage().': '.print_r($e->getErrors(), true)); |
|
173 | 173 | }; |
174 | 174 | |
175 | 175 | return $this->errorResponse('Unexpected response while finalizing payment'); |