Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Analysis/Problem/Bukkit/AmbiguousPluginNameProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/
class AmbiguousPluginNameProblem extends PluginProblem
{
protected ?string $firstPluginPath = null;
protected ?string $secondPluginPath = null;
protected string $firstPluginPath;
protected string $secondPluginPath;

/**
* Get a human-readable message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class PluginCommandExceptionProblem extends PluginProblem
{
protected ?string $command = null;
protected string $command;

/**
* Get a human-readable message
Expand Down
2 changes: 1 addition & 1 deletion src/Analysis/Problem/Bukkit/PluginDependencyProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class PluginDependencyProblem extends PluginFileProblem
{
protected ?string $dependencyPluginName = null;
protected string $dependencyPluginName;

/**
* @return string|null
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Bukkit/PluginFileProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
*/
abstract class PluginFileProblem extends PluginProblem
{
protected ?string $pluginFilePath = null;
protected string $pluginFilePath;

/**
* @return string|null
* @return string
*/
public function getPluginFilePath(): ?string
public function getPluginFilePath(): string
{
return $this->pluginFilePath;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Bukkit/PluginProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
*/
abstract class PluginProblem extends BukkitProblem
{
protected ?string $pluginName = null;
protected string $pluginName;

/**
* @return string|null
* @return string
*/
public function getPluginName(): ?string
public function getPluginName(): string
{
return $this->pluginName;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Bukkit/UnsupportedApiVersionProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

class UnsupportedApiVersionProblem extends PluginFileProblem
{
protected ?string $apiVersion = null;
protected string $apiVersion;

/**
* @return string|null
* @return string
*/
public function getApiVersion(): ?string
public function getApiVersion(): string
{
return $this->apiVersion;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Bukkit/WorldDuplicateProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
*/
class WorldDuplicateProblem extends BukkitProblem
{
protected ?string $worldName = null;
protected string $worldName;

/**
* @return string|null
* @return string
*/
public function getWorldName(): ?string
public function getWorldName(): string
{
return $this->worldName;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Analysis/Problem/CrashReport/TickingEntityProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getMessage(): string
{
return Translator::getInstance()->getTranslation("ticking-entity-problem", [
"name" => $this->getName(),
"location" => $this->getLocationX() . ", " . $this->getLocationY() . ", " . $this->getLocationZ()
"location" => sprintf("%s, %s, %s", $this->getLocationX(), $this->getLocationY(), $this->getLocationZ())
]);
}

Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Fabric/FabricIncompatibleModsProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class FabricIncompatibleModsProblem extends FabricModProblem
{
protected ?string $secondModName = null;
protected string $secondModName;

public function getMessage(): string
{
Expand All @@ -18,9 +18,9 @@ public function getMessage(): string
}

/**
* @return string|null
* @return string
*/
public function getSecondModName(): ?string
public function getSecondModName(): string
{
return $this->secondModName;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Fabric/FabricModProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ abstract class FabricModProblem extends FabricProblem
protected static string $modNamePattern = "(?:'([^\']+)' \((?:[^\)]+)\)|([\w-]+))";
protected static string $modIDPattern = "([^ ,]+)";

protected ?string $modName = null;
protected string $modName;

/**
* @return string|null
* @return string
*/
public function getModName(): ?string
public function getModName(): string
{
return $this->modName;
}
Expand Down
12 changes: 6 additions & 6 deletions src/Analysis/Problem/Forge/ModDuplicateProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/
class ModDuplicateProblem extends ModProblem
{
protected ?string $firstModPath = null;
protected ?string $secondModPath = null;
protected string $firstModPath;
protected string $secondModPath;

/**
* Get a human-readable message
Expand Down Expand Up @@ -78,17 +78,17 @@ public function isEqual(InsightInterface $insight): bool
}

/**
* @return string|null
* @return string
*/
public function getFirstModPath(): ?string
public function getFirstModPath(): string
{
return $this->firstModPath;
}

/**
* @return string|null
* @return string
*/
public function getSecondModPath(): ?string
public function getSecondModPath(): string
{
return $this->secondModPath;
}
Expand Down
7 changes: 4 additions & 3 deletions src/Analysis/Problem/Forge/ModFatalProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
*/
class ModFatalProblem extends ModProblem
{
protected string $modId;

protected ?string $modFileName = null;
protected ?string $modVersion = null;
protected ?string $modId = null;

/**
* Get a human-readable message
Expand Down Expand Up @@ -87,9 +88,9 @@ public function getModVersion(): ?string
}

/**
* @return string|null
* @return string
*/
public function getModId(): ?string
public function getModId(): string
{
return $this->modId;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Analysis/Problem/Forge/ModProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
abstract class ModProblem extends ForgeProblem
{
protected ?string $modName = null;
protected string $modName;

/**
* @return string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class ModWrongMinecraftVersionProblem extends ModProblem
{
protected ?string $minecraftVersion = null;
protected string $minecraftVersion;

/**
* @return string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class MultipleModulesExportProblem extends ModProblem
{
protected ?string $secondModName = null;
protected string $secondModName;

/**
* @return string
Expand Down
12 changes: 6 additions & 6 deletions src/Analysis/Problem/Forge/WorldModVersionProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/
class WorldModVersionProblem extends ModProblem
{
protected ?string $currentVersion = null;
protected ?string $expectedVersion = null;
protected string $currentVersion;
protected string $expectedVersion;

/**
* Get a human-readable message
Expand Down Expand Up @@ -60,17 +60,17 @@ public function setMatches(array $matches, mixed $patternKey): void
}

/**
* @return string|null
* @return string
*/
public function getCurrentVersion(): ?string
public function getCurrentVersion(): string
{
return $this->currentVersion;
}

/**
* @return string|null
* @return string
*/
public function getExpectedVersion(): ?string
public function getExpectedVersion(): string
{
return $this->expectedVersion;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class ApiVersionLowerThanAllowedProblem extends PluginFileProblem
{
protected ?string $pluginApiVersion = null;
protected string $pluginApiVersion;

/**
* Get a human-readable message
Expand Down Expand Up @@ -50,9 +50,9 @@ public function setMatches(array $matches, mixed $patternKey): void
}

/**
* @return string|null
* @return string
*/
public function getPluginApiVersion(): ?string
public function getPluginApiVersion(): string
{
return $this->pluginApiVersion;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Pocketmine/PluginDependencyProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
*/
class PluginDependencyProblem extends PluginProblem
{
protected ?string $dependencyPluginName = null;
protected string $dependencyPluginName;

/**
* @return string|null
* @return string
*/
public function getDependencyPluginName(): ?string
public function getDependencyPluginName(): string
{
return $this->dependencyPluginName;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Pocketmine/PluginProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
*/
abstract class PluginProblem extends PocketmineProblem
{
protected ?string $pluginName = null;
protected string $pluginName;

/**
* @return string|null
* @return string
*/
public function getPluginName(): ?string
public function getPluginName(): string
{
return $this->pluginName;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Analysis/Problem/Pocketmine/PluginRuntimeProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class PluginRuntimeProblem extends PluginProblem
{
protected ?string $pluginPath = null;
protected string $pluginPath;

/**
* Get a human-readable message
Expand Down Expand Up @@ -50,9 +50,9 @@ public function setMatches(array $matches, $patternKey): void
}

/**
* @return string|null
* @return string
*/
public function getPluginPath(): ?string
public function getPluginPath(): string
{
return $this->pluginPath;
}
Expand Down