@@ -156,7 +156,7 @@ |
||
156 | 156 | $resolver->setAllowedTypes("lastBuildDate", "callable"); |
157 | 157 | $resolver->setDefault("lastBuildDate", "time"); |
158 | 158 | $resolver->setDefined([ |
159 | - "language", "copyright", "managingEditor", "webMaster", "ttl", "pubDate", "rating", "categories", |
|
159 | + "language", "copyright", "managingEditor", "webMaster", "ttl", "pubDate", "rating", "categories", |
|
160 | 160 | ]); |
161 | 161 | $resolver->setAllowedTypes("language", "string"); |
162 | 162 | $resolver->setAllowedTypes("copyright", "string"); |
@@ -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); |