Skip to content

Commit a15e2b4

Browse files
Cleanup more @return annotations
1 parent cb7444d commit a15e2b4

File tree

6 files changed

+10
-21
lines changed

6 files changed

+10
-21
lines changed

DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected function assertValidMappingConfiguration(array $mappingConfig, string
259259
/**
260260
* Detects what metadata driver to use for the supplied directory.
261261
*
262-
* @return string|null A metadata driver short name, if one can be detected
262+
* @return string|null
263263
*/
264264
protected function detectMetadataDriver(string $dir, ContainerBuilder $container)
265265
{
@@ -379,7 +379,7 @@ protected function loadCacheDriver(string $cacheName, string $objectManagerName,
379379
*
380380
* The manager called $autoMappedManager will map all bundles that are not mapped by other managers.
381381
*
382-
* @return array The modified version of $managerConfigs
382+
* @return array
383383
*/
384384
protected function fixManagersAutoMappings(array $managerConfigs, array $bundles)
385385
{

DependencyInjection/CompilerPass/RegisterMappingsPass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function process(ContainerBuilder $container)
165165
* Get the service name of the metadata chain driver that the mappings
166166
* should be registered with.
167167
*
168-
* @return string The name of the chain driver service
168+
* @return string
169169
*
170170
* @throws InvalidArgumentException if non of the managerParameters has a
171171
* non-empty value
@@ -181,7 +181,7 @@ protected function getChainDriverServiceName(ContainerBuilder $container)
181181
* @param ContainerBuilder $container Passed on in case an extending class
182182
* needs access to the container
183183
*
184-
* @return Definition|Reference the metadata driver to add to all chain drivers
184+
* @return Definition|Reference
185185
*/
186186
protected function getDriver(ContainerBuilder $container)
187187
{
@@ -228,7 +228,7 @@ private function getManagerName(ContainerBuilder $container): string
228228
* This default implementation checks if the class has the enabledParameter
229229
* configured and if so if that parameter is present in the container.
230230
*
231-
* @return bool whether this compiler pass really should register the mappings
231+
* @return bool
232232
*/
233233
protected function enabled(ContainerBuilder $container)
234234
{

Form/ChoiceList/EntityLoaderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ interface EntityLoaderInterface
2121
/**
2222
* Returns an array of entities that are valid choices in the corresponding choice list.
2323
*
24-
* @return array The entities
24+
* @return array
2525
*/
2626
public function getEntities();
2727

2828
/**
2929
* Returns an array of entities matching the given identifiers.
3030
*
31-
* @return array The entities
31+
* @return array
3232
*/
3333
public function getEntitiesByIds(string $identifier, array $values);
3434
}

Form/ChoiceList/IdReader.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ public function __construct(ObjectManager $om, ClassMetadata $classMetadata)
5959

6060
/**
6161
* Returns whether the class has a single-column ID.
62-
*
63-
* @return bool returns `true` if the class has a single-column ID and
64-
* `false` otherwise
6562
*/
6663
public function isSingleId(): bool
6764
{
@@ -70,9 +67,6 @@ public function isSingleId(): bool
7067

7168
/**
7269
* Returns whether the class has a single-column integer ID.
73-
*
74-
* @return bool returns `true` if the class has a single-column integer ID
75-
* and `false` otherwise
7670
*/
7771
public function isIntId(): bool
7872
{
@@ -84,7 +78,7 @@ public function isIntId(): bool
8478
*
8579
* This method assumes that the object has a single-column ID.
8680
*
87-
* @return string The ID value
81+
* @return string
8882
*/
8983
public function getIdValue(object $object = null)
9084
{
@@ -111,8 +105,6 @@ public function getIdValue(object $object = null)
111105
* Returns the name of the ID field.
112106
*
113107
* This method assumes that the object has a single-column ID.
114-
*
115-
* @return string The name of the ID field
116108
*/
117109
public function getIdField(): string
118110
{

Form/DataTransformer/CollectionToArrayTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CollectionToArrayTransformer implements DataTransformerInterface
2424
/**
2525
* Transforms a collection into an array.
2626
*
27-
* @return mixed An array of entities
27+
* @return mixed
2828
*
2929
* @throws TransformationFailedException
3030
*/
@@ -52,7 +52,7 @@ public function transform($collection)
5252
*
5353
* @param mixed $array An array of entities
5454
*
55-
* @return Collection A collection of entities
55+
* @return Collection
5656
*/
5757
public function reverseTransform($array)
5858
{

Form/Type/DoctrineType.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ public static function createChoiceName(object $choice, $key, string $value): st
8686
* @param object $queryBuilder A query builder, type declaration is not present here as there
8787
* is no common base class for the different implementations
8888
*
89-
* @return array|null Array with important QueryBuilder parts or null if
90-
* they can't be determined
91-
*
9289
* @internal This method is public to be usable as callback. It should not
9390
* be used in user code.
9491
*/

0 commit comments

Comments
 (0)