@@ -35,6 +35,9 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @param ContainerInterface|string $multilanguage |
| 38 | + * @param \PHPUnit\Framework\MockObject\MockObject $requestStack |
|
| 39 | + * @param string $defaultLocale |
|
| 40 | + * @param string $requiredLocales |
|
| 38 | 41 | */ |
| 39 | 42 | public function __construct(/*ContainerInterface|RequestStack*/ $requestStack, $multilanguage = null, $defaultLocale = null, $requiredLocales = null, AdminRouteHelper $adminRouteHelper = null, EntityManagerInterface $em = null, array $hosts = null) |
| 40 | 43 | { |
@@ -291,7 +294,7 @@ discard block |
||
| 291 | 294 | } |
| 292 | 295 | |
| 293 | 296 | /** |
| 294 | - * @param string|int $id |
|
| 297 | + * @param integer $id |
|
| 295 | 298 | * |
| 296 | 299 | * @return array |
| 297 | 300 | */ |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | - * @return array|mixed|\Traversable |
|
| 123 | + * @return \Pagerfanta\iterable|null |
|
| 124 | 124 | */ |
| 125 | 125 | public function getItems() |
| 126 | 126 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * Return the url to edit the given $item |
| 61 | 61 | * |
| 62 | - * @param object $item |
|
| 62 | + * @param \Kunstmaan\AdminListBundle\Tests\AdminList\Configurator\anonymous//src/Kunstmaan/AdminListBundle/Tests/unit/AdminList/Configurator/AbstractDoctrineORMAdminListConfiguratorTest.php$0 $item |
|
| 63 | 63 | * |
| 64 | 64 | * @return array |
| 65 | 65 | */ |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Get the delete url for the given $item |
| 79 | 79 | * |
| 80 | - * @param object $item |
|
| 80 | + * @param \Kunstmaan\AdminListBundle\Tests\AdminList\Configurator\anonymous//src/Kunstmaan/AdminListBundle/Tests/unit/AdminList/Configurator/AbstractDoctrineORMAdminListConfiguratorTest.php$1 $item |
|
| 81 | 81 | * |
| 82 | 82 | * @return array |
| 83 | 83 | */ |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | - * @return array|Traversable |
|
| 128 | + * @return \Pagerfanta\iterable|null |
|
| 129 | 129 | */ |
| 130 | 130 | public function getItems() |
| 131 | 131 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * Constructor |
| 24 | 24 | * |
| 25 | - * @param object $em entity manager |
|
| 25 | + * @param EntityManager $em entity manager |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct(EntityManager $em) |
| 28 | 28 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @param Event $event event |
| 36 | 36 | * |
| 37 | - * @return Repository |
|
| 37 | + * @return \Doctrine\Persistence\ObjectRepository|null |
|
| 38 | 38 | */ |
| 39 | 39 | public function getRepositoryForEvent($event) |
| 40 | 40 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @param string $name name |
| 70 | 70 | * |
| 71 | - * @return Repository |
|
| 71 | + * @return \Doctrine\Persistence\ObjectRepository |
|
| 72 | 72 | */ |
| 73 | 73 | protected function getRepository($name) |
| 74 | 74 | { |
@@ -84,6 +84,10 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @param string $locale |
|
| 89 | + * @param string $title |
|
| 90 | + */ |
|
| 87 | 91 | public function clonePage(Node $originalNode, $locale, $title = null) |
| 88 | 92 | { |
| 89 | 93 | $originalNodeTranslations = $originalNode->getNodeTranslation($locale, true); |
@@ -123,6 +127,10 @@ discard block |
||
| 123 | 127 | return $nodeNewPage; |
| 124 | 128 | } |
| 125 | 129 | |
| 130 | + /** |
|
| 131 | + * @param Node $originalNode |
|
| 132 | + * @param Node $nodeNewPage |
|
| 133 | + */ |
|
| 126 | 134 | private function updateAcl($originalNode, $nodeNewPage): void |
| 127 | 135 | { |
| 128 | 136 | $originalIdentity = $this->identityRetrievalStrategy->getObjectIdentity($originalNode); |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * @return array |
|
| 158 | + * @return string[] |
|
| 159 | 159 | */ |
| 160 | 160 | protected function getCurrentUserRoles() |
| 161 | 161 | { |