Passed
Push — master ( ec88e1...ffc4ba )
by Jakub
01:48
created
src/Generator.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
    */
173 173
   public function setTemplate(string $template): void {
174 174
     if(!is_file($template)) {
175
-      throw new \RuntimeException("File $template does not exist.");
175
+      throw new \RuntimeException("file $template does not exist.");
176 176
     }
177 177
     $this->template = $template;
178 178
   }
@@ -205,13 +205,13 @@  discard block
 block discarded – undo
205 205
   }
206 206
   
207 207
   protected function writeProperty(\SimpleXMLElement &$channel, string $property): void {
208
-    if(isset($this->$property) AND $this->$property !== "") {
208
+    if(isset($this->$property) and $this->$property !== "") {
209 209
       $channel->channel->{$property}[0][0] = $this->$property;
210 210
     }
211 211
   }
212 212
 
213 213
   protected function writeItemProperty(\SimpleXMLElement $element, RssChannelItem $item, string $property, callable $callback = null): void {
214
-    if(isset($item->$property) AND $item->$property !== "") {
214
+    if(isset($item->$property) and $item->$property !== "") {
215 215
       $value = $item->$property;
216 216
       if(!is_null($callback)) {
217 217
         $value = $callback($value);
Please login to merge, or discard this patch.