@@ -102,6 +102,9 @@ discard block |
||
102 | 102 | return true; |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param \stdClass $item |
|
107 | + */ |
|
105 | 108 | public function getAliasObj($item) |
106 | 109 | { |
107 | 110 | $relation = $this->alias->getRelation(); |
@@ -114,6 +117,9 @@ discard block |
||
114 | 117 | return $item; |
115 | 118 | } |
116 | 119 | |
120 | + /** |
|
121 | + * @param string $column |
|
122 | + */ |
|
117 | 123 | public function getColumnName($column) |
118 | 124 | { |
119 | 125 | $abbr = $this->alias->getAbbr() . '.'; |
@@ -26,6 +26,10 @@ discard block |
||
26 | 26 | */ |
27 | 27 | private $lockEnabled; |
28 | 28 | |
29 | + /** |
|
30 | + * @param integer $threshold |
|
31 | + * @param boolean $lockEnabled |
|
32 | + */ |
|
29 | 33 | public function __construct(ObjectManager $em, $threshold, $lockEnabled) |
30 | 34 | { |
31 | 35 | $this->setObjectManager($em); |
@@ -133,7 +137,7 @@ discard block |
||
133 | 137 | * |
134 | 138 | * @param User $userToExclude |
135 | 139 | * |
136 | - * @return EntityVersionLock[] |
|
140 | + * @return \Kunstmaan\AdminListBundle\Repository\EntityVersionLock[] |
|
137 | 141 | */ |
138 | 142 | protected function getEntityVersionLocksByLockableEntity(LockableEntity $entity, User $userToExclude = null) |
139 | 143 | { |
@@ -53,7 +53,6 @@ |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * @param EngineInterface|Environment $twig |
56 | - * @param ContainerInterface $container |
|
57 | 56 | * @param FormFactoryInterface $formFactory |
58 | 57 | */ |
59 | 58 | public function __construct( |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * |
16 | 16 | * @Route("/", name="kunstmaan_dashboard") |
17 | 17 | * |
18 | - * @return array |
|
18 | + * @return \Symfony\Component\HttpFoundation\Response |
|
19 | 19 | */ |
20 | 20 | public function indexAction(Request $request) |
21 | 21 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Return the url to edit the given $item |
78 | 78 | * |
79 | - * @param mixed $item |
|
79 | + * @param \PHPUnit\Framework\MockObject\MockObject $item |
|
80 | 80 | * |
81 | 81 | * @return array |
82 | 82 | */ |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * Configure the types of items you can add |
118 | 118 | * |
119 | - * @return array |
|
119 | + * @return string |
|
120 | 120 | */ |
121 | 121 | public function getAddUrlFor(array $params = []) |
122 | 122 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Configure if it's possible to delete the given $item |
128 | 128 | * |
129 | - * @param mixed $item |
|
129 | + * @param \PHPUnit\Framework\MockObject\MockObject $item |
|
130 | 130 | * |
131 | 131 | * @return bool |
132 | 132 | */ |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Get the delete url for the given $item |
140 | 140 | * |
141 | - * @param mixed $item |
|
141 | + * @param \PHPUnit\Framework\MockObject\MockObject $item |
|
142 | 142 | * |
143 | 143 | * @return array |
144 | 144 | */ |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | /** |
28 | 28 | * @param EngineInterface $twig |
29 | - * @param ContainerInterface|RequestStack $requestStack |
|
29 | + * @param \PHPUnit\Framework\MockObject\MockObject $requestStack |
|
30 | 30 | */ |
31 | 31 | public function __construct(Swift_Mailer $mailer, /*Environment*/ $twig, /*RequestStack*/ $requestStack) |
32 | 32 | { |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | * |
614 | 614 | * @param bool $niceNames |
615 | 615 | * |
616 | - * @return array |
|
616 | + * @return string[] |
|
617 | 617 | */ |
618 | 618 | private function getTypes($niceNames = false) |
619 | 619 | { |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | /** |
642 | 642 | * Get all available media types. |
643 | 643 | * |
644 | - * @return array |
|
644 | + * @return string[] |
|
645 | 645 | */ |
646 | 646 | private function getMediaTypes() |
647 | 647 | { |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | * Get all the entity fields for a specific type. |
661 | 661 | * |
662 | 662 | * @param $objectName |
663 | - * @param $prefix |
|
663 | + * @param string $prefix |
|
664 | 664 | * @param $name |
665 | 665 | * @param $type |
666 | 666 | * @param null $extra |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string|null $extendClass |
96 | 96 | * @param bool $withRepository |
97 | 97 | * |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | * |
100 | 100 | * @throws \RuntimeException |
101 | 101 | */ |
@@ -186,9 +186,9 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Generate the entity admin type. |
188 | 188 | * |
189 | - * @param $bundle |
|
190 | - * @param $entityName |
|
191 | - * @param $entityPrefix |
|
189 | + * @param BundleInterface $bundle |
|
190 | + * @param string $entityName |
|
191 | + * @param string $entityPrefix |
|
192 | 192 | * @param string $extendClass |
193 | 193 | */ |
194 | 194 | protected function generateEntityAdminType( |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * Returns a list of namespaces as array with a forward slash to split the namespace & bundle. |
141 | 141 | * |
142 | - * @return array |
|
142 | + * @return \Symfony\Component\Console\Question\iterable|null |
|
143 | 143 | */ |
144 | 144 | private function getNamespaceAutoComplete(Kernel $kernel) |
145 | 145 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @param $namespace |
158 | 158 | * |
159 | - * @return mixed |
|
159 | + * @return string |
|
160 | 160 | */ |
161 | 161 | private function fixNamespace($namespace) |
162 | 162 | { |