Skip to content

Commit

Permalink
Replace to str_contains()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Mar 13, 2023
1 parent ef9c293 commit 71319e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ final protected function getQualityHeader(string $serverIndex, string $name): ar
$headerSplit = preg_split('/\s*;\s*/', trim($part), -1, PREG_SPLIT_NO_EMPTY);

foreach ($headerSplit as $headerPart) {
if (strpos($headerPart, '=') !== false) {
if (str_contains($headerPart, '=')) {
$split = explode('=', $headerPart, 2);
if ($split[0] === 'q') {
$headerParts['quality'] = (float)$split[1];
Expand Down

0 comments on commit 71319e7

Please sign in to comment.