From d17954d4fb990892d2d366f3709160ecad412080 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 24 Jun 2020 23:38:18 +0300 Subject: [PATCH] Removed unsued var --- CONTRIBUTING.md | 1 + app/controllers/api/avatars.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d497b3652..58ebad92a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -169,6 +169,7 @@ Improve PHP exeution time by using [fully-qualified function calls](https://veew ```bash php-cs-fixer fix src/ --rules=native_function_invocation --allow-risky=yes +php-cs-fixer fix src/ --rules=no_unused_imports --dry-run ``` ## Tutorials diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index 6c38cbd8b..c41b7418b 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -26,7 +26,7 @@ $types = [ 'flags' => include __DIR__.'/../../config/avatars/flags.php', ]; -$avatarCallback = function ($type, $code, $width, $height, $quality) use ($types, $response, $request) { +$avatarCallback = function ($type, $code, $width, $height, $quality) use ($types, $response) { $code = \strtolower($code); $type = \strtolower($type);