Skip to content

Commit

Permalink
. use of null !== instead of !is_null()
Browse files Browse the repository at this point in the history
  • Loading branch information
brunochalopin committed May 24, 2012
1 parent f757aea commit ec33307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Goutte/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected function doRequest($request)
strtoupper($request->getMethod()),
$request->getUri(),
array_merge($this->headers, $headers),
in_array($request->getMethod(), array('GET','HEAD')) ? null : !is_null($request->getContent()) ? $request->getContent() : $request->getParameters()
in_array($request->getMethod(), array('GET','HEAD')) ? null : null !== $request->getContent() ? $request->getContent() : $request->getParameters()
);

if ($this->auth !== null) {
Expand Down

0 comments on commit ec33307

Please sign in to comment.