Update RepresentationTrait.php

a little mistake