Skip to content

Commit

Permalink
Merge branch 'legacy/pm3' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Jan 7, 2022
2 parents 86beeb8 + ed2145b commit 6d24902
Show file tree
Hide file tree
Showing 37 changed files with 36 additions and 36 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
'return_type_declaration' => [
'space_before' => 'one'
],
'single_blank_line_at_eof' => true,
'single_import_per_statement' => true,
'strict_param' => true,
'unary_operator_spaces' => true,
Expand Down
1 change: 0 additions & 1 deletion build/generate-registry-annotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,3 @@ function generateMethodAnnotations(string $namespaceName, array $members) : stri
echo "No changes made to file $file\n";
}
}

2 changes: 1 addition & 1 deletion src/block/inventory/CraftingTableInventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public function __construct(Position $holder){
$this->holder = $holder;
parent::__construct(CraftingGrid::SIZE_BIG);
}
}
}
2 changes: 1 addition & 1 deletion src/crafting/FurnaceRecipeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ public function register(FurnaceRecipe $recipe) : void{
public function match(Item $input) : ?FurnaceRecipe{
return $this->furnaceRecipes[$input->getId() . ":" . $input->getMeta()] ?? $this->furnaceRecipes[$input->getId() . ":?"] ?? null;
}
}
}
2 changes: 1 addition & 1 deletion src/crash/CrashDumpData.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ public function jsonSerialize() : array{
$result["server.properties"] = $this->serverDotProperties;
return $result;
}
}
}
2 changes: 1 addition & 1 deletion src/crash/CrashDumpDataGeneral.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ public function __construct(
public string $os,
public array $composer_libraries,
){}
}
}
2 changes: 1 addition & 1 deletion src/crash/CrashDumpDataPluginEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public function __construct(
public string $load,
public string $website,
){}
}
}
2 changes: 1 addition & 1 deletion src/crash/CrashDumpRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ public function renderHumanReadable() : void{
public function addLine(string $line = "") : void{
fwrite($this->fp, $line . PHP_EOL);
}
}
}
2 changes: 1 addition & 1 deletion src/data/SavedDataLoadingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

final class SavedDataLoadingException extends \RuntimeException{

}
}
2 changes: 1 addition & 1 deletion src/data/bedrock/LegacyBiomeIdToStringIdMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ final class LegacyBiomeIdToStringIdMap extends LegacyToStringBidirectionalIdMap{
public function __construct(){
parent::__construct(Path::join(\pocketmine\BEDROCK_DATA_PATH, 'biome_id_map.json'));
}
}
}
2 changes: 1 addition & 1 deletion src/entity/InvalidSkinException.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

final class InvalidSkinException extends \InvalidArgumentException{

}
}
2 changes: 1 addition & 1 deletion src/entity/effect/StringToEffectParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ private static function make() : self{
public function parse(string $input) : ?Effect{
return parent::parse($input);
}
}
}
2 changes: 1 addition & 1 deletion src/event/block/BlockItemPickupEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public function getInventory() : ?Inventory{
public function setInventory(?Inventory $inventory) : void{
$this->inventory = $inventory;
}
}
}
2 changes: 1 addition & 1 deletion src/event/block/StructureGrowEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ public function getTransaction() : BlockTransaction{
public function getPlayer() : ?Player{
return $this->player;
}
}
}
2 changes: 1 addition & 1 deletion src/event/player/PlayerDisplayNameChangeEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ public function getOldName() : string{
public function getNewName() : string{
return $this->newName;
}
}
}
2 changes: 1 addition & 1 deletion src/inventory/PlayerCraftingInventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ public function __construct(private Player $holder){
}

public function getHolder() : Player{ return $this->holder; }
}
}
2 changes: 1 addition & 1 deletion src/inventory/TemporaryInventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

interface TemporaryInventory extends Inventory{

}
}
2 changes: 1 addition & 1 deletion src/item/enchantment/StringToEnchantmentParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ private static function make() : self{
public function parse(string $input) : ?Enchantment{
return parent::parse($input);
}
}
}
2 changes: 1 addition & 1 deletion src/network/NetworkInterfaceStartException.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
*/
final class NetworkInterfaceStartException extends \RuntimeException{

}
}
2 changes: 1 addition & 1 deletion src/network/mcpe/compression/Compressor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ public function willCompress(string $data) : bool;
public function decompress(string $payload) : string;

public function compress(string $payload) : string;
}
}
2 changes: 1 addition & 1 deletion src/network/mcpe/compression/DecompressionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

final class DecompressionException extends \RuntimeException{

}
}
2 changes: 1 addition & 1 deletion src/network/mcpe/raklib/RakLibThreadCrashInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ public function getLine() : int{ return $this->line; }
public function makePrettyMessage() : string{
return sprintf("%s: \"%s\" in %s on line %d", $this->class ?? "Fatal error", $this->message, Filesystem::cleanPath($this->file), $this->line);
}
}
}
2 changes: 1 addition & 1 deletion src/plugin/PluginLoadTriageEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public function getFile() : string{ return $this->file; }
public function getLoader() : PluginLoader{ return $this->loader; }

public function getDescription() : PluginDescription{ return $this->description; }
}
}
2 changes: 1 addition & 1 deletion src/plugin/PluginLoadabilityChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ public function check(PluginDescription $description) : Translatable|null{

return null;
}
}
}
2 changes: 1 addition & 1 deletion src/promise/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ public function onCompletion(\Closure $onSuccess, \Closure $onFailure) : void{
public function isResolved() : bool{
return $this->shared->resolved;
}
}
}
2 changes: 1 addition & 1 deletion src/promise/PromiseResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ public function reject() : void{
public function getPromise() : Promise{
return $this->promise;
}
}
}
2 changes: 1 addition & 1 deletion src/utils/SingletonTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ public static function setInstance(self $instance) : void{
public static function reset() : void{
self::$instance = null;
}
}
}
2 changes: 1 addition & 1 deletion src/utils/StringToTParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ protected function reprocess(string $input) : string{
public function getKnownAliases() : array{
return array_keys($this->callbackMap);
}
}
}
2 changes: 1 addition & 1 deletion src/world/ChunkLockId.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
final class ChunkLockId{
use NotCloneable;
use NotSerializable;
}
}
2 changes: 1 addition & 1 deletion src/world/generator/FlatGeneratorOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ public static function parsePreset(string $presetString) : self{
return new self($structure, $biomeId, $options);
}

}
}
2 changes: 1 addition & 1 deletion src/world/generator/GeneratorManagerEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ public function validateGeneratorOptions(string $generatorOptions) : void{
throw $exception;
}
}
}
}
2 changes: 1 addition & 1 deletion tests/phpstan/rules/UnsafeForeachArrayOfStringRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ public function processNode(Node $node, Scope $scope) : array{
return [];
}

}
}
2 changes: 1 addition & 1 deletion tests/phpunit/utils/fixtures/TestAbstractClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

abstract class TestAbstractClass{

}
}
2 changes: 1 addition & 1 deletion tests/phpunit/utils/fixtures/TestInstantiableClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

class TestInstantiableClass extends TestAbstractClass implements TestInterface{

}
}
2 changes: 1 addition & 1 deletion tests/phpunit/utils/fixtures/TestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

interface TestInterface{

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

class TestSubclassOfInstantiableClass extends TestInstantiableClass{

}
}
2 changes: 1 addition & 1 deletion tests/phpunit/utils/fixtures/TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

trait TestTrait{

}
}

0 comments on commit 6d24902

Please sign in to comment.