Skip to content

Commit 849a49b

Browse files
committed
Updated code style to use tabs for indents and braces to match format of rest of project.
1 parent 44d2061 commit 849a49b

File tree

3 files changed

+28
-26
lines changed

3 files changed

+28
-26
lines changed

Source/Suin/RSSWriter/Item.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,16 @@ public function enclosure($url, $length = 0, $type = 'audio/mpeg')
107107
return $this;
108108
}
109109

110-
/**
111-
* Set the author
112-
* @param string $author Email of item author
113-
* @return $this
114-
*/
115-
public function author($author) {
116-
$this->author = $author;
117-
return $this;
118-
}
110+
/**
111+
* Set the author
112+
* @param string $author Email of item author
113+
* @return $this
114+
*/
115+
public function author($author)
116+
{
117+
$this->author = $author;
118+
return $this;
119+
}
119120

120121
/**
121122
* Append item to the channel
@@ -177,9 +178,10 @@ public function asXML()
177178
}
178179
}
179180

180-
if ( ! empty($this->author) ) {
181-
$xml->addChild('author', $this->author);
182-
}
181+
if ( ! empty($this->author) )
182+
{
183+
$xml->addChild('author', $this->author);
184+
}
183185

184186
return $xml;
185187
}

Source/Suin/RSSWriter/ItemInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public function pubDate($pubDate);
6060
*/
6161
public function enclosure($url, $length = 0, $type = 'audio/mpeg');
6262

63-
/**
64-
* Set the author
65-
* @param string $author Email of item author
66-
* @return $this
67-
*/
68-
public function author($author);
63+
/**
64+
* Set the author
65+
* @param string $author Email of item author
66+
* @return $this
67+
*/
68+
public function author($author);
6969

7070
/**
7171
* Append item to the channel

Tests/Suin/RSSWriter/ItemTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ public function testEnclosure()
9797
$this->assertAttributeSame($enclosure, 'enclosure', $item);
9898
}
9999

100-
public function testAuthor()
101-
{
102-
$author = uniqid();
103-
$item = new Item();
104-
$this->assertSame($item, $item->author($author));
105-
$this->assertAttributeSame($author, 'author', $item);
106-
}
100+
public function testAuthor()
101+
{
102+
$author = uniqid();
103+
$item = new Item();
104+
$this->assertSame($item, $item->author($author));
105+
$this->assertAttributeSame($author, 'author', $item);
106+
}
107107

108108
public function testAsXML()
109109
{
@@ -125,7 +125,7 @@ public function testAsXML()
125125
'url' => 'http://link-to-audio-file.com/test.mp3',
126126
'length' => 4992,
127127
'type' => 'audio/mpeg'),
128-
'author' => 'Hidehito Nozawa aka Suin'
128+
'author' => 'Hidehito Nozawa aka Suin'
129129
);
130130

131131
$item = new Item();

0 commit comments

Comments
 (0)