Removing unused "use"
This commit is contained in:
parent
c3964a8735
commit
5c82c2d4ee
|
@ -51,8 +51,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
|
||||
exit();
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
|
||||
exit();
|
||||
|
|
|
@ -23,8 +23,6 @@
|
|||
* This script was taken from http://php.net/manual/en/function.pcntl-fork.php
|
||||
*/
|
||||
|
||||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
|
||||
exit();
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
|
||||
exit();
|
||||
|
|
|
@ -24,10 +24,9 @@
|
|||
* Usage: php bin/wait-for-connection {HOST} {PORT} [{TIMEOUT}]
|
||||
*/
|
||||
|
||||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
throw new ForbiddenException();
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
|
||||
exit();
|
||||
}
|
||||
|
||||
$timeout = 60;
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
* Starts the background processing
|
||||
*/
|
||||
|
||||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
|
||||
exit();
|
||||
|
|
Loading…
Reference in a new issue