Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Reader/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ public static function import($uri, $etag = null, $lastModified = null)
return self::importString($data);
}
$response = $client->send();
if ((int)$response->getStatusCode() !== 200) {
if ((int) $response->getStatusCode() !== 200) {
throw new Exception\RuntimeException('Feed failed to load, got response code ' . $response->getStatusCode());
}
$responseXml = $response->getBody();
$cache->setItem($cacheId, $responseXml);
return self::importString($responseXml);
} else {
$response = $client->send();
if ((int)$response->getStatusCode() !== 200) {
if ((int) $response->getStatusCode() !== 200) {
throw new Exception\RuntimeException('Feed failed to load, got response code ' . $response->getStatusCode());
}
$reader = self::importString($response->getBody());
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function setLink($link)
*/
public function setCommentCount($count)
{
if (!is_numeric($count) || (int)$count != $count || (int) $count < 0) {
if (!is_numeric($count) || (int) $count != $count || (int) $count < 0) {
throw new Exception\InvalidArgumentException('Invalid parameter: "count" must be a positive integer number or zero');
}
$this->data['commentCount'] = (int) $count;
Expand Down

0 comments on commit a04474f

Please sign in to comment.