Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| RemoveBackSlash | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| handle | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 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 | return $next($data); |
| 13 | } |
| 14 | } |