mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 00:56:08 +02:00
[core] Fix typos
This commit is contained in:
parent
84bc9d2da6
commit
14c689e7a3
3 changed files with 15 additions and 20 deletions
|
@ -1,30 +1,28 @@
|
|||
<?php
|
||||
function returnError($message, $code){
|
||||
throw new \HttpException($message, $code);
|
||||
throw new \HttpException($message, $code);
|
||||
}
|
||||
|
||||
function returnClientError($message){
|
||||
returnError($message, 400);
|
||||
returnError($message, 400);
|
||||
}
|
||||
|
||||
function returnServerError($message){
|
||||
returnError($message, 500);
|
||||
returnError($message, 500);
|
||||
}
|
||||
|
||||
function debugMessage($text){
|
||||
if(!file_exists('DEBUG')) {
|
||||
return;
|
||||
}
|
||||
if(!file_exists('DEBUG')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3);
|
||||
$calling = $backtrace[2];
|
||||
$message = $calling['file'] . ':'
|
||||
. $calling['line'] . ' class '
|
||||
. $calling['class'] . '->'
|
||||
. $calling['function'] . ' - '
|
||||
. $text;
|
||||
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3);
|
||||
$calling = $backtrace[2];
|
||||
$message = $calling['file'] . ':'
|
||||
. $calling['line'] . ' class '
|
||||
. $calling['class'] . '->'
|
||||
. $calling['function'] . ' - '
|
||||
. $text;
|
||||
|
||||
error_log($message);
|
||||
error_log($message);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue