| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function onPayboxIpnResponse(PayboxResponseEvent $event) |
||
| 43 | { |
||
| 44 | $path = sprintf('%s/../data/%s', $this->rootDir, date('Y\/m\/d\/')); |
||
| 45 | $this->filesystem->mkdir($path); |
||
| 46 | |||
| 47 | $content = sprintf('Signature verification : %s%s', $event->isVerified() ? 'OK' : 'KO', PHP_EOL); |
||
| 48 | foreach ($event->getData() as $key => $value) { |
||
| 49 | $content .= sprintf("%s:%s%s", $key, $value, PHP_EOL); |
||
| 50 | } |
||
| 51 | |||
| 52 | file_put_contents( |
||
| 53 | sprintf('%s%s.txt', $path, time()), |
||
| 54 | $content |
||
| 55 | ); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |