@@ -36,7 +36,7 @@ |
||
| 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 | { |
@@ -43,11 +43,11 @@ |
||
| 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 | } |