@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $resolver->setAllowedTypes("lastBuildDate", "callable"); |
| 142 | 142 | $resolver->setDefault("lastBuildDate", "time"); |
| 143 | 143 | $resolver->setDefined([ |
| 144 | - "language", "copyright", "managingEditor", "webMaster", "ttl", "pubDate", "rating", "categories", "skipDays", |
|
| 144 | + "language", "copyright", "managingEditor", "webMaster", "ttl", "pubDate", "rating", "categories", "skipDays", |
|
| 145 | 145 | "skipHours", |
| 146 | 146 | ]); |
| 147 | 147 | $resolver->setAllowedTypes("language", "string"); |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | $channel->channel->docs = $this->docs; |
| 224 | 224 | } |
| 225 | 225 | $this->writeProperty($channel, $info, "rating"); |
| 226 | - $categories = Arrays::get($info, "categories", []); |
|
| 226 | + $categories = Arrays::get($info, "categories", []); |
|
| 227 | 227 | array_walk($categories, function(Category $value) use($channel) { |
| 228 | 228 | $value->appendToXml($channel->channel); |
| 229 | 229 | }); |
@@ -88,8 +88,8 @@ |
||
| 88 | 88 | * @throws \RuntimeException |
| 89 | 89 | */ |
| 90 | 90 | public function setTemplate(string $template): void { |
| 91 | - if(!is_file($template) OR !is_readable($template)) { |
|
| 92 | - throw new \RuntimeException("File $template does not exist or is not readable."); |
|
| 91 | + if(!is_file($template) or !is_readable($template)) { |
|
| 92 | + throw new \RuntimeException("file $template does not exist or is not readable."); |
|
| 93 | 93 | } |
| 94 | 94 | $this->template = $template; |
| 95 | 95 | } |