Passed
Push — master ( 99d4dc...7294aa )
by Jakub
01:47
created
src/Generator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.