Merge pull request #3003 from ntimo/task/replace-die-with-exit
[Web] Replaced die(); with exit(); due to code conventionsmaster
commit
0c2dcef916
|
@ -23,12 +23,12 @@ if (isset($_GET['domain'])) {
|
|||
}
|
||||
else {
|
||||
echo "No such domain in context";
|
||||
die();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "Invalid domain name";
|
||||
die();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -422,6 +422,6 @@ foreach ($records as $record) {
|
|||
<?php
|
||||
} else {
|
||||
echo "Session invalid";
|
||||
die();
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -13,7 +13,7 @@ use OAuth2\ResponseInterface;
|
|||
* @code
|
||||
* if (!$resourceController->verifyResourceRequest(OAuth2\Request::createFromGlobals(), $response = new OAuth2\Response())) {
|
||||
* $response->send(); // authorization failed
|
||||
* die();
|
||||
* exit();
|
||||
* }
|
||||
* return json_encode($resource); // valid token! Send the stuff!
|
||||
* @endcode
|
||||
|
|
|
@ -66,7 +66,7 @@ if (!empty($_SERVER['HTTP_X_API_KEY'])) {
|
|||
'msg' => 'api access denied for ip ' . $_SERVER['REMOTE_ADDR']
|
||||
));
|
||||
unset($_POST);
|
||||
die();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -78,7 +78,7 @@ if (!empty($_SERVER['HTTP_X_API_KEY'])) {
|
|||
'msg' => 'authentication failed'
|
||||
));
|
||||
unset($_POST);
|
||||
die();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue