mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Fix some PSR-2 violations
This commit is contained in:
parent
a7f5ee2f3e
commit
23866359c9
@ -329,7 +329,7 @@ abstract class Command{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public static final function generateDefaultData() : array{
|
||||
final public static function generateDefaultData() : array{
|
||||
if(self::$defaultDataTemplate === null){
|
||||
self::$defaultDataTemplate = json_decode(file_get_contents(Server::getInstance()->getFilePath() . "src/pocketmine/resources/command_default.json"), true);
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class ChunkUtils{
|
||||
*
|
||||
* @return string length 4096
|
||||
*/
|
||||
public static final function reorderByteArray(string $array) : string{
|
||||
final public static function reorderByteArray(string $array) : string{
|
||||
$result = str_repeat("\x00", 4096);
|
||||
if($array !== $result){
|
||||
$i = 0;
|
||||
@ -59,7 +59,7 @@ class ChunkUtils{
|
||||
*
|
||||
* @return string length 2048
|
||||
*/
|
||||
public static final function reorderNibbleArray(string $array, string $commonValue = "\x00") : string{
|
||||
final public static function reorderNibbleArray(string $array, string $commonValue = "\x00") : string{
|
||||
$result = str_repeat($commonValue, 2048);
|
||||
|
||||
if($array !== $result){
|
||||
|
Loading…
x
Reference in New Issue
Block a user