Passed
Pull Request — master (#261)
by Christopher
03:33
created
src/POData/HttpProcessUtility.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@
 block discarded – undo
39 39
         }
40 40
 
41 41
         $acceptTypes = self::mimeTypesFromAcceptHeaders($acceptTypesText);
42
-        $exactMatchs = array_uintersect($acceptTypes, $exactContentTypes, function(MediaType $acceptType, $exactType){
42
+        $exactMatchs = array_uintersect($acceptTypes, $exactContentTypes, function (MediaType $acceptType, $exactType) {
43 43
             return strcasecmp($acceptType->getMimeType(), $exactType);
44 44
         });
45
-        if(count($exactMatchs)!== 0){
45
+        if (count($exactMatchs) !== 0) {
46 46
             $selectedContentType = $exactMatchs[0]->getMimeType();
47 47
             $selectedQualityValue = $exactMatchs[0]->getQualityValue();
48
-        }else {
48
+        } else {
49 49
             foreach ($acceptTypes as $acceptType) {
50 50
                 $matchingParts = $acceptType->getMatchingRating($inexactContentType);
51 51
                 if ($matchingParts < 0) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@
 block discarded – undo
39 39
         }
40 40
 
41 41
         $acceptTypes = self::mimeTypesFromAcceptHeaders($acceptTypesText);
42
-        $exactMatchs = array_uintersect($acceptTypes, $exactContentTypes, function(MediaType $acceptType, $exactType){
42
+        $exactMatchs = array_uintersect($acceptTypes, $exactContentTypes, function(MediaType $acceptType, $exactType) {
43 43
             return strcasecmp($acceptType->getMimeType(), $exactType);
44 44
         });
45
-        if(count($exactMatchs)!== 0){
45
+        if(count($exactMatchs)!== 0) {
46 46
             $selectedContentType = $exactMatchs[0]->getMimeType();
47 47
             $selectedQualityValue = $exactMatchs[0]->getQualityValue();
48
-        }else {
48
+        } else {
49 49
             foreach ($acceptTypes as $acceptType) {
50 50
                 $matchingParts = $acceptType->getMatchingRating($inexactContentType);
51 51
                 if ($matchingParts < 0) {
Please login to merge, or discard this patch.