From c720e0465cbbd8a9107cf298a23c20e90aeb530d Mon Sep 17 00:00:00 2001 From: Ruben Date: Sun, 4 Sep 2016 13:54:47 +0100 Subject: [PATCH] Fix static vars --- src/Api/ScoreControllerProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/ScoreControllerProvider.php b/src/Api/ScoreControllerProvider.php index 3666dbd..b3b8257 100644 --- a/src/Api/ScoreControllerProvider.php +++ b/src/Api/ScoreControllerProvider.php @@ -94,16 +94,16 @@ class ScoreControllerProvider implements ControllerProviderInterface // attributes $hit->getAttributes()->setGlasses($data_hit['glasses']); - foreach(Models\Hit::$ATTRIBUTES as $attribute) { + foreach($hit->getAttributes()::$ATTRIBUTES as $attribute) { $hit->getAttributes()->setAttribute($attribute, $data_hit[$attribute]); } // emotions - foreach(Models\Hit::$EMOTIONS as $emotion) { + foreach($hit->getEmotions()::$EMOTIONS as $emotion) { $hit->getEmotions()->setEmotion($emotion, $data_hit['emotions'][$emotion]); } //expressions - foreach(Models\Hit::$EXPRESSIONS as $expression) { + foreach($hit->getExpressions()::$EXPRESSIONS as $expression) { $hit->getExpressions()->setExpression($expression, $data_hit['expressions'][$expression]); }