Skip to content

Commit

Permalink
Change example
Browse files Browse the repository at this point in the history
Signed-off-by: suin <[email protected]>
  • Loading branch information
suin committed Sep 10, 2016
1 parent 938b067 commit de25f01
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This library can also be used to publish Podcasts.

[![Latest Stable Version](https://poser.pugx.org/suin/php-rss-writer/v/stable)](https://packagist.org/packages/suin/php-rss-writer)
[![Total Downloads](https://poser.pugx.org/suin/php-rss-writer/downloads)](https://packagist.org/packages/suin/php-rss-writer)
[![Total Downloads](https://poser.pugx.org/suin/php-rss-writer/downloads)](https://packagist.org/packages/suin/php-rss-writer)
[![Daily Downloads](https://poser.pugx.org/suin/php-rss-writer/d/daily)](https://packagist.org/packages/suin/php-rss-writer)
[![License](https://poser.pugx.org/suin/php-rss-writer/license)](https://packagist.org/packages/suin/php-rss-writer)
[![Build Status](https://travis-ci.org/suin/php-rss-writer.svg?branch=master)](https://travis-ci.org/suin/php-rss-writer)
Expand Down Expand Up @@ -37,7 +37,7 @@ $item
->description('<div>Blog body</div>')
->contentEncoded('<div>Blog body</div>')
->url('http://blog.example.com/2012/08/21/blog-entry/')
->author('Hidehito Nozawa')
->author('John Smith')
->pubDate(strtotime('Tue, 21 Aug 2012 19:50:37 +0900'))
->guid('http://blog.example.com/2012/08/21/blog-entry/', true)
->preferCdata(true) // By this, title and description become CDATA wrapped HTML.
Expand Down Expand Up @@ -78,7 +78,7 @@ Output:
<content:encoded><![CDATA[<div>Blog body</div>]]></content:encoded>
<guid>http://blog.example.com/2012/08/21/blog-entry/</guid>
<pubDate>Tue, 21 Aug 2012 10:50:37 +0000</pubDate>
<author>Hidehito Nozawa</author>
<author>John Smith</author>
</item>
<item>
<title>Some Podcast Entry</title>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"authors": [
{
"name": "Hidehito Nozawa aka Suin",
"name": "suin",
"email": "[email protected]"
}
],
Expand Down
1 change: 1 addition & 0 deletions docker-compose.development.yml
2 changes: 1 addition & 1 deletion examples/simple-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
->description('<div>Blog body</div>')
->contentEncoded('<div>Blog body</div>')
->url('http://blog.example.com/2012/08/21/blog-entry/')
->author('Hidehito Nozawa')
->author('John Smith')
->pubDate(strtotime('Tue, 21 Aug 2012 19:50:37 +0900'))
->guid('http://blog.example.com/2012/08/21/blog-entry/', true)
->preferCdata(true) // By this, title and description become CDATA wrapped HTML.
Expand Down
4 changes: 2 additions & 2 deletions tests/Suin/RSSWriter/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function testAsXML()
'length' => 4992,
'type' => 'audio/mpeg'
],
'author' => 'Hidehito Nozawa aka Suin'
'author' => 'John Smith'
];

$item = new Item();
Expand Down Expand Up @@ -230,7 +230,7 @@ public function testAsXML_false_permalink()
'length' => 4992,
'type' => 'audio/mpeg'
],
'author' => 'Hidehito Nozawa aka Suin'
'author' => 'John Smith'
];

$item = new Item();
Expand Down

0 comments on commit de25f01

Please sign in to comment.