Adds missing return in CharacterResetViewpointCommand
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "lotgd/core",
|
||||
"description": "Core functionality for Legend of the Green Dragon, a text-based RPG game.",
|
||||
"license": "AGPL-3.0",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.0",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"LotGD\\Core\\": "src/",
|
||||
|
||||
Generated
+50
-8
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "4e8fcc2ad92b574eb3850ae4d5778763",
|
||||
"content-hash": "e334149a757d64088235328e16c3df50",
|
||||
"packages": [
|
||||
{
|
||||
"name": "brick/math",
|
||||
@@ -1586,6 +1586,48 @@
|
||||
},
|
||||
"time": "2012-02-26T16:27:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "jetbrains/phpstorm-attributes",
|
||||
"version": "1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/JetBrains/phpstorm-attributes.git",
|
||||
"reference": "a7a83ae5df4dd3c0875484483de19de8edf60a9f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/JetBrains/phpstorm-attributes/zipball/a7a83ae5df4dd3c0875484483de19de8edf60a9f",
|
||||
"reference": "a7a83ae5df4dd3c0875484483de19de8edf60a9f",
|
||||
"shasum": ""
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"JetBrains\\PhpStorm\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "JetBrains",
|
||||
"homepage": "https://www.jetbrains.com"
|
||||
}
|
||||
],
|
||||
"description": "PhpStorm specific attributes",
|
||||
"keywords": [
|
||||
"attributes",
|
||||
"jetbrains",
|
||||
"phpstorm"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://youtrack.jetbrains.com/newIssue?project=WI",
|
||||
"source": "https://github.com/JetBrains/phpstorm-attributes/tree/1.0"
|
||||
},
|
||||
"time": "2020-11-17T11:09:47+00:00"
|
||||
},
|
||||
{
|
||||
"name": "justinrainbow/json-schema",
|
||||
"version": "5.2.10",
|
||||
@@ -3309,16 +3351,16 @@
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "friendsofphp/php-cs-fixer",
|
||||
"version": "v2.17.2",
|
||||
"version": "v2.17.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
|
||||
"reference": "aaee4f3d16a996fc0b570be0c69d3b80c909c507"
|
||||
"reference": "bd32f5dd72cdfc7b53f54077f980e144bfa2f595"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/aaee4f3d16a996fc0b570be0c69d3b80c909c507",
|
||||
"reference": "aaee4f3d16a996fc0b570be0c69d3b80c909c507",
|
||||
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/bd32f5dd72cdfc7b53f54077f980e144bfa2f595",
|
||||
"reference": "bd32f5dd72cdfc7b53f54077f980e144bfa2f595",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3344,7 +3386,7 @@
|
||||
"justinrainbow/json-schema": "^5.0",
|
||||
"keradus/cli-executor": "^1.4",
|
||||
"mikey179/vfsstream": "^1.6",
|
||||
"php-coveralls/php-coveralls": "^2.4.1",
|
||||
"php-coveralls/php-coveralls": "^2.4.2",
|
||||
"php-cs-fixer/accessible-object": "^1.0",
|
||||
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
|
||||
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
|
||||
@@ -3401,7 +3443,7 @@
|
||||
"description": "A tool to automatically fix PHP code style",
|
||||
"support": {
|
||||
"issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
|
||||
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.17.2"
|
||||
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.17.3"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -3409,7 +3451,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2020-12-17T16:41:55+00:00"
|
||||
"time": "2020-12-24T11:14:44+00:00"
|
||||
},
|
||||
{
|
||||
"name": "myclabs/deep-copy",
|
||||
|
||||
@@ -44,7 +44,7 @@ class CharacterResetViewpointCommand extends BaseCommand
|
||||
|
||||
if ($character === null) {
|
||||
$io->error("Character not found.");
|
||||
return;
|
||||
return Command::FAILURE;
|
||||
}
|
||||
|
||||
$this->game->getEntityManager()->remove($character->getViewpoint());
|
||||
|
||||
Reference in New Issue
Block a user