| @@ -124,9 +124,9 @@ | ||
| 124 | 124 | /** | 
| 125 | 125 | * Creates new vote entry and returns response data. | 
| 126 | 126 | * | 
| 127 | - * @param $entity | |
| 128 | - * @param $targetId | |
| 129 | - * @param $value | |
| 127 | + * @param integer $entity | |
| 128 | + * @param integer $targetId | |
| 129 | + * @param integer $value | |
| 130 | 130 | * @return array | 
| 131 | 131 | */ | 
| 132 | 132 | protected function createVote($entity, $targetId, $value) | 
| @@ -2,12 +2,12 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace hauntd\vote\actions; | 
| 4 | 4 | |
| 5 | +use Yii; | |
| 6 | +use hauntd\vote\Module; | |
| 5 | 7 | use hauntd\vote\models\Vote; | 
| 6 | 8 | use hauntd\vote\models\VoteAggregate; | 
| 7 | 9 | use hauntd\vote\models\VoteForm; | 
| 8 | -use hauntd\vote\Module; | |
| 9 | 10 | use hauntd\vote\traits\ModuleTrait; | 
| 10 | -use Yii; | |
| 11 | 11 | use yii\base\Action; | 
| 12 | 12 | use yii\web\MethodNotAllowedHttpException; | 
| 13 | 13 | use yii\web\Response; | 
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | namespace hauntd\vote\models; | 
| 4 | 4 | |
| 5 | 5 | use Yii; | 
| 6 | -use yii\base\Model; | |
| 7 | -use hauntd\vote\traits\ModuleTrait; | |
| 8 | 6 | use hauntd\vote\Module; | 
| 7 | +use hauntd\vote\traits\ModuleTrait; | |
| 8 | +use yii\base\Model; | |
| 9 | 9 | |
| 10 | 10 | /** | 
| 11 | 11 | * @author Alexander Kononenko <[email protected]> | 
| @@ -2,12 +2,12 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace hauntd\vote\widgets; | 
| 4 | 4 | |
| 5 | +use Yii; | |
| 5 | 6 | use hauntd\vote\assets\VoteAsset; | 
| 6 | 7 | use hauntd\vote\models\VoteAggregate; | 
| 7 | 8 | use hauntd\vote\traits\ModuleTrait; | 
| 8 | 9 | use yii\base\InvalidParamException; | 
| 9 | 10 | use yii\base\Widget; | 
| 10 | -use Yii; | |
| 11 | 11 | |
| 12 | 12 | /** | 
| 13 | 13 | * @author Alexander Kononenko <[email protected]> |