From 8547080eb894d17007ddd543077871a0f2c9abf4 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 3 Nov 2016 00:17:46 +0100 Subject: [PATCH] Fix interface controller --- src/Api/InterfaceControllerProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/InterfaceControllerProvider.php b/src/Api/InterfaceControllerProvider.php index ac0268e..16533b0 100644 --- a/src/Api/InterfaceControllerProvider.php +++ b/src/Api/InterfaceControllerProvider.php @@ -26,7 +26,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface $controllers->get('/images', function (Application $app) { - $getEmoBlocks = function($emotion, $feature, $steps = 6) use($em) { + $getEmoBlocks = function($emotion, $feature, $steps = 6) { $hitRepo = $this->_eh->getEm()->getRepository(EmotionHero\Models\Hit::class); $blocks = []; foreach(range(0, 100, 100/($steps-1)) as $i) {