chore(*.php): use pint for php formatting
This commit is contained in:
parent
029caaaa9e
commit
cf1ee4c97f
40 changed files with 2261 additions and 1900 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue