@@ -26,12 +26,12 @@ |
||
| 26 | 26 | $feedItems = $this->object->get_items(); |
| 27 | 27 | $html = '<article>'; |
| 28 | 28 | $html .= "<h1>Senaste nytt fran IDG</h1>"; |
| 29 | - foreach($feedItems as $content) { |
|
| 29 | + foreach ($feedItems as $content) { |
|
| 30 | 30 | $html .= '<div class="feed-content">'; |
| 31 | - $html .= "<h2>" . $content->get_title() . "</h2>" ; |
|
| 32 | - $html .= "<small>Postad ". $content->get_date('Y-m-d | H:i:s')."</small>"; |
|
| 31 | + $html .= "<h2>".$content->get_title()."</h2>"; |
|
| 32 | + $html .= "<small>Postad ".$content->get_date('Y-m-d | H:i:s')."</small>"; |
|
| 33 | 33 | $html .= "<p>{$content->get_content()}</p>"; |
| 34 | - $html .= "<p><a href='" . $content->get_permalink() . "'>Läs mer</a>"; |
|
| 34 | + $html .= "<p><a href='".$content->get_permalink()."'>Läs mer</a>"; |
|
| 35 | 35 | $html .= '</div>'; |
| 36 | 36 | } |
| 37 | 37 | $html .= "</article>"; |
@@ -23,14 +23,14 @@ discard block |
||
| 23 | 23 | private $feed; |
| 24 | 24 | |
| 25 | 25 | |
| 26 | - public function setUp(){ |
|
| 26 | + public function setUp() { |
|
| 27 | 27 | $rss = new SimplePie(); |
| 28 | - $rss->get_items(1,1); |
|
| 28 | + $rss->get_items(1, 1); |
|
| 29 | 29 | $this->feed = new CRSSFeed($rss); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
| 33 | - public function testAssertTags(){ |
|
| 33 | + public function testAssertTags() { |
|
| 34 | 34 | $matcher = array( |
| 35 | 35 | 'tag' => 'h1', 'content' => 'regexp:/<h1>.*<\/h1>/', |
| 36 | 36 | 'parent' => array('tag' => 'article') |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | |
| 48 | - public function testGetFeed(){ |
|
| 48 | + public function testGetFeed() { |
|
| 49 | 49 | $this->assertInternalType('string', 'regexp:/<article>.*<\/article>/'); |
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | \ No newline at end of file |