@@ -186,7 +186,7 @@ |
||
| 186 | 186 | /** |
| 187 | 187 | * Loops over the OrderItems and accumulates the value of the given property. Can also be a getter. |
| 188 | 188 | * |
| 189 | - * @param $property |
|
| 189 | + * @param string $property |
|
| 190 | 190 | * |
| 191 | 191 | * @return int|string |
| 192 | 192 | */ |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Returns a list of functions to add to the existing list. |
| 28 | 28 | * |
| 29 | - * @return array An array of functions |
|
| 29 | + * @return \Twig_SimpleFunction[] An array of functions |
|
| 30 | 30 | */ |
| 31 | 31 | public function getFunctions() |
| 32 | 32 | { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * |
| 127 | 127 | * @param array &$arr This is modified in place |
| 128 | 128 | * @param string $option the key in the $arr array |
| 129 | - * @param mixed $value the new value if the option wasn't set already |
|
| 129 | + * @param string $value the new value if the option wasn't set already |
|
| 130 | 130 | */ |
| 131 | 131 | private function setOptionIfNotSet(&$arr, $option, $value) |
| 132 | 132 | { |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * |
| 90 | 90 | * @param ORM\Entity $entities Result array with all entities to create an insert for |
| 91 | 91 | * @param string $entityClassName Class of the specified entity (same as entities) |
| 92 | - * @param array $ignoreFields fields not to use in the insert query |
|
| 92 | + * @param string[] $ignoreFields fields not to use in the insert query |
|
| 93 | 93 | * |
| 94 | 94 | * @return string an insert sql query, of no result nul |
| 95 | 95 | */ |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | * |
| 230 | 230 | * @throws AccessDeniedException |
| 231 | 231 | * |
| 232 | - * @return array |
|
| 232 | + * @return RedirectResponse |
|
| 233 | 233 | */ |
| 234 | 234 | public function deleteAction(Request $request, $id) |
| 235 | 235 | { |
@@ -35,6 +35,7 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @throws \Defuse\Crypto\Exception\IOException |
| 37 | 37 | * @throws \Defuse\Crypto\Exception\EnvironmentIsBrokenException |
| 38 | + * @return void |
|
| 38 | 39 | */ |
| 39 | 40 | public function encryptFile($inputFile, $outputFile); |
| 40 | 41 | |
@@ -45,6 +46,7 @@ discard block |
||
| 45 | 46 | * @throws \Defuse\Crypto\Exception\WrongKeyOrModifiedCiphertextException |
| 46 | 47 | * @throws \Defuse\Crypto\Exception\IOException |
| 47 | 48 | * @throws \Defuse\Crypto\Exception\EnvironmentIsBrokenException |
| 49 | + * @return void |
|
| 48 | 50 | */ |
| 49 | 51 | public function decryptFile($inputFile, $outputFile); |
| 50 | 52 | } |
@@ -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\Common\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\Common\Persistence\ObjectRepository |
|
| 72 | 72 | */ |
| 73 | 73 | protected function getRepository($name) |
| 74 | 74 | { |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | * Get an array of fields that need to be added to the entity. |
| 398 | 398 | * |
| 399 | 399 | * @param BundleInterface $bundle |
| 400 | - * @param array $reservedFields |
|
| 400 | + * @param string[] $reservedFields |
|
| 401 | 401 | * |
| 402 | 402 | * @return array |
| 403 | 403 | */ |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | * |
| 576 | 576 | * @param bool $niceNames |
| 577 | 577 | * |
| 578 | - * @return array |
|
| 578 | + * @return string[] |
|
| 579 | 579 | */ |
| 580 | 580 | private function getTypes($niceNames = false) |
| 581 | 581 | { |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | /** |
| 604 | 604 | * Get all available media types. |
| 605 | 605 | * |
| 606 | - * @return array |
|
| 606 | + * @return string[] |
|
| 607 | 607 | */ |
| 608 | 608 | private function getMediaTypes() |
| 609 | 609 | { |
@@ -624,7 +624,7 @@ discard block |
||
| 624 | 624 | * |
| 625 | 625 | * @param BundleInterface $bundle |
| 626 | 626 | * @param $objectName |
| 627 | - * @param $prefix |
|
| 627 | + * @param string $prefix |
|
| 628 | 628 | * @param $name |
| 629 | 629 | * @param $type |
| 630 | 630 | * @param null $extra |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * You can override this method to return the correct entity manager when using multiple databases ... |
| 35 | 35 | * |
| 36 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
| 36 | + * @return \Doctrine\Common\Persistence\ObjectManager |
|
| 37 | 37 | */ |
| 38 | 38 | protected function getEntityManager() |
| 39 | 39 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * Shows the list of entities |
| 45 | 45 | * |
| 46 | 46 | * @param AbstractAdminListConfigurator $configurator |
| 47 | - * @param null|Request $request |
|
| 47 | + * @param Request $request |
|
| 48 | 48 | * |
| 49 | 49 | * @return Response |
| 50 | 50 | */ |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * |
| 97 | 97 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 98 | 98 | * @param string $type The type to add |
| 99 | - * @param null|Request $request |
|
| 99 | + * @param Request $request |
|
| 100 | 100 | * |
| 101 | 101 | * @throws AccessDeniedHttpException |
| 102 | 102 | * |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * |
| 192 | 192 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 193 | 193 | * @param string $entityId The id of the entity that will be edited |
| 194 | - * @param null|Request $request |
|
| 194 | + * @param Request $request |
|
| 195 | 195 | * |
| 196 | 196 | * @throws NotFoundHttpException |
| 197 | 197 | * @throws AccessDeniedHttpException |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | * |
| 348 | 348 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 349 | 349 | * @param int $entityId The id to delete |
| 350 | - * @param null|Request $request |
|
| 350 | + * @param Request $request |
|
| 351 | 351 | * |
| 352 | 352 | * @throws NotFoundHttpException |
| 353 | 353 | * @throws AccessDeniedHttpException |
@@ -474,6 +474,9 @@ discard block |
||
| 474 | 474 | ); |
| 475 | 475 | } |
| 476 | 476 | |
| 477 | + /** |
|
| 478 | + * @param \Doctrine\Common\Persistence\ObjectRepository $repo |
|
| 479 | + */ |
|
| 477 | 480 | private function getMaxSortableField($repo, $sort) |
| 478 | 481 | { |
| 479 | 482 | $maxWeight = $repo->createQueryBuilder('i') |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * |
| 149 | 149 | * @param Kernel $kernel |
| 150 | 150 | * |
| 151 | - * @return array |
|
| 151 | + * @return \Symfony\Component\Console\Question\iterable|null |
|
| 152 | 152 | */ |
| 153 | 153 | private function getNamespaceAutoComplete(Kernel $kernel) |
| 154 | 154 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * |
| 166 | 166 | * @param $namespace |
| 167 | 167 | * |
| 168 | - * @return mixed |
|
| 168 | + * @return string |
|
| 169 | 169 | */ |
| 170 | 170 | private function fixNamespace($namespace) |
| 171 | 171 | { |