Format code using php-cs-fixer

This commit is contained in:
jo 2021-10-11 16:10:47 +02:00
parent 43d7dc92cd
commit d52c6184b9
352 changed files with 17473 additions and 17041 deletions

View file

@ -3,16 +3,12 @@
/**
* Skeleton subclass for representing a row from the 'cc_subjs' 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 CcSubjs extends BaseCcSubjs {
class CcSubjs extends BaseCcSubjs
{
public function isAdminOrPM()
{
return $this->type === UTYPE_SUPERADMIN || $this->type === UTYPE_ADMIN || $this->type === UTYPE_PROGRAM_MANAGER;
@ -34,11 +30,12 @@ class CcSubjs extends BaseCcSubjs {
public function isHostOfShowInstance($instanceId)
{
$showInstance = CcShowInstancesQuery::create()
->findPk($instanceId);
->findPk($instanceId)
;
return CcShowHostsQuery::create()
->filterByDbShow($showInstance->getDbShowId())
->filterByDbHost($this->getDbId())
->count() > 0;
->filterByDbShow($showInstance->getDbShowId())
->filterByDbHost($this->getDbId())
->count() > 0;
}
} // CcSubjs