@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | return $inexactContentType; |
| 39 | 39 | } |
| 40 | 40 | // filter out transmitted types which have a zero quality |
| 41 | - $acceptTypes = array_filter($acceptTypes, function(MediaType $accpetType){ |
|
| 41 | + $acceptTypes = array_filter($acceptTypes, function (MediaType $accpetType) { |
|
| 42 | 42 | return 0 !== $accpetType->getQualityValue(); |
| 43 | 43 | }); |
| 44 | 44 | // reduce acceptable types down to any that matches are exact set. |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | return $exactMatch[0]->getMimeType(); |
| 51 | 51 | } |
| 52 | 52 | // filter down all remaining accept types to any that are a partial match for inexact |
| 53 | - $acceptTypes = array_filter($acceptTypes, function(MediaType $acceptType) use ($inexactContentType){ |
|
| 53 | + $acceptTypes = array_filter($acceptTypes, function (MediaType $acceptType) use ($inexactContentType){ |
|
| 54 | 54 | return 0 < $acceptType->getMatchingRating($inexactContentType); |
| 55 | 55 | }); |
| 56 | 56 | // if no inexact type go boom. |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | |
| 413 | 413 | $textLen = strlen($text); |
| 414 | 414 | if ($textIndex >= $textLen || '.' != $text[$textIndex]) { |
| 415 | - return $qualityValue * 1000; |
|
| 415 | + return $qualityValue*1000; |
|
| 416 | 416 | } |
| 417 | 417 | |
| 418 | 418 | ++$textIndex; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | return $inexactContentType; |
| 39 | 39 | } |
| 40 | 40 | // filter out transmitted types which have a zero quality |
| 41 | - $acceptTypes = array_filter($acceptTypes, function(MediaType $accpetType){ |
|
| 41 | + $acceptTypes = array_filter($acceptTypes, function(MediaType $accpetType) { |
|
| 42 | 42 | return 0 !== $accpetType->getQualityValue(); |
| 43 | 43 | }); |
| 44 | 44 | // reduce acceptable types down to any that matches are exact set. |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | return $exactMatch[0]->getMimeType(); |
| 51 | 51 | } |
| 52 | 52 | // filter down all remaining accept types to any that are a partial match for inexact |
| 53 | - $acceptTypes = array_filter($acceptTypes, function(MediaType $acceptType) use ($inexactContentType){ |
|
| 53 | + $acceptTypes = array_filter($acceptTypes, function(MediaType $acceptType) use ($inexactContentType) { |
|
| 54 | 54 | return 0 < $acceptType->getMatchingRating($inexactContentType); |
| 55 | 55 | }); |
| 56 | 56 | // if no inexact type go boom. |