@@ -245,14 +245,14 @@ discard block |
||
245 | 245 | $this->xml->startElement('category'); |
246 | 246 | $this->xml->writeAttribute('id', $this->parameters['id']); |
247 | 247 | $this->xml->writeAttribute('name', html_entity_decode($this->parameters['title'])); |
248 | - if (! empty($this->parameters['description'])) { |
|
248 | + if (!empty($this->parameters['description'])) { |
|
249 | 249 | $this->xml->writeAttribute('description', html_entity_decode($this->parameters['description'])); |
250 | 250 | } |
251 | 251 | foreach ($this->parameters['categories'] as $c) { |
252 | 252 | $this->xml->startElement('subcat'); |
253 | 253 | $this->xml->writeAttribute('id', $c['id']); |
254 | 254 | $this->xml->writeAttribute('name', html_entity_decode($c['title'])); |
255 | - if (! empty($c['description'])) { |
|
255 | + if (!empty($c['description'])) { |
|
256 | 256 | $this->xml->writeAttribute('description', html_entity_decode($c['description'])); |
257 | 257 | } |
258 | 258 | $this->xml->endElement(); |
@@ -353,10 +353,10 @@ discard block |
||
353 | 353 | $this->xml->writeAttribute('apimax', $this->parameters['apilimit']); |
354 | 354 | $this->xml->writeAttribute('grabcurrent', $this->parameters['grabs']); |
355 | 355 | $this->xml->writeAttribute('grabmax', $this->parameters['downloadlimit']); |
356 | - if (! empty($this->parameters['oldestapi'])) { |
|
356 | + if (!empty($this->parameters['oldestapi'])) { |
|
357 | 357 | $this->xml->writeAttribute('apioldesttime', $this->parameters['oldestapi']); |
358 | 358 | } |
359 | - if (! empty($this->parameters['oldestgrab'])) { |
|
359 | + if (!empty($this->parameters['oldestgrab'])) { |
|
360 | 360 | $this->xml->writeAttribute('graboldesttime', $this->parameters['oldestgrab']); |
361 | 361 | } |
362 | 362 | $this->xml->endElement(); |
@@ -367,8 +367,8 @@ discard block |
||
367 | 367 | */ |
368 | 368 | public function includeReleases(): void |
369 | 369 | { |
370 | - if (! empty($this->releases)) { |
|
371 | - if (! $this->releases instanceof Release) { |
|
370 | + if (!empty($this->releases)) { |
|
371 | + if (!$this->releases instanceof Release) { |
|
372 | 372 | foreach ($this->releases as $this->release) { |
373 | 373 | $this->xml->startElement('item'); |
374 | 374 | $this->includeReleaseMain(); |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | } else { |
410 | 410 | $this->writeRssCdata(); |
411 | 411 | } |
412 | - if (! isset($this->parameters['dl']) || (isset($this->parameters['dl']) && (int) $this->parameters['dl'] === 1)) { |
|
412 | + if (!isset($this->parameters['dl']) || (isset($this->parameters['dl']) && (int) $this->parameters['dl'] === 1)) { |
|
413 | 413 | $this->xml->startElement('enclosure'); |
414 | 414 | $this->xml->writeAttribute( |
415 | 415 | 'url', |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | { |
431 | 431 | $this->writeZedAttr('category', $this->release->categories_id); |
432 | 432 | $this->writeZedAttr('size', $this->release->size); |
433 | - if (! empty($this->release->coverurl)) { |
|
433 | + if (!empty($this->release->coverurl)) { |
|
434 | 434 | $this->writeZedAttr( |
435 | 435 | 'coverurl', |
436 | 436 | $this->server['server']['url']."/covers/{$this->release->coverurl}" |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | $this->writeZedAttr('comments', $this->release->comments); |
466 | 466 | $this->writeZedAttr('password', $this->release->passwordstatus); |
467 | 467 | $this->writeZedAttr('usenetdate', Carbon::parse($this->release->postdate)->toRssString()); |
468 | - if (! empty($this->release->group_name)) { |
|
468 | + if (!empty($this->release->group_name)) { |
|
469 | 469 | $this->writeZedAttr('group', $this->release->group_name); |
470 | 470 | } |
471 | 471 | } |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | */ |
477 | 477 | protected function setTvAttr(): void |
478 | 478 | { |
479 | - if (! empty($this->release->title)) { |
|
479 | + if (!empty($this->release->title)) { |
|
480 | 480 | $this->writeZedAttr('title', $this->release->title); |
481 | 481 | } |
482 | 482 | if (isset($this->release->series) && $this->release->series > 0) { |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | if (isset($this->release->episode->episode) && $this->release->episode->episode > 0) { |
486 | 486 | $this->writeZedAttr('episode', $this->release->episode->episode); |
487 | 487 | } |
488 | - if (! empty($this->release->firstaired)) { |
|
488 | + if (!empty($this->release->firstaired)) { |
|
489 | 489 | $this->writeZedAttr('tvairdate', $this->release->firstaired); |
490 | 490 | } |
491 | 491 | if (isset($this->release->tvdb) && $this->release->tvdb > 0) { |
@@ -531,19 +531,19 @@ discard block |
||
531 | 531 | { |
532 | 532 | $this->cdata = "\n\t<div>\n"; |
533 | 533 | switch (1) { |
534 | - case ! empty($this->release->cover): |
|
534 | + case !empty($this->release->cover): |
|
535 | 535 | $dir = 'movies'; |
536 | 536 | $column = 'imdbid'; |
537 | 537 | break; |
538 | - case ! empty($this->release->mu_cover): |
|
538 | + case !empty($this->release->mu_cover): |
|
539 | 539 | $dir = 'music'; |
540 | 540 | $column = 'musicinfo_id'; |
541 | 541 | break; |
542 | - case ! empty($this->release->co_cover): |
|
542 | + case !empty($this->release->co_cover): |
|
543 | 543 | $dir = 'console'; |
544 | 544 | $column = 'consoleinfo_id'; |
545 | 545 | break; |
546 | - case ! empty($this->release->bo_cover): |
|
546 | + case !empty($this->release->bo_cover): |
|
547 | 547 | $dir = 'books'; |
548 | 548 | $column = 'bookinfo_id'; |
549 | 549 | break; |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | $cData = ''; |
680 | 680 | |
681 | 681 | foreach ($columns as $info) { |
682 | - if (! empty($this->release->$info)) { |
|
682 | + if (!empty($this->release->$info)) { |
|
683 | 683 | if ($info === 'mu_releasedate') { |
684 | 684 | $ucInfo = 'Released'; |
685 | 685 | $rDate = date('Y-m-d', strtotime($this->release->$info)); |