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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user