Passed
Push — master ( 33e64a...a4094b )
by Andreas
10:57
created
lib/net/nemein/rss/fetch.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $etag = trim($parser->data['headers']['etag']);
82 82
 
83 83
             $feed_etag = $this->_feed->get_parameter('net.nemein.rss', 'etag');
84
-            if (   !empty($feed_etag)
84
+            if (!empty($feed_etag)
85 85
                 && $feed_etag == $etag) {
86 86
                 // Feed hasn't changed, skip updating
87 87
                 debug_add("Feed {$this->_feed->url} has not changed since " . date('c', $this->_feed->latestfetch), MIDCOM_LOG_WARN);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $guid = $item->get_id();
151 151
         $title = $item->get_title();
152 152
 
153
-        if (   (   empty($title)
153
+        if ((empty($title)
154 154
                 || trim($title) == '...')
155 155
             && empty($guid)) {
156 156
             // Something wrong with this entry, skip it
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         }
213 213
 
214 214
         if ($article->id) {
215
-            if (   $this->apply_values($article, $values, $meta_values)
215
+            if ($this->apply_values($article, $values, $meta_values)
216 216
                 && !$article->update()) {
217 217
                 return null;
218 218
             }
@@ -241,14 +241,14 @@  discard block
 block discarded – undo
241 241
     private function find_author(net_nemein_rss_parser_item $item) : midcom_db_person
242 242
     {
243 243
         // Try to figure out item author
244
-        if (   $this->_feed->forceauthor
244
+        if ($this->_feed->forceauthor
245 245
             && $this->_feed->defaultauthor) {
246 246
             // Feed has a "default author" set, use it
247 247
             return new midcom_db_person($this->_feed->defaultauthor);
248 248
         }
249 249
         $author = $this->match_item_author($item);
250 250
         $fallback_person_id = 1;
251
-        if (   !$author
251
+        if (!$author
252 252
             || $author->id == $fallback_person_id) {
253 253
             if ($this->_feed->defaultauthor) {
254 254
                 // Feed has a "default author" set, use it
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
             }
414 414
         }
415 415
 
416
-        if (   !empty($author_info['username'])
416
+        if (!empty($author_info['username'])
417 417
             && $person = midcom::get()->auth->get_user_by_name($author_info['username'])) {
418 418
             return $person->get_storage();
419 419
         }
Please login to merge, or discard this patch.