chore(*.php): use pint for php formatting

This commit is contained in:
Cory Dransfeldt 2025-06-14 16:55:03 -07:00
parent 029caaaa9e
commit cf1ee4c97f
No known key found for this signature in database
40 changed files with 2261 additions and 1900 deletions

View file

@ -1,24 +1,28 @@
<?php
namespace App\Classes;
namespace App\Classes;
class ShowFetcher extends PageFetcher
{
class ShowFetcher extends PageFetcher
{
public function fetch(string $url): ?array
{
$cacheKey = "show_" . md5($url);
$cached = $this->cacheGet($cacheKey);
$cacheKey = 'show_'.md5($url);
$cached = $this->cacheGet($cacheKey);
if ($cached) return $cached;
if ($cached) {
return $cached;
}
$show = $this->fetchSingleFromApi("optimized_shows", $url);
$show = $this->fetchSingleFromApi('optimized_shows', $url);
if (!$show) return null;
if (! $show) {
return null;
}
$show['globals'] = $this->getGlobals();
$show['globals'] = $this->getGlobals();
$this->cacheSet($cacheKey, $show);
$this->cacheSet($cacheKey, $show);
return $show;
return $show;
}
}
}