@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | */ |
173 | 173 | public function setTemplate(string $template): void { |
174 | 174 | if(!is_file($template)) { |
175 | - throw new \RuntimeException("File $template does not exist."); |
|
175 | + throw new \RuntimeException("file $template does not exist."); |
|
176 | 176 | } |
177 | 177 | $this->template = $template; |
178 | 178 | } |
@@ -205,13 +205,13 @@ discard block |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | protected function writeProperty(\SimpleXMLElement &$channel, string $property): void { |
208 | - if(isset($this->$property) AND $this->$property !== "") { |
|
208 | + if(isset($this->$property) and $this->$property !== "") { |
|
209 | 209 | $channel->channel->{$property}[0][0] = $this->$property; |
210 | 210 | } |
211 | 211 | } |
212 | 212 | |
213 | 213 | protected function writeItemProperty(\SimpleXMLElement $element, RssChannelItem $item, string $property, callable $callback = null): void { |
214 | - if(isset($item->$property) AND $item->$property !== "") { |
|
214 | + if(isset($item->$property) and $item->$property !== "") { |
|
215 | 215 | $value = $item->$property; |
216 | 216 | if(!is_null($callback)) { |
217 | 217 | $value = $callback($value); |