@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function setTemplate(string $template): void { |
| 89 | 89 | if(!is_file($template)) { |
| 90 | - throw new \RuntimeException("File $template does not exist."); |
|
| 90 | + throw new \RuntimeException("file $template does not exist."); |
|
| 91 | 91 | } |
| 92 | 92 | $this->template = $template; |
| 93 | 93 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | protected function writeItemProperty(\SimpleXMLElement &$element, RssChannelItem $item, string $property, callable $callback = null): void { |
| 130 | - if(isset($item->$property) AND $item->$property !== "") { |
|
| 130 | + if(isset($item->$property) and $item->$property !== "") { |
|
| 131 | 131 | $value = $item->$property; |
| 132 | 132 | if(!is_null($callback)) { |
| 133 | 133 | $value = $callback($value); |