erandirjunior /
plug-http
| 1 | <?php |
||
| 2 | |||
| 3 | namespace PlugHttp\Utils; |
||
| 4 | |||
| 5 | use PlugHttp\Globals\Server; |
||
| 6 | |||
| 7 | class ContentHelper |
||
| 8 | { |
||
| 9 | public static function contentIs(Server $server, $type): bool |
||
| 10 | { |
||
| 11 | return strpos($server->getContentType(), $type) !== false; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 12 | } |
||
| 13 | } |