Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -1,21 +1,14 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'podcast_episodes' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package propel.generator.airtime
|
||||
*/
|
||||
class PodcastEpisodes extends BasePodcastEpisodes
|
||||
{
|
||||
|
||||
/**
|
||||
* @override
|
||||
* We need to override this function in order to provide the rotating
|
||||
|
@ -25,7 +18,8 @@ class PodcastEpisodes extends BasePodcastEpisodes
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDbDownloadUrl() {
|
||||
public function getDbDownloadUrl()
|
||||
{
|
||||
$podcastId = $this->getDbPodcastId();
|
||||
// We may have more station podcasts later, so use this instead of checking the id stored in Preference
|
||||
$podcast = StationPodcastQuery::create()->findOneByDbPodcastId($podcastId);
|
||||
|
@ -35,9 +29,10 @@ class PodcastEpisodes extends BasePodcastEpisodes
|
|||
$file = CcFilesQuery::create()->findPk($fileId);
|
||||
$ext = FileDataHelper::getAudioMimeTypeArray()[$file->getDbMime()];
|
||||
$key = Application_Model_Preference::getStationPodcastDownloadKey();
|
||||
return Application_Common_HTTPHelper::getStationUrl()."rest/media/$fileId/download/$key.$ext";
|
||||
|
||||
return Application_Common_HTTPHelper::getStationUrl() . "rest/media/{$fileId}/download/{$key}.{$ext}";
|
||||
}
|
||||
|
||||
return parent::getDbDownloadUrl();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue