Format code using php-cs-fixer

This commit is contained in:
jo 2021-10-11 16:10:47 +02:00
parent 43d7dc92cd
commit d52c6184b9
352 changed files with 17473 additions and 17041 deletions

View file

@ -11,9 +11,10 @@ class FeedsController extends Zend_Controller_Action
$response = $this->getResponse();
if ((Application_Model_Preference::getStationPodcastPrivacy()
&& $request->getParam("sharing_token") != Application_Model_Preference::getStationPodcastDownloadKey())
&& $request->getParam('sharing_token') != Application_Model_Preference::getStationPodcastDownloadKey())
&& !RestAuth::verifyAuth(true, false, $this)) {
$response->setHttpResponseCode(401);
return;
}
@ -21,23 +22,23 @@ class FeedsController extends Zend_Controller_Action
$rssData = Application_Service_PodcastService::createStationRssFeed();
$mimeType = "text/xml";
header("Content-Type: $mimeType; charset=UTF-8");
$mimeType = 'text/xml';
header("Content-Type: {$mimeType}; charset=UTF-8");
if (isset($_SERVER['HTTP_RANGE'])) {
header('HTTP/1.1 206 Partial Content');
} else {
header('HTTP/1.1 200 OK');
}
header("Content-Type: $mimeType");
header("Content-Transfer-Encoding: binary");
header("Content-Type: {$mimeType}");
header('Content-Transfer-Encoding: binary');
header('Cache-Control: public, must-revalidate, max-age=0');
header('Pragma: no-cache');
header('Accept-Ranges: bytes');
$size = strlen($rssData);
$begin = 0;
$end = $size - 1;
$end = $size - 1;
//ob_start(); //Must start a buffer here for these header() functions
@ -53,10 +54,10 @@ class FeedsController extends Zend_Controller_Action
if ($size > 0) {
header('Content-Length:' . (($end - $begin) + 1));
if (isset($_SERVER['HTTP_RANGE'])) {
header("Content-Range: bytes $begin-$end/$size");
header("Content-Range: bytes {$begin}-{$end}/{$size}");
}
}
echo $rssData;
}
}
}