@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public function findUserByFullName(string $name): ?User |
| 33 | 33 | { |
| 34 | 34 | /** @noinspection PhpIncompatibleReturnTypeInspection */ |
| 35 | - return $this->getUserMatcher()->matchFirst($name, function (User $user) { |
|
| 35 | + return $this->getUserMatcher()->matchFirst($name, function(User $user) { |
|
| 36 | 36 | return $user->getFullName(); |
| 37 | 37 | }); |
| 38 | 38 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | public function findChatByTitle(string $title): ?Chat |
| 28 | 28 | { |
| 29 | 29 | /** @noinspection PhpIncompatibleReturnTypeInspection */ |
| 30 | - return $this->getChatMatcher()->matchFirst($title, function (Chat $chat) { |
|
| 30 | + return $this->getChatMatcher()->matchFirst($title, function(Chat $chat) { |
|
| 31 | 31 | return $chat->getTitle(); |
| 32 | 32 | }); |
| 33 | 33 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function listen(array $updateHandlers): void |
| 38 | 38 | { |
| 39 | - $this->repeater->repeat(function () use ($updateHandlers) { |
|
| 39 | + $this->repeater->repeat(function() use ($updateHandlers) { |
|
| 40 | 40 | foreach ($this->getUpdates() as $update) { |
| 41 | 41 | foreach ($updateHandlers as $handler) { |
| 42 | 42 | $handler->handle($update); |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use Doctrine\Common\Annotations\AnnotationRegistry; |
| 4 | 4 | use Dotenv\Dotenv; |
| 5 | 5 | |
| 6 | -(function () { |
|
| 6 | +(function() { |
|
| 7 | 7 | require __DIR__ . '/vendor/autoload.php'; |
| 8 | 8 | AnnotationRegistry::registerLoader('class_exists'); |
| 9 | 9 | if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . '.env')) { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | public function get(AuthConfigInterface $config): AuthHandlerInterface |
| 28 | 28 | { |
| 29 | 29 | $handler = (new ConditionMatch($this->handlers))->find( |
| 30 | - function (AuthHandlerInterface $currentHandler) use ($config) { |
|
| 30 | + function(AuthHandlerInterface $currentHandler) use ($config) { |
|
| 31 | 31 | return $currentHandler->suits($config); |
| 32 | 32 | } |
| 33 | 33 | ); |