mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +02:00
chore: update CI to v4.6.3 + all php and js dependencies
This commit is contained in:
parent
96b2df15b0
commit
346c00e7b5
206 changed files with 6239 additions and 5336 deletions
|
|
@ -15,12 +15,11 @@ use App\Models\EpisodeModel;
|
|||
use CodeIgniter\Controller;
|
||||
use CodeIgniter\Exceptions\PageNotFoundException;
|
||||
use CodeIgniter\HTTP\RedirectResponse;
|
||||
use Deprecated;
|
||||
|
||||
class EpisodeAnalyticsController extends Controller
|
||||
{
|
||||
/**
|
||||
* @deprecated Replaced by EpisodeAudioController::index method
|
||||
*/
|
||||
#[Deprecated(message: 'Replaced by EpisodeAudioController::index method')]
|
||||
public function hit(string $base64EpisodeData, string ...$audioPath): RedirectResponse
|
||||
{
|
||||
$episodeData = unpack(
|
||||
|
|
@ -32,7 +31,8 @@ class EpisodeAnalyticsController extends Controller
|
|||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
$episode = (new EpisodeModel())->getEpisodeById($episodeData['episodeId']);
|
||||
$episode = new EpisodeModel()
|
||||
->getEpisodeById($episodeData['episodeId']);
|
||||
|
||||
if (! $episode instanceof Episode) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
|
|
|
|||
|
|
@ -267,9 +267,8 @@ class AnalyticsPodcastModel extends Model
|
|||
public function getDataTotalStorageByMonth(): array
|
||||
{
|
||||
if (! ($found = cache('analytics_total_storage_by_month'))) {
|
||||
$found = (new MediaModel())->select(
|
||||
'DATE_FORMAT(uploaded_at,"%Y-%m") as labels, ROUND(sum(file_size) / 1000000, 2) as `values`',
|
||||
)
|
||||
$found = new MediaModel()
|
||||
->select('DATE_FORMAT(uploaded_at,"%Y-%m") as labels, ROUND(sum(file_size) / 1000000, 2) as `values`')
|
||||
->groupBy('labels')
|
||||
->orderBy('labels', 'ASC')
|
||||
->findAll();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue