Fix some PSR-2 violations

This commit is contained in:
Dylan K. Taylor 2017-07-13 16:14:28 +01:00
parent a7f5ee2f3e
commit 23866359c9
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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){