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,38 +1,35 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'station_podcast' 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 StationPodcast extends BaseStationPodcast
|
||||
{
|
||||
|
||||
/**
|
||||
* Utility function to check whether an episode for the file with the given ID
|
||||
* is contained within the station podcast
|
||||
* is contained within the station podcast.
|
||||
*
|
||||
* @param int $fileId the file ID to check for
|
||||
*
|
||||
* @return bool true if the station podcast contains an episode with
|
||||
* the given file ID, otherwise false
|
||||
*/
|
||||
public function hasEpisodeForFile($fileId) {
|
||||
public function hasEpisodeForFile($fileId)
|
||||
{
|
||||
$episodes = PodcastEpisodesQuery::create()
|
||||
->filterByDbPodcastId($this->getDbPodcastId())
|
||||
->find();
|
||||
->find()
|
||||
;
|
||||
foreach ($episodes as $e) {
|
||||
if ($e->getDbFileId() == $fileId) return true;
|
||||
if ($e->getDbFileId() == $fileId) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue