@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Doctrine\Common\Util\ClassUtils; |
15 | 15 | use Knp\Menu\FactoryInterface as MenuFactoryInterface; |
16 | -use Knp\Menu\ItemInterface; |
|
17 | 16 | use Knp\Menu\ItemInterface as MenuItemInterface; |
18 | 17 | use Sonata\AdminBundle\Builder\DatagridBuilderInterface; |
19 | 18 | use Sonata\AdminBundle\Builder\FormContractorInterface; |
@@ -961,6 +961,7 @@ discard block |
||
961 | 961 | |
962 | 962 | /** |
963 | 963 | * NEXT_MAJOR: remove this method. |
964 | + * @param string $subClass |
|
964 | 965 | */ |
965 | 966 | public function addSubClass($subClass) |
966 | 967 | { |
@@ -1083,6 +1084,10 @@ discard block |
||
1083 | 1084 | return $this->routeGenerator->hasAdminRoute($this, $name); |
1084 | 1085 | } |
1085 | 1086 | |
1087 | + /** |
|
1088 | + * @param string $name |
|
1089 | + * @param string $adminCode |
|
1090 | + */ |
|
1086 | 1091 | public function isCurrentRoute($name, $adminCode = null) |
1087 | 1092 | { |
1088 | 1093 | if (!$this->hasRequest()) { |
@@ -2177,7 +2182,7 @@ discard block |
||
2177 | 2182 | * |
2178 | 2183 | * @param string $context |
2179 | 2184 | * |
2180 | - * @return array |
|
2185 | + * @return string[] |
|
2181 | 2186 | */ |
2182 | 2187 | public function getPermissionsShow($context) |
2183 | 2188 | { |
@@ -2482,6 +2487,9 @@ discard block |
||
2482 | 2487 | return true; |
2483 | 2488 | } |
2484 | 2489 | |
2490 | + /** |
|
2491 | + * @param string $action |
|
2492 | + */ |
|
2485 | 2493 | public function configureActionButtons($action, $object = null) |
2486 | 2494 | { |
2487 | 2495 | $list = []; |
@@ -2612,7 +2620,6 @@ discard block |
||
2612 | 2620 | } |
2613 | 2621 | |
2614 | 2622 | /** |
2615 | - * @param FormMapper $form |
|
2616 | 2623 | */ |
2617 | 2624 | final public function getSearchResultLink($object) |
2618 | 2625 | { |
@@ -2711,6 +2718,7 @@ discard block |
||
2711 | 2718 | /** |
2712 | 2719 | * NEXT_MAJOR: remove this method. |
2713 | 2720 | * |
2721 | + * @param string $action |
|
2714 | 2722 | * @return mixed |
2715 | 2723 | * |
2716 | 2724 | * @deprecated Use configureTabMenu instead |
@@ -30,7 +30,7 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
33 | - * @return array |
|
33 | + * @return FieldDescriptionInterface[] |
|
34 | 34 | */ |
35 | 35 | public function getElements() |
36 | 36 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | private $file; |
32 | 32 | |
33 | 33 | /** |
34 | - * @param array|string $skeletonDirectory |
|
34 | + * @param string $skeletonDirectory |
|
35 | 35 | */ |
36 | 36 | public function __construct($skeletonDirectory) |
37 | 37 | { |
@@ -195,6 +195,10 @@ |
||
195 | 195 | return new FormMapper($contractor->reveal(), $formBuilder, $this->admin->reveal()); |
196 | 196 | } |
197 | 197 | |
198 | + /** |
|
199 | + * @param string $uniqid |
|
200 | + * @param Request $request |
|
201 | + */ |
|
198 | 202 | private function configureAdmin($uniqid = null, $request = null, $modelManager = null) |
199 | 203 | { |
200 | 204 | $this->admin->getUniqid()->willReturn($uniqid); |
@@ -3759,6 +3759,9 @@ discard block |
||
3759 | 3759 | ]; |
3760 | 3760 | } |
3761 | 3761 | |
3762 | + /** |
|
3763 | + * @param string $method |
|
3764 | + */ |
|
3762 | 3765 | private function assertLoggerLogsModelManagerException($subject, $method) |
3763 | 3766 | { |
3764 | 3767 | $exception = new ModelManagerException( |
@@ -3781,6 +3784,10 @@ discard block |
||
3781 | 3784 | ]); |
3782 | 3785 | } |
3783 | 3786 | |
3787 | + /** |
|
3788 | + * @param string $id |
|
3789 | + * @param string $domain |
|
3790 | + */ |
|
3784 | 3791 | private function expectTranslate($id, array $parameters = [], $domain = null, $locale = null) |
3785 | 3792 | { |
3786 | 3793 | $this->translator->expects($this->once()) |
@@ -8,6 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected $metadataClass = null; |
10 | 10 | |
11 | + /** |
|
12 | + * @param string $associationMapping |
|
13 | + */ |
|
11 | 14 | public function setParentAssociationMapping($associationMapping) |
12 | 15 | { |
13 | 16 | $this->parentAssociationMapping = $associationMapping; |
@@ -25,6 +25,9 @@ |
||
25 | 25 | */ |
26 | 26 | trait PolyfillControllerTrait |
27 | 27 | { |
28 | + /** |
|
29 | + * @param string $methodName |
|
30 | + */ |
|
28 | 31 | public function __call($methodName, $arguments) |
29 | 32 | { |
30 | 33 | $this->proxyToController($methodName, $arguments); |
@@ -70,6 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * {@inheritdoc} |
73 | + * @param string $code |
|
73 | 74 | */ |
74 | 75 | private function getAdmin($code, $list = false, $granted = false) |
75 | 76 | { |
@@ -102,6 +103,8 @@ discard block |
||
102 | 103 | |
103 | 104 | /** |
104 | 105 | * {@inheritdoc} |
106 | + * @param string $parentCode |
|
107 | + * @param string $childCode |
|
105 | 108 | */ |
106 | 109 | private function getChildAdmin($parentCode, $childCode, $list = false, $granted = false) |
107 | 110 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * @param string $code |
69 | 69 | * @param string $action |
70 | - * @param array $parameters |
|
70 | + * @param string[] $parameters |
|
71 | 71 | * @param int $absolute |
72 | 72 | * |
73 | 73 | * @return string |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * @param string $code |
84 | 84 | * @param string $action |
85 | - * @param mixed $object |
|
86 | - * @param array $parameters |
|
85 | + * @param string $object |
|
86 | + * @param string[] $parameters |
|
87 | 87 | * @param int $absolute |
88 | 88 | * |
89 | 89 | * @return string |
@@ -96,8 +96,8 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | - * @param $code |
|
100 | - * @param $action |
|
99 | + * @param string $code |
|
100 | + * @param string $action |
|
101 | 101 | * |
102 | 102 | * @return array |
103 | 103 | */ |