Translate all code comments from Russian to English [skip ci]

This commit is contained in:
ErickSkrauch
2019-07-15 01:59:56 +03:00
parent 31069562b3
commit 3dbf29d34c
64 changed files with 264 additions and 286 deletions

View File

@@ -7,7 +7,7 @@ use yii\web\HttpException;
class SessionServerException extends HttpException {
/**
* Рефлексия быстрее, как ни странно:
* Reflection is faster, weird as it may seem:
* @url https://coderwall.com/p/cpxxxw/php-get-class-name-without-namespace#comment_19313
*
* @return string

View File

@@ -41,11 +41,10 @@ class LegacyJoin extends BaseJoin {
}
/**
* Метод проводит инициализацию значений полей для соотвествия общим канонам
* именования в проекте
* The method initializes field values to meet the general naming conventions in the project
*
* Бьём по ':' для учёта авторизации в современных лаунчерах и входе на более старую
* версию игры. Там sessionId передаётся как "token:{accessToken}:{uuid}", так что это нужно обработать
* Split by ':' to take into account authorization in modern launchers and login to an legacy version of the game.
* The sessionId is passed on as "token:{accessToken}:{uuid}", so it needs to be processed
*/
private function parseSessionId(string $sessionId) {
$parts = explode(':', $sessionId);

View File

@@ -4,8 +4,8 @@ namespace api\modules\session\validators;
use api\modules\session\exceptions\IllegalArgumentException;
/**
* Для данного модуля нам не принципиально, что там за ошибка: если не хватает хотя бы одного
* параметра - тут же отправляем исключение и дело с концом
* For this module, it is not important for us what the error is: if at least one parameter is missing,
* we immediately throw an exception and that's it.
*/
class RequiredValidator extends \yii\validators\RequiredValidator {