Completed
Push — master ( 10633c...295847 )
by Bálint
02:37
created
src/POData/Writers/Json/JsonODataV2Writer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * Determines if the given writer is capable of writing the response or not
37 37
      * @param Version $responseVersion the OData version of the response
38 38
      * @param string $contentType the Content Type of the response
39
-     * @return boolean true if the writer can handle the response, false otherwise
39
+     * @return boolean|null true if the writer can handle the response, false otherwise
40 40
      */
41 41
     public function canHandle(Version $responseVersion, $contentType)
42 42
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@
 block discarded – undo
43 43
         $parts = explode(";", $contentType);
44 44
 
45 45
         //special case, in v3 verbose is the v2 writer
46
-        if($responseVersion == Version::v3()){
46
+        if ($responseVersion == Version::v3()) {
47 47
             return in_array(MimeTypes::MIME_APPLICATION_JSON, $parts) && (in_array('odata=verbose', $parts) || in_array('odata=minimal', $parts));
48 48
         }
49 49
 
50
-        if($responseVersion != Version::v2()){
50
+        if ($responseVersion != Version::v2()) {
51 51
             return false;
52 52
         }
53 53
     }
Please login to merge, or discard this patch.