@@ -54,8 +54,8 @@ |
||
54 | 54 | /** |
55 | 55 | * Set enclosure |
56 | 56 | * @param var $url Url to media file |
57 | - * @param int $length Length in bytes of the media file |
|
58 | - * @param var $type Media type, default is audio/mpeg |
|
57 | + * @param int $length Length in bytes of the media file |
|
58 | + * @param var $type Media type, default is audio/mpeg |
|
59 | 59 | * @return $this |
60 | 60 | */ |
61 | 61 | public function enclosure($url, $length = 0, $type = 'audio/mpeg'); |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | protected $isPermalink; |
21 | 21 | /** @var int */ |
22 | 22 | protected $pubDate; |
23 | - /** @var array */ |
|
24 | - protected $enclosure; |
|
23 | + /** @var array */ |
|
24 | + protected $enclosure; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Set item title |
@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Set enclosure |
97 | 97 | * @param var $url Url to media file |
98 | - * @param int $length Length in bytes of the media file |
|
99 | - * @param var $type Media type, default is audio/mpeg |
|
98 | + * @param int $length Length in bytes of the media file |
|
99 | + * @param var $type Media type, default is audio/mpeg |
|
100 | 100 | * @return $this |
101 | 101 | */ |
102 | 102 | public function enclosure($url, $length = 0, $type = 'audio/mpeg') |
@@ -153,16 +153,16 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | |
156 | - if (is_array($this->enclosure) && (count($this->enclosure) == 3)) |
|
156 | + if (is_array($this->enclosure) && (count($this->enclosure) == 3)) |
|
157 | 157 | { |
158 | 158 | $element = $xml->addChild('enclosure'); |
159 | - $element->addAttribute('url', $this->enclosure['url']); |
|
160 | - $element->addAttribute('type', $this->enclosure['type']); |
|
159 | + $element->addAttribute('url', $this->enclosure['url']); |
|
160 | + $element->addAttribute('type', $this->enclosure['type']); |
|
161 | 161 | |
162 | - if ($this->enclosure['length']) |
|
163 | - { |
|
164 | - $element->addAttribute('length', $this->enclosure['length']); |
|
165 | - } |
|
162 | + if ($this->enclosure['length']) |
|
163 | + { |
|
164 | + $element->addAttribute('length', $this->enclosure['length']); |
|
165 | + } |
|
166 | 166 | } |
167 | 167 | return $xml; |
168 | 168 | } |