fix code style issues in packages controller

related to ·139
Merge pull request #143 from javigomez/130d

fix code style issues in packages controller