Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| RemoveBackSlash | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| handle | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Filters\AIResponseFilter; |
| 4 | |
| 5 | use Closure; |
| 6 | |
| 7 | class RemoveBackSlash |
| 8 | { |
| 9 | public function handle($data, Closure $next) |
| 10 | { |
| 11 | $data = str_replace("\'", "'", $data); |
| 12 | |
| 13 | return $next($data); |
| 14 | } |
| 15 | } |