Passed
Push — master ( 7ddfc7...8dcdb6 )
by Jakub
01:29
created
src/Generator.php 2 patches
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,8 @@
 block discarded – undo
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
   }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     $resolver->setAllowedTypes("lastBuildDate", "callable");
130 130
     $resolver->setDefault("lastBuildDate", "time");
131 131
     $resolver->setDefined([
132
-      "language", "copyright", "managingEditor", "webMaster", "ttl",  "pubDate", "rating", "categories", "skipDays",
132
+      "language", "copyright", "managingEditor", "webMaster", "ttl", "pubDate", "rating", "categories", "skipDays",
133 133
       "skipHours",
134 134
     ]);
135 135
     $resolver->setAllowedTypes("language", "string");
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     if($this->docs !== "") {
201 201
       $channel->channel->docs = $this->docs;
202 202
     }
203
-    $categories =  Arrays::get($info, "categories", []);
203
+    $categories = Arrays::get($info, "categories", []);
204 204
     array_walk($categories, function(Category $value) use($channel) {
205 205
       $value->appendToXml($channel->channel);
206 206
     });
Please login to merge, or discard this patch.