chore: update CI to v4.6.3 + all php and js dependencies

This commit is contained in:
Yassine Doghri 2025-08-25 18:09:41 +00:00
commit 346c00e7b5
206 changed files with 6239 additions and 5336 deletions

View file

@ -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();

View file

@ -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();