Fix static vars
This commit is contained in:
parent
cfee991542
commit
c720e0465c
1 changed files with 3 additions and 3 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue