Skip to content

Commit

Permalink
Merge pull request kaltura#5414 from kaltura/Lynx-12.14.0-PLAT-7150
Browse files Browse the repository at this point in the history
no const arrays
  • Loading branch information
noam-arad authored Apr 4, 2017
2 parents ad7141c + a4305ba commit 168a833
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion alpha/lib/enums/syndicationFeedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ interface syndicationFeedType extends BaseEnum
const ROKU_DIRECT_PUBLISHER = 7;
const OPERA_TV_SNAP = 8;

const ALL_XSLT_TYPES = array(self::KALTURA_XSLT, self::ROKU_DIRECT_PUBLISHER, self::OPERA_TV_SNAP);
}
2 changes: 1 addition & 1 deletion api_v3/lib/syndication/KalturaFeedRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function init($syndicationFeed, $syndicationFeedDB, $mimeType) {
parent::init($syndicationFeed, $syndicationFeedDB, $mimeType);

$xslt = $syndicationFeed->xslt;
if (in_array($syndicationFeedDB->getType(), syndicationFeedType::ALL_XSLT_TYPES) && !is_null($xslt)) {
if (in_array($syndicationFeedDB->getType(), array(syndicationFeedType::KALTURA_XSLT, syndicationFeedType::ROKU_DIRECT_PUBLISHER, syndicationFeedType::OPERA_TV_SNAP)) && !is_null($xslt)) {
$this->kalturaXslt = $this->createKalturaMrssXslt($xslt);
$this->kalturaXsltItem = $this->createKalturaItemXslt($xslt);
}
Expand Down
2 changes: 1 addition & 1 deletion api_v3/lib/syndication/KalturaSyndicationFeedRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public function execute($limit = 0)
$feedUpdatedAt = $this->syndicationFeedDb->getUpdatedAt(null);

$e = null;
$kalturaFeed = $this->syndicationFeed->type == KalturaSyndicationFeedType::KALTURA || in_array($this->syndicationFeed->type, KalturaSyndicationFeedType::ALL_XSLT_TYPES);
$kalturaFeed = $this->syndicationFeed->type == KalturaSyndicationFeedType::KALTURA || in_array($this->syndicationFeed->type, array(KalturaSyndicationFeedType::KALTURA_XSLT, KalturaSyndicationFeedType::ROKU_DIRECT_PUBLISHER, KalturaSyndicationFeedType::OPERA_TV_SNAP));
$nextEntry = $this->getNextEntry();

$lastCreatedAtVal = null;
Expand Down

0 comments on commit 168a833

Please sign in to comment.