Removing unused "use"

This commit is contained in:
Michael 2021-11-02 02:52:16 +00:00
parent c3964a8735
commit 5c82c2d4ee
6 changed files with 2 additions and 13 deletions

View file

@ -51,8 +51,6 @@
* *
*/ */
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') { if (php_sapi_name() !== 'cli') {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit(); exit();

View file

@ -20,8 +20,6 @@
* *
*/ */
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') { if (php_sapi_name() !== 'cli') {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit(); exit();

View file

@ -23,8 +23,6 @@
* This script was taken from http://php.net/manual/en/function.pcntl-fork.php * This script was taken from http://php.net/manual/en/function.pcntl-fork.php
*/ */
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') { if (php_sapi_name() !== 'cli') {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit(); exit();

View file

@ -26,8 +26,6 @@
* *
*/ */
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') { if (php_sapi_name() !== 'cli') {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit(); exit();

View file

@ -24,10 +24,9 @@
* Usage: php bin/wait-for-connection {HOST} {PORT} [{TIMEOUT}] * Usage: php bin/wait-for-connection {HOST} {PORT} [{TIMEOUT}]
*/ */
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') { if (php_sapi_name() !== 'cli') {
throw new ForbiddenException(); header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
} }
$timeout = 60; $timeout = 60;

View file

@ -21,8 +21,6 @@
* Starts the background processing * Starts the background processing
*/ */
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') { if (php_sapi_name() !== 'cli') {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit(); exit();