<commit_before><?php

Namespace Dog2puppy\LoadScreen;

use pocketmine\plugin\PluginBase;
use pocketmine\network\protocol\ChangeDimensionPacket;
use pocketmine\event\Listener;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;

class Main extends PluginBase implements Listener{

  public function onEnable(){
    $this->getServer()->getPluginManager()->registerEvents($this, $this);
  }
  public function onCommand(Command $command, CommandSender $sender, $label, Array $args){
    if($command->getName()=="loadscreen"){
       $x= $sender->getX();
       $y= $sender->getY();
       $z= $sender->getZ();
       $pk = new ChangeDimensionPacket();
       $pk->dimension = 1; //1 is the nether; 0 is the overworld
       $pk->x = (int) $x; //define X
       $pk->y = (int) $y; //define Y
       $pk->z = (int) $z; //define Z
       $player->dataPacket($pk); //$player must be an instance of a pocketmine/Player
       $pk = new ChangeDimensionPacket();
       $pk->dimension = 0; //1 is the nether; 0 is the overworld
       $pk->x = (int) $x; //define X
       $pk->y = (int) $y; //define Y
       $pk->z = (int) $z; //define Z
       $player->dataPacket($pk); //$player must be an instance of a pocketmine/Player
       if($args[0]=="message"){
         $player->sendMessage("[LoadScreen] Showed the loading screen");
       }
    }
  } 
}
<commit_msg>Apply fixes from StyleCI<commit_after><?php

namespace Dog2puppy\LoadScreen;

use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\event\Listener;
use pocketmine\network\protocol\ChangeDimensionPacket;
use pocketmine\plugin\PluginBase;

class Main extends PluginBase implements Listener
{
    public function onEnable()
    {
        $this->getServer()->getPluginManager()->registerEvents($this, $this);
    }

    public function onCommand(Command $command, CommandSender $sender, $label, array $args)
    {
        if ($command->getName() == 'loadscreen') {
            $x = $sender->getX();
            $y = $sender->getY();
            $z = $sender->getZ();
            $pk = new ChangeDimensionPacket();
            $pk->dimension = 1; //1 is the nether; 0 is the overworld
       $pk->x = (int) $x; //define X
       $pk->y = (int) $y; //define Y
       $pk->z = (int) $z; //define Z
       $player->dataPacket($pk); //$player must be an instance of a pocketmine/Player
       $pk = new ChangeDimensionPacket();
            $pk->dimension = 0; //1 is the nether; 0 is the overworld
       $pk->x = (int) $x; //define X
       $pk->y = (int) $y; //define Y
       $pk->z = (int) $z; //define Z
       $player->dataPacket($pk); //$player must be an instance of a pocketmine/Player
       if ($args[0] == 'message') {
           $player->sendMessage('[LoadScreen] Showed the loading screen');
       }
        }
    }
}

{'fraction_non_alphanumeric': 0.1578202406227884, 'fraction_numerical': 0.005661712668082095, 'mean_word_length': 2.7344782034346102, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6794767', 'n_tokens_mistral': 891, 'n_tokens_neox': 880, 'n_words': 247}