Passed
Push — master ( e9f6a4...7ddfc7 )
by Jakub
01:51
created
src/Generator.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     });
Please login to merge, or discard this patch.
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.