1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 10:34:38 +01:00

Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-04-22 15:10:37 +00:00 committed by StyleCI Bot
parent 662b156589
commit 0a74d1e5b7

View File

@ -27,7 +27,9 @@ class RPCErrorException extends \Exception
case 'USERNAME_INVALID': $message = 'The provided username is not valid';
}
parent::__construct($message, $code, $previous);
if (in_array($message, ['The provided username is not valid'])) return;
if (in_array($message, ['The provided username is not valid'])) {
return;
}
\Rollbar\Rollbar::log($this);
}
}