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

Commit

Permalink
Merge branch 'hotfix/4352' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Apr 29, 2013
178 parents 59f3ba8 + 63d873e + a320b87 + 911d7bc + 5b99e49 + 916ccaf + 363002c + de6a155 + 81d4652 + 8677f66 + bea2340 + 53107b1 + e575de9 + c8a932b + d08629f + a04474f + 3fef53d + 1f4b9ed + d263f1c + c790aed + 412585a + b5e6b02 + 9ac81f3 + 9f28eab + 2e7e2e2 + 7c64770 + b82fa59 + 4190868 + 3a6b7ad + 8e745f6 + bab7086 + c5a5d19 + b468bc1 + d79794c + 508b344 + d16deed + f38e96a + c4a3687 + 54465f7 + 4ad15e4 + 9aa47da + 619d24d + ddfa8f2 + 8e7172b + e5fc69f + 284a721 + 6d3db4c + b99e8c3 + a52dcef + 1d21066 + cccc24c + 81bd699 + dfb38ed + b796f3d + d49dbc2 + 547433c + 0c9ce04 + a76e26a + 2914396 + 7ca3746 + f1b292d + 406112f + 5a9edd3 + f65c9f6 + c54156c + 5e55e82 + 352e42b + fa459f5 + 3eff137 + 3648ab6 + 4096125 + 0037391 + 9bdfcd9 + 6cd1498 + ecac99d + 199ed75 + b8507f7 + ef400bd + decb6ae + 860b39d + 243eca6 + d56af72 + 1aaf7f9 + 26b27a9 + 40cd50e + 986898b + d2780b7 + 49abb1d + cb5a738 + 21d3bef + 4748875 + 3331086 + bfed36c + b56e9b8 + 765b017 + b2cddce + 1c63803 + dd490e0 + c0425c2 + 128ed7f + 4d88940 + 94b3f1e + 9a0d8cf + 12135ad + 1169a58 + 6cdb5dc + 15950e5 + 7e68fb2 + 4bda4a9 + 537893f + 4cf10f8 + dd5b294 + 3ac5190 + 63d8503 + de5ff9e + f8868a0 + e3f8a27 + 634cf99 + c2cd236 + 189672f + d50054c + 8fb183a + 81a21d6 + ba78039 + 2cc9607 + bbd31f7 + aff5dfd + 3daad46 + a2bd1ba + cddc550 + eadb29a + 339c074 + 543ff20 + 732e048 + 8ec7eaf + 25fde7d + 5215c37 + a31404d + 1328e20 + 33a507b + 012928d + 379d601 + b7d4bbd + c1c633c + 6a72de0 + 7968e2e + 51d3d2a + 7e58137 + abedf39 + 896ef54 + cf89f92 + 0df0d18 + 3d7cc47 + 8abd6e8 + e20a954 + 2f039d3 + 88c06cc + 3e03422 + 096a05e + 6c7650a + a4c7b54 + ef5460e + 898d44f + c554ea2 + ffcf7bc + 2adc6bf + 4179b4d + 5907ce0 + fc664b1 + 2ee9d9a + 7fb5cbc + acda3d1 + 6db0d22 + 2bbd38f + 3144a5b + 7efb048 + 3d18a84 + 7fad774 commit 758e5c3
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Reader/Entry/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function getTitle()
/**
* Get the number of comments/replies for current entry
*
* @return integer
* @return int
*/
public function getCommentCount()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Entry/EntryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getTitle();
/**
* Get the number of comments/replies for current entry
*
* @return integer
* @return int
*/
public function getCommentCount();

Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Extension/Atom/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function getTitle()
/**
* Get the number of comments/replies for current entry
*
* @return integer
* @return int
*/
public function getCommentCount()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Extension/Atom/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public function getImage()
if (!$imageUrl) {
$image = null;
} else {
$image = array('uri'=>$imageUrl);
$image = array('uri' => $imageUrl);
}

$this->data['image'] = $image;
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Feed/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ protected function indexEntries()
$entries = array();
$entries = $this->xpath->evaluate('//atom:entry');

foreach ($entries as $index=>$entry) {
foreach ($entries as $index => $entry) {
$this->entries[$index] = $entry;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Feed/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ protected function indexEntries()
$entries = $this->xpath->evaluate('//rss:item');
}

foreach ($entries as $index=>$entry) {
foreach ($entries as $index => $entry) {
$this->entries[$index] = $entry;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Writer/AbstractFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function setCopyright($copyright)
/**
* Set the feed creation date
*
* @param null|integer|DateTime
* @param null|int|DateTime
* @throws Exception\InvalidArgumentException
* @return AbstractFeed
*/
Expand All @@ -147,7 +147,7 @@ public function setDateCreated($date = null)
/**
* Set the feed modification date
*
* @param null|integer|DateTime
* @param null|int|DateTime
* @throws Exception\InvalidArgumentException
* @return AbstractFeed
*/
Expand All @@ -169,7 +169,7 @@ public function setDateModified($date = null)
/**
* Set the feed last-build date. Ignored for Atom 1.0.
*
* @param null|integer|DateTime
* @param null|int|DateTime
* @throws Exception\InvalidArgumentException
* @return AbstractFeed
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Writer/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function setContent($content)
/**
* Set the feed creation date
*
* @param null|integer|DateTime $date
* @param null|int|DateTime $date
* @throws Exception\InvalidArgumentException
* @return Entry
*/
Expand All @@ -198,7 +198,7 @@ public function setDateCreated($date = null)
/**
* Set the feed modification date
*
* @param null|integer|DateTime $date
* @param null|int|DateTime $date
* @throws Exception\InvalidArgumentException
* @return Entry
*/
Expand Down Expand Up @@ -493,7 +493,7 @@ public function getTitle()
/**
* Get the number of comments/replies for current entry
*
* @return integer
* @return int
*/
public function getCommentCount()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/Extension/ITunes/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function setItunesDuration($value)
*/
public function setItunesExplicit($value)
{
if (!in_array($value, array('yes','no','clean'))) {
if (!in_array($value, array('yes', 'no', 'clean'))) {
throw new Writer\Exception\InvalidArgumentException('invalid parameter: "explicit" may only'
. ' be one of "yes", "no" or "clean"');
}
Expand Down
6 changes: 3 additions & 3 deletions src/Writer/Extension/ITunes/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function setItunesCategories(array $values)
if (!isset($this->data['categories'])) {
$this->data['categories'] = array();
}
foreach ($values as $key=>$value) {
foreach ($values as $key => $value) {
if (!is_array($value)) {
if ($this->stringWrapper->strlen($value) > 255) {
throw new Writer\Exception\InvalidArgumentException('invalid parameter: any "category" may only'
Expand Down Expand Up @@ -175,7 +175,7 @@ public function setItunesImage($value)
throw new Writer\Exception\InvalidArgumentException('invalid parameter: "image" may only'
. ' be a valid URI/IRI');
}
if (!in_array(substr($value, -3), array('jpg','png'))) {
if (!in_array(substr($value, -3), array('jpg', 'png'))) {
throw new Writer\Exception\InvalidArgumentException('invalid parameter: "image" may only'
. ' use file extension "jpg" or "png" which must be the last three'
. ' characters of the URI (i.e. no query string or fragment)');
Expand Down Expand Up @@ -214,7 +214,7 @@ public function setItunesDuration($value)
*/
public function setItunesExplicit($value)
{
if (!in_array($value, array('yes','no','clean'))) {
if (!in_array($value, array('yes', 'no', 'clean'))) {
throw new Writer\Exception\InvalidArgumentException('invalid parameter: "explicit" may only'
. ' be one of "yes", "no" or "clean"');
}
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/Extension/ITunes/Renderer/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected function _setCategories(DOMDocument $dom, DOMElement $root)
if (!$cats || empty($cats)) {
return;
}
foreach ($cats as $key=>$cat) {
foreach ($cats as $key => $cat) {
if (!is_array($cat)) {
$el = $dom->createElement('itunes:category');
$el->setAttribute('text', $cat);
Expand Down

0 comments on commit 758e5c3

Please sign in to comment.