@@ -5,10 +5,7 @@ |
||
5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
6 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | 7 | use Symfony\Component\HttpFoundation\Response; |
8 | -use FOS\RestBundle\Controller\FOSRestController, |
|
9 | - FOS\RestBundle\Controller\Annotations\View, |
|
10 | - FOS\RestBundle\Controller\Annotations\QueryParam, |
|
11 | - FOS\RestBundle\Request\ParamFetcher; |
|
8 | +use FOS\RestBundle\Controller\Annotations\View; |
|
12 | 9 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
13 | 10 | use Application\Sonata\MediaBundle\Model\UploadFileResponse; |
14 | 11 |
@@ -130,7 +130,7 @@ |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * @param $type |
|
133 | + * @param string $type |
|
134 | 134 | * @param Request $request |
135 | 135 | * @throws NotFoundHttpException |
136 | 136 | * @internal param $file |
@@ -347,6 +347,9 @@ |
||
347 | 347 | ))); |
348 | 348 | } |
349 | 349 | |
350 | + /** |
|
351 | + * @param User $user |
|
352 | + */ |
|
350 | 353 | protected function getContributionElement($user) |
351 | 354 | { |
352 | 355 | return function ($element) use ($user) { |
@@ -31,7 +31,6 @@ |
||
31 | 31 | use Symfony\Component\Form\Form; |
32 | 32 | use Symfony\Component\HttpFoundation\Request; |
33 | 33 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
34 | -use Symfony\Component\Validator\Constraints\DateTime; |
|
35 | 34 | |
36 | 35 | class DreamController extends Controller |
37 | 36 | { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @param $file |
|
105 | + * @param string $file |
|
106 | 106 | * |
107 | 107 | * @return array |
108 | 108 | */ |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @param $file |
|
97 | + * @param string $file |
|
98 | 98 | * |
99 | 99 | * @return array |
100 | 100 | */ |
@@ -123,6 +123,9 @@ discard block |
||
123 | 123 | $this->mandrillDispatcher->send($message); |
124 | 124 | } |
125 | 125 | |
126 | + /** |
|
127 | + * @param string $status |
|
128 | + */ |
|
126 | 129 | protected function postStatusEmail($status, Dream $dream) |
127 | 130 | { |
128 | 131 | if (in_array($status, array('success', 'implementing'))) { |
@@ -159,6 +162,9 @@ discard block |
||
159 | 162 | } |
160 | 163 | } |
161 | 164 | |
165 | + /** |
|
166 | + * @param string $nameTwigTemplate |
|
167 | + */ |
|
162 | 168 | protected function getTemplate($nameTwigTemplate, $options = array()) |
163 | 169 | { |
164 | 170 | return $this->container->get('templating')->render( |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Application\Sonata\MediaBundle\Entity\Media; |
16 | 16 | use Symfony\Component\HttpFoundation\File\File; |
17 | 17 | use Symfony\Component\Filesystem\Filesystem; |
18 | -use Symfony\Component\Filesystem\Exception\IOExceptionInterface; |
|
19 | 18 | |
20 | 19 | class DreamFilesTransformer implements DataTransformerInterface |
21 | 20 | { |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Application\Sonata\MediaBundle\Entity\Media; |
15 | 15 | use Symfony\Component\HttpFoundation\File\File; |
16 | 16 | use Symfony\Component\Filesystem\Filesystem; |
17 | -use Symfony\Component\Filesystem\Exception\IOExceptionInterface; |
|
18 | 17 | |
19 | 18 | class DreamPicturesTransformer implements DataTransformerInterface |
20 | 19 | { |
@@ -331,8 +331,8 @@ |
||
331 | 331 | /** |
332 | 332 | * Set odnoklasnikiId |
333 | 333 | * |
334 | - * @param string $odnoklasnikiId |
|
335 | - * @return string |
|
334 | + * @param string $odnoklassnikiId |
|
335 | + * @return User |
|
336 | 336 | */ |
337 | 337 | public function setOdnoklassnikiId($odnoklassnikiId) |
338 | 338 | { |