@@ -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; |