Passed
Pull Request — master (#261)
by Christopher
02:58
created
src/POData/HttpProcessUtility.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 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) && 0 !== $acceptType->getQualityValue();
44 44
         });
45
-        if(count($exactMatchs)!== 0){
45
+        if (count($exactMatchs) !== 0) {
46 46
             return $exactMatchs[0]->getMimeType();
47 47
         }
48 48
         foreach ($acceptTypes as $acceptType) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 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) && 0 !== $acceptType->getQualityValue();
44 44
         });
45
-        if(count($exactMatchs)!== 0){
45
+        if(count($exactMatchs)!== 0) {
46 46
             return $exactMatchs[0]->getMimeType();
47 47
         }
48 48
         foreach ($acceptTypes as $acceptType) {
Please login to merge, or discard this patch.