Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Fix Namespace Violation in Poggit
Browse files Browse the repository at this point in the history
  • Loading branch information
xqwtxon committed Jul 2, 2022
1 parent 1421cf3 commit a7c7056
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions src/Command/DefaultCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

declare(strict_types=1);

namespace ProfanityFilter\Command;
namespace xqwtxon\ProfanityFilter\Command;

use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\player\Player;
use pocketmine\utils\Config;
use ProfanityFilter\Utils\Language;
use ProfanityFilter\Utils\Forms\SimpleForm;
use ProfanityFilter\Loader;
use xqwtxon\ProfanityFilter\Utils\Language;
use xqwtxon\ProfanityFilter\Utils\Forms\SimpleForm;
use xqwtxon\ProfanityFilter\Loader;

class DefaultCommand extends Command {

Expand Down
8 changes: 4 additions & 4 deletions src/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

declare(strict_types=1);

namespace ProfanityFilter;
namespace xqwtxon\ProfanityFilter;

use pocketmine\event\Listener;
use pocketmine\event\player\PlayerChatEvent;
use pocketmine\event\player\PlayerCommandPreprocessEvent;
use ProfanityFilter\Loader;
use ProfanityFilter\Utils\Language;
use ProfanityFilter\Utils\PluginUtils;
use xqwtxon\ProfanityFilter\Loader;
use xqwtxon\ProfanityFilter\Utils\Language;
use xqwtxon\ProfanityFilter\Utils\PluginUtils;

class EventListener implements Listener {

Expand Down
10 changes: 5 additions & 5 deletions src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

declare(strict_types=1);

namespace ProfanityFilter;
namespace xqwtxon\ProfanityFilter;

use pocketmine\plugin\PluginBase;
use pocketmine\utils\Config;
use pocketmine\Server;
use ProfanityFilter\Command\DefaultCommand;
use ProfanityFilter\EventListener;
use ProfanityFilter\Utils\Language;
use ProfanityFilter\Tasks\UpdateTask;
use xqwtxon\ProfanityFilter\Command\DefaultCommand;
use xqwtxon\ProfanityFilter\EventListener;
use xqwtxon\ProfanityFilter\Utils\Language;
use xqwtxon\ProfanityFilter\Tasks\UpdateTask;
use function yaml_parse;
use DateTime;
use DateInterval;
Expand Down
2 changes: 1 addition & 1 deletion src/PluginAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types=1);

namespace ProfanityFilter;
namespace xqwtxon\ProfanityFilter;

use function preg_match;
use function str_replace;
Expand Down
6 changes: 3 additions & 3 deletions src/Tasks/UpdateTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@

declare(strict_types=1);

namespace ProfanityFilter\Tasks;
namespace xqwtxon\ProfanityFilter\Tasks;

use pocketmine\scheduler\AsyncTask;
use pocketmine\Server;
use pocketmine\utils\Internet;
use ProfanityFilter\Utils\Language;
use xqwtxon\ProfanityFilter\Utils\Language;
use function is_array;
use function json_decode;
use function version_compare;
use function vsprintf;

class UpdateTask extends AsyncTask{
final class UpdateTask extends AsyncTask{

private const POGGIT_RELEASES_URL = "https://poggit.pmmp.io/releases.min.json?name=";

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Forms/CustomForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types = 1);

namespace ProfanityFilter\Utils\Forms;
namespace xqwtxon\ProfanityFilter\Utils\Forms;

use pocketmine\form\FormValidationException;

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types = 1);

namespace ProfanityFilter\Utils\Forms;
namespace xqwtxon\ProfanityFilter\Utils\Forms;

use pocketmine\form\Form as IForm;
use pocketmine\player\Player;
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Forms/FormAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types = 1);

namespace ProfanityFilter\Utils\Forms;
namespace xqwtxon\ProfanityFilter\Utils\Forms;

use pocketmine\plugin\PluginBase;

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Forms/ModalForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types = 1);

namespace ProfanityFilter\Utils\Forms;
namespace xqwtxon\ProfanityFilter\Utils\Forms;

use pocketmine\form\FormValidationException;

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Forms/SimpleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types = 1);

namespace ProfanityFilter\Utils\Forms;
namespace xqwtxon\ProfanityFilter\Utils\Forms;

use pocketmine\form\FormValidationException;

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types=1);

namespace ProfanityFilter\Utils;
namespace xqwtxon\ProfanityFilter\Utils;

use pocketmine\utils\Config;
use ProfanityFilter\Loader;
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/PluginUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

declare(strict_types=1);

namespace ProfanityFilter\Utils;
namespace xqwtxon\ProfanityFilter\Utils;

use pocketmine\utils\TextFormat;

Expand Down

0 comments on commit a7c7056

Please sign in to comment.