@@ -267,6 +267,10 @@ discard block |
||
| 267 | 267 | return $response; |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | + /** |
|
| 271 | + * @param string $code |
|
| 272 | + * @param string $message |
|
| 273 | + */ |
|
| 270 | 274 | private function returnJsonError($code, $message) |
| 271 | 275 | { |
| 272 | 276 | return new JsonResponse([ |
@@ -440,7 +444,7 @@ discard block |
||
| 440 | 444 | * @Route("move/", name="KunstmaanMediaBundle_media_move") |
| 441 | 445 | * @Method({"POST"}) |
| 442 | 446 | * |
| 443 | - * @return string |
|
| 447 | + * @return JsonResponse |
|
| 444 | 448 | */ |
| 445 | 449 | public function moveMedia(Request $request) |
| 446 | 450 | { |
@@ -91,6 +91,12 @@ |
||
| 91 | 91 | $object->match('/en/some-uri'); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param Request $request |
|
| 96 | + * @param NodeTranslation $nodeTranslation |
|
| 97 | + * |
|
| 98 | + * @return \Symfony\Component\DependencyInjection\ContainerInterface |
|
| 99 | + */ |
|
| 94 | 100 | private function getContainer($request, $nodeTranslation = null) |
| 95 | 101 | { |
| 96 | 102 | $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -256,6 +256,7 @@ |
||
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | + * @param string $host |
|
| 259 | 260 | * @return bool |
| 260 | 261 | */ |
| 261 | 262 | protected function isMultiLanguage($host = null) |
@@ -116,6 +116,12 @@ |
||
| 116 | 116 | $object->match('/en/some-uri'); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param Request|null $request |
|
| 121 | + * @param NodeTranslation $nodeTranslation |
|
| 122 | + * |
|
| 123 | + * @return \Symfony\Component\DependencyInjection\ContainerInterface |
|
| 124 | + */ |
|
| 119 | 125 | private function getContainer($request, $multiLanguage = false, $nodeTranslation = null) |
| 120 | 126 | { |
| 121 | 127 | $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -67,6 +67,9 @@ |
||
| 67 | 67 | ->getResult(self::TAGGING_HYDRATOR); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param integer $id |
|
| 72 | + */ |
|
| 70 | 73 | public function findById($id) |
| 71 | 74 | { |
| 72 | 75 | if (!isset($id) || is_null($id)) { |
@@ -124,6 +124,12 @@ |
||
| 124 | 124 | return $trans; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param string $id |
|
| 129 | + * @param string $domain |
|
| 130 | + * @param string|null $locale |
|
| 131 | + * @param string $trans |
|
| 132 | + */ |
|
| 127 | 133 | public function profileTranslation($id, $parameters, $domain, $locale, $trans) |
| 128 | 134 | { |
| 129 | 135 | if (!$this->request || $this->container->getParameter('kuma_translator.profiler') === false) { |
@@ -10,6 +10,9 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class MaxNumberByIpEventListenerTest extends \PHPUnit_Framework_TestCase |
| 12 | 12 | { |
| 13 | + /** |
|
| 14 | + * @param boolean $returnNull |
|
| 15 | + */ |
|
| 13 | 16 | protected function mockRepositoryResolver($returnNull, $voteNumber = 0) |
| 14 | 17 | { |
| 15 | 18 | $mockedRepository = null; |