Skip to content

Commit dca4fee

Browse files
committed
Whitespace changes
1 parent 9aac2bb commit dca4fee

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Bitworking/Mimeparse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public static function bestMatch($supported, $header)
217217
foreach ($supported as $index => $mimeType) {
218218
list($quality, $fitness) = self::qualityAndFitnessParsed($mimeType, $parsedHeader);
219219
if (!empty($quality)) {
220-
// Mime-types closer to the beginning of the array are
220+
// Mime-types closer to the beginning of the array are
221221
// preferred. This preference score is used to break ties.
222222
$preference = 0 - $index;
223223
$weightedMatches[] = array(
@@ -227,8 +227,8 @@ public static function bestMatch($supported, $header)
227227
}
228228
}
229229

230-
// Note that since fitness and preference are present in
231-
// $weightedMatches they will also be used when sorting (after quality
230+
// Note that since fitness and preference are present in
231+
// $weightedMatches they will also be used when sorting (after quality
232232
// level).
233233
array_multisort($weightedMatches);
234234
$firstChoice = array_pop($weightedMatches);

tests/Bitworking/MimeparseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public function testParseMediaRange()
1313
array('q' => '1'),
1414
'xml'
1515
);
16-
16+
1717
$this->assertEquals($expected, Mimeparse::parseMediaRange('application/xml; q=1'));
1818
}
19-
19+
2020
public function testParseMediaRangeWithGenericSubtype()
2121
{
2222
$expected = array(
@@ -25,7 +25,7 @@ public function testParseMediaRangeWithGenericSubtype()
2525
array('q' => '1'),
2626
'xml'
2727
);
28-
28+
2929
$this->assertEquals($expected, Mimeparse::parseMediaRange('application/xhtml+xml; q=1'));
3030
}
3131

0 commit comments

Comments
 (0)