| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function print(): string |
||
| 31 | { |
||
| 32 | return sprintf("```php\n%s```" . PHP_EOL, str_replace( |
||
| 33 | PHP_EOL . PHP_EOL, |
||
| 34 | PHP_EOL . PHP_EOL . $this->ioSamples->map(function ($ioSample): string { |
||
| 35 | return implode('', [ |
||
| 36 | sprintf('// uri: %s' . PHP_EOL, $ioSample->uri), |
||
| 37 | sprintf('// sql: %s' . PHP_EOL, $ioSample->sql), |
||
| 38 | ]); |
||
| 39 | })->implode(''), |
||
| 40 | str_replace('<?php |
||
| 41 | |||
| 42 | declare(strict_types=1); |
||
| 43 | |||
| 44 | ', '', (string) file_get_contents($this->code)) |
||
| 45 | )); |
||
| 48 |