1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-09-03 05:02:43 +02:00

refactor: prepare for PSR2 (#2859)

This commit is contained in:
Dag
2022-06-24 18:29:35 +02:00
committed by GitHub
parent d2313bddcc
commit 5076d09de6
24 changed files with 140 additions and 146 deletions

View File

@@ -15,7 +15,7 @@ class DisplayAction implements ActionInterface
{
public $userData = [];
private function get_return_code($error) {
private function getReturnCode($error) {
$returnCode = $error->getCode();
if ($returnCode === 301 || $returnCode === 302) {
# Don't pass redirect codes to the exterior
@@ -184,7 +184,7 @@ class DisplayAction implements ActionInterface
$items[] = $item;
} elseif(Configuration::getConfig('error', 'output') === 'http') {
header('Content-Type: text/html', true, $this->get_return_code($e));
header('Content-Type: text/html', true, $this->getReturnCode($e));
die(buildTransformException($e, $bridge));
}
}