Format files

This commit is contained in:
Dane Everitt
2019-09-05 21:32:57 -07:00
parent 26e4ff1f62
commit 7543ef085d
193 changed files with 624 additions and 602 deletions

View File

@@ -9,6 +9,7 @@
namespace Pterodactyl\Http\Requests\Base;
use Exception;
use IPTools\Network;
use Pterodactyl\Http\Requests\FrontendUserFormRequest;
@@ -65,7 +66,7 @@ class ApiKeyFormRequest extends FrontendUserFormRequest
try {
Network::parse($ip);
} catch (\Exception $ex) {
} catch (Exception $ex) {
$validator->errors()->add('allowed_ips', 'Could not parse IP ' . $ip . ' because it is in an invalid format.');
}
}