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 ArtistFetcher extends PageFetcher
{
class ArtistFetcher extends PageFetcher
{
public function fetch(string $url): ?array
{
$cacheKey = "artist_" . md5($url);
$cached = $this->cacheGet($cacheKey);
$cacheKey = 'artist_'.md5($url);
$cached = $this->cacheGet($cacheKey);
if ($cached) return $cached;
if ($cached) {
return $cached;
}
$artist = $this->fetchSingleFromApi("optimized_artists", $url);
$artist = $this->fetchSingleFromApi('optimized_artists', $url);
if (!$artist) return null;
if (! $artist) {
return null;
}
$artist['globals'] = $this->getGlobals();
$artist['globals'] = $this->getGlobals();
$this->cacheSet($cacheKey, $artist);
$this->cacheSet($cacheKey, $artist);
return $artist;
return $artist;
}
}
}