Skip to content

Commit 74bf94e

Browse files
Cleanup @return annotations
1 parent 1732d62 commit 74bf94e

File tree

4 files changed

+11
-20
lines changed

4 files changed

+11
-20
lines changed

Compiler/Compiler.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,21 @@ public function __construct()
3232
}
3333

3434
/**
35-
* Returns the PassConfig.
36-
*
37-
* @return PassConfig The PassConfig instance
35+
* @return PassConfig
3836
*/
3937
public function getPassConfig()
4038
{
4139
return $this->passConfig;
4240
}
4341

4442
/**
45-
* Returns the ServiceReferenceGraph.
46-
*
47-
* @return ServiceReferenceGraph The ServiceReferenceGraph instance
43+
* @return ServiceReferenceGraph
4844
*/
4945
public function getServiceReferenceGraph()
5046
{
5147
return $this->serviceReferenceGraph;
5248
}
5349

54-
/**
55-
* Adds a pass to the PassConfig.
56-
*/
5750
public function addPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
5851
{
5952
$this->passConfig->addPass($pass, $type, $priority);
@@ -72,9 +65,7 @@ public function log(CompilerPassInterface $pass, string $message)
7265
}
7366

7467
/**
75-
* Returns the log.
76-
*
77-
* @return array Log array
68+
* @return array
7869
*/
7970
public function getLog()
8071
{

Compiler/ServiceReferenceGraphNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function addOutEdge(ServiceReferenceGraphEdge $edge)
5151
/**
5252
* Checks if the value of this node is an Alias.
5353
*
54-
* @return bool True if the value is an Alias instance
54+
* @return bool
5555
*/
5656
public function isAlias()
5757
{

Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function isCompiled()
9797
/**
9898
* Gets the service container parameter bag.
9999
*
100-
* @return ParameterBagInterface A ParameterBagInterface instance
100+
* @return ParameterBagInterface
101101
*/
102102
public function getParameterBag()
103103
{

ContainerBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function registerExtension(ExtensionInterface $extension)
204204
/**
205205
* Returns an extension by alias or namespace.
206206
*
207-
* @return ExtensionInterface An extension instance
207+
* @return ExtensionInterface
208208
*
209209
* @throws LogicException if the extension is not registered
210210
*/
@@ -862,7 +862,7 @@ public function getAliases()
862862
}
863863

864864
/**
865-
* @return Alias An Alias instance
865+
* @return Alias
866866
*
867867
* @throws InvalidArgumentException if the alias does not exist
868868
*/
@@ -881,7 +881,7 @@ public function getAlias(string $id)
881881
* This methods allows for simple registration of service definition
882882
* with a fluid interface.
883883
*
884-
* @return Definition A Definition instance
884+
* @return Definition
885885
*/
886886
public function register(string $id, string $class = null)
887887
{
@@ -927,7 +927,7 @@ public function setDefinitions(array $definitions)
927927
/**
928928
* Gets all service definitions.
929929
*
930-
* @return Definition[] An array of Definition instances
930+
* @return Definition[]
931931
*/
932932
public function getDefinitions()
933933
{
@@ -969,7 +969,7 @@ public function hasDefinition(string $id)
969969
/**
970970
* Gets a service definition.
971971
*
972-
* @return Definition A Definition instance
972+
* @return Definition
973973
*
974974
* @throws ServiceNotFoundException if the service definition does not exist
975975
*/
@@ -987,7 +987,7 @@ public function getDefinition(string $id)
987987
*
988988
* The method "unaliases" recursively to return a Definition instance.
989989
*
990-
* @return Definition A Definition instance
990+
* @return Definition
991991
*
992992
* @throws ServiceNotFoundException if the service definition does not exist
993993
*/

0 commit comments

Comments
 (0)