@@ -61,6 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | + * @param string $class |
|
64 | 65 | * @return PHPUnit_Framework_MockObject_MockObject|$class |
65 | 66 | */ |
66 | 67 | protected function getEventMock($class) |
@@ -134,7 +135,6 @@ discard block |
||
134 | 135 | } |
135 | 136 | |
136 | 137 | /** |
137 | - * @param bool $csrfEnabled |
|
138 | 138 | * |
139 | 139 | * @return CsrfListener |
140 | 140 | */ |
@@ -69,6 +69,9 @@ discard block |
||
69 | 69 | ); |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $method |
|
74 | + */ |
|
72 | 75 | protected function onKernelViewIsNotRestRequest($method, GetResponseEvent $event) |
73 | 76 | { |
74 | 77 | $this->getVisitorDispatcherMock() |
@@ -88,6 +91,9 @@ discard block |
||
88 | 91 | $this->onKernelView('onKernelResultView', $this->getControllerResultEventMock()); |
89 | 92 | } |
90 | 93 | |
94 | + /** |
|
95 | + * @param string $method |
|
96 | + */ |
|
91 | 97 | protected function onKernelView($method, $event) |
92 | 98 | { |
93 | 99 | $this->getVisitorDispatcherMock() |
@@ -110,7 +116,7 @@ discard block |
||
110 | 116 | } |
111 | 117 | |
112 | 118 | /** |
113 | - * @return AcceptHeaderVisitorDispatcher|PHPUnit_Framework_MockObject_MockObject |
|
119 | + * @return AcceptHeaderVisitorDispatcher |
|
114 | 120 | */ |
115 | 121 | public function getVisitorDispatcherMock() |
116 | 122 | { |
@@ -149,7 +149,7 @@ |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * @return \Symfony\Cmf\Component\Routing\ChainRouter|\PHPUnit_Framework_MockObject_MockObject |
|
152 | + * @return \Symfony\Component\Routing\RouterInterface |
|
153 | 153 | */ |
154 | 154 | private function getRouterMock() |
155 | 155 | { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to delete a content type group |
88 | 88 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException If a to be deleted content type has instances |
89 | 89 | * |
90 | - * @param \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $ContentTypeGroup |
|
90 | + * @param \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup |
|
91 | 91 | */ |
92 | 92 | public function deleteContentTypeGroup(ContentTypeGroup $contentTypeGroup); |
93 | 93 |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use eZ\Publish\Core\MVC\Symfony\RequestStackAware; |
16 | 16 | use eZ\Publish\Core\MVC\Symfony\Routing\RouteReference; |
17 | 17 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
18 | -use Symfony\Component\HttpFoundation\Request; |
|
19 | 18 | |
20 | 19 | class RouteReferenceGenerator implements RouteReferenceGeneratorInterface |
21 | 20 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | use eZ\Publish\SPI\Persistence\Content\ContentInfo; |
5 | 5 | use eZ\Publish\SPI\Persistence\Content\Field; |
6 | 6 | use eZ\Publish\SPI\Persistence\Content\FieldValue; |
7 | -use eZ\Publish\SPI\Persistence\Content\Location; |
|
8 | 7 | use eZ\Publish\SPI\Persistence\Content\VersionInfo; |
9 | 8 | |
10 | 9 | $content = new Content(); |
@@ -22,6 +22,9 @@ |
||
22 | 22 | return $treeBuilder; |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @param \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode |
|
27 | + */ |
|
25 | 28 | public function addRestRootResourcesSection($rootNode) |
26 | 29 | { |
27 | 30 | $systemNode = $this->generateScopeBaseNode($rootNode); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @param string $path The content path |
115 | 115 | * @param array $fields |
116 | - * @param mixed $contentType The content type identifier |
|
116 | + * @param string $contentType The content type identifier |
|
117 | 117 | * |
118 | 118 | * @return mixed location id of the created content |
119 | 119 | */ |
@@ -147,6 +147,7 @@ discard block |
||
147 | 147 | |
148 | 148 | /** |
149 | 149 | * Maps the path of the content to it's name for later use. |
150 | + * @param string $path |
|
150 | 151 | */ |
151 | 152 | private function mapContentPath($path) |
152 | 153 | { |
@@ -228,6 +228,7 @@ |
||
228 | 228 | * |
229 | 229 | * @param string The field name |
230 | 230 | * @param mixed The field value |
231 | + * @param string|null $field |
|
231 | 232 | */ |
232 | 233 | private function createAndPublishContent($field, $value) |
233 | 234 | { |