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,31 +1,26 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the '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 Podcast extends BasePodcast
|
||||
{
|
||||
/**
|
||||
* Override this function so it returns its child class fields as well.
|
||||
* Child class will either be ImportedPodcast or StationPodcast
|
||||
* Child class will either be ImportedPodcast or StationPodcast.
|
||||
*
|
||||
* @param string $keyType
|
||||
* @param bool $includeLazyLoadColumns
|
||||
* @param array $alreadyDumpedObjects
|
||||
* @param bool $includeForeignObjects
|
||||
* @param bool $includeLazyLoadColumns
|
||||
* @param array $alreadyDumpedObjects
|
||||
* @param bool $includeForeignObjects
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false)
|
||||
public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = [], $includeForeignObjects = false)
|
||||
{
|
||||
$podcastArray = parent::toArray($keyType);
|
||||
|
||||
|
@ -36,27 +31,26 @@ class Podcast extends BasePodcast
|
|||
|
||||
//unset these values because we already have the podcast id in $podcastArray
|
||||
//and we don't need the imported podcast ID
|
||||
unset($importedPodcastArray["id"]);
|
||||
unset($importedPodcastArray["podcast_id"]);
|
||||
unset($importedPodcastArray['id'], $importedPodcastArray['podcast_id']);
|
||||
|
||||
return array_merge($podcastArray, $importedPodcastArray);
|
||||
|
||||
} else if (!is_null($stationPodcast)) {
|
||||
}
|
||||
if (!is_null($stationPodcast)) {
|
||||
// For now just return $podcastArray because StationPodcast objects do not have any
|
||||
// extra fields we want to return. This may change in the future.
|
||||
return $podcastArray;
|
||||
} else {
|
||||
return $podcastArray;
|
||||
}
|
||||
|
||||
return $podcastArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this function so it updates the child class as well.
|
||||
* Child class will either be ImportedPodcast or StationPodcast
|
||||
* Child class will either be ImportedPodcast or StationPodcast.
|
||||
*
|
||||
* @param array $arr
|
||||
* @param array $arr
|
||||
* @param string $keyType
|
||||
*
|
||||
* @throws Exception
|
||||
* @throws PropelException
|
||||
*/
|
||||
|
@ -68,9 +62,7 @@ class Podcast extends BasePodcast
|
|||
if (!is_null($importedPodcast)) {
|
||||
$importedPodcast->fromArray($arr, $keyType);
|
||||
$importedPodcast->save();
|
||||
} else {
|
||||
//TODO: station podcast
|
||||
}
|
||||
//TODO: station podcast
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue