mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 11:37:46 +02:00
build: add phpstan-codeigniter extension to manage config(), model() and service() functions
This commit is contained in:
parent
ae57601c83
commit
77c2d08b6e
15 changed files with 181 additions and 41 deletions
|
|
@ -43,7 +43,7 @@ class FeedController extends Controller
|
|||
|
||||
$service = null;
|
||||
try {
|
||||
$service = UserAgentsRSS::find($_SERVER['HTTP_USER_AGENT']);
|
||||
$service = UserAgentsRSS::find(service('superglobals')->server('HTTP_USER_AGENT'));
|
||||
} catch (Exception $exception) {
|
||||
// If things go wrong the show must go on and the user must be able to download the file
|
||||
log_message('critical', $exception->getMessage());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue