Skip to content

Commit

Permalink
fixed pass by reference warning
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Feb 18, 2019
1 parent 96a97c3 commit daef18a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Analysis/Problem/Bukkit/AmbiguousPluginNameProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class AmbiguousPluginNameProblem extends BukkitProblem
*/
public function getMessage(): string
{
$first = end(explode("/", $this->getFirstPluginPath()));
$second = end(explode("/", $this->getSecondPluginPath()));
$first = end($pathParts = explode("/", $this->getFirstPluginPath()));
$second = end($pathParts = explode("/", $this->getSecondPluginPath()));
return "There are multiple plugin files for the plugin name '" . $this->getPluginName() . "': '" . $first . "' and '" . $second . "'.";
}

Expand Down
4 changes: 2 additions & 2 deletions src/Analysis/Problem/Forge/ModDuplicateProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class ModDuplicateProblem extends ModProblem
*/
public function getMessage(): string
{
$first = end(explode("/", $this->getFirstModPath()));
$second = end(explode("/", $this->getSecondModPath()));
$first = end($pathParts = explode("/", $this->getFirstModPath()));
$second = end($pathParts = explode("/", $this->getSecondModPath()));

return "There are multiple mod files for the mod name '" . $this->getModName() . "': '" . $first . "' and '" . $second . "'.";
}
Expand Down

0 comments on commit daef18a

Please sign in to comment.