style(legacy): php-cs-fixer upgrade
This commit is contained in:
parent
25fbf5cf32
commit
c28fe32cdc
13 changed files with 22 additions and 23 deletions
|
@ -437,7 +437,7 @@ class Application_Service_HistoryService
|
|||
Logging::info($shows);
|
||||
|
||||
// need to filter the list to only their shows
|
||||
if ((!empty($user)) && ($user->isHost())) {
|
||||
if ((!empty($user)) && $user->isHost()) {
|
||||
$showIds = [];
|
||||
|
||||
foreach ($shows as $show) {
|
||||
|
|
|
@ -128,7 +128,7 @@ class Application_Service_MediaService
|
|||
*/
|
||||
public static function areFilesStuckInPending()
|
||||
{
|
||||
$oneHourAgo = gmdate(DEFAULT_TIMESTAMP_FORMAT, (microtime(true) - self::PENDING_FILE_TIMEOUT_SECONDS));
|
||||
$oneHourAgo = gmdate(DEFAULT_TIMESTAMP_FORMAT, microtime(true) - self::PENDING_FILE_TIMEOUT_SECONDS);
|
||||
self::$_pendingFiles = CcFilesQuery::create()
|
||||
->filterByDbImportStatus(CcFiles::IMPORT_STATUS_PENDING)
|
||||
->filterByDbUtime($oneHourAgo, Criteria::LESS_EQUAL)
|
||||
|
|
|
@ -300,7 +300,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
|||
*/
|
||||
public static function getStuckPendingImports()
|
||||
{
|
||||
$timeout = gmdate(DEFAULT_TIMESTAMP_FORMAT, (microtime(true) - self::PENDING_EPISODE_TIMEOUT_SECONDS));
|
||||
$timeout = gmdate(DEFAULT_TIMESTAMP_FORMAT, microtime(true) - self::PENDING_EPISODE_TIMEOUT_SECONDS);
|
||||
$episodes = PodcastEpisodesQuery::create()
|
||||
->filterByDbFileId()
|
||||
->find();
|
||||
|
|
|
@ -324,7 +324,7 @@ class Application_Service_SchedulerService
|
|||
$con->rollback();
|
||||
Logging::info('Error filling linked shows: ' . $e->getMessage());
|
||||
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -326,7 +326,7 @@ class Application_Service_ShowFormService
|
|||
'add_show_repeat_type' => $repeatType,
|
||||
'add_show_day_check' => $days,
|
||||
'add_show_end_date' => (!is_null($repeatEndDate)) ? $repeatEndDate->format('Y-m-d') : null,
|
||||
'add_show_no_end' => (is_null($repeatEndDate)),
|
||||
'add_show_no_end' => is_null($repeatEndDate),
|
||||
'add_show_monthly_repeat_type' => $monthlyRepeatType,
|
||||
]
|
||||
);
|
||||
|
|
|
@ -883,11 +883,10 @@ SQL;
|
|||
CcShowQuery::create()
|
||||
->filterByDbId($showId)
|
||||
->delete();
|
||||
/* There is only one cc_show_instance if the user selects 'Delete This Instance'
|
||||
* There is more than one cc_show_instance if the user selects 'Delete This
|
||||
* Instance and All Following'. We only need to set the last_show value
|
||||
* when 'Delete This Instance and All Following' has been selected
|
||||
*/
|
||||
// There is only one cc_show_instance if the user selects 'Delete This Instance'
|
||||
// There is more than one cc_show_instance if the user selects 'Delete This
|
||||
// Instance and All Following'. We only need to set the last_show value
|
||||
// when 'Delete This Instance and All Following' has been selected
|
||||
} elseif (count($ccShowInstances) > 1) {
|
||||
$this->setLastRepeatingShowDate($showId);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue