Skip to content

Commit 8b7c24f

Browse files
committed
removed dots at the end of @param and @return
1 parent 2d2a8d4 commit 8b7c24f

11 files changed

+49
-49
lines changed

Compiler/AnalyzeServiceReferencesPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private function processArguments(array $arguments)
126126
/**
127127
* Returns a service definition given the full name or an alias.
128128
*
129-
* @param string $id A full id or alias for a service definition.
129+
* @param string $id A full id or alias for a service definition
130130
*
131131
* @return Definition|null The definition related to the supplied id
132132
*/

ContainerBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public function getScopes()
343343
/**
344344
* Returns all Scope children.
345345
*
346-
* @return array An array of scope children.
346+
* @return array An array of scope children
347347
*/
348348
public function getScopeChildren()
349349
{
@@ -491,7 +491,7 @@ public function get($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INV
491491
* parameter, the value will still be 'bar' as defined in the ContainerBuilder
492492
* constructor.
493493
*
494-
* @param ContainerBuilder $container The ContainerBuilder instance to merge.
494+
* @param ContainerBuilder $container The ContainerBuilder instance to merge
495495
*
496496
* @throws BadMethodCallException When this ContainerBuilder is frozen
497497
*/
@@ -976,7 +976,7 @@ public function resolveServices($value)
976976
*
977977
* @param string $name The tag name
978978
*
979-
* @return array An array of tags with the tagged service as key, holding a list of attribute arrays.
979+
* @return array An array of tags with the tagged service as key, holding a list of attribute arrays
980980
*/
981981
public function findTaggedServiceIds($name)
982982
{
@@ -1021,7 +1021,7 @@ public function getExpressionLanguageProviders()
10211021
/**
10221022
* Returns the Service Conditionals.
10231023
*
1024-
* @param mixed $value An array of conditionals to return.
1024+
* @param mixed $value An array of conditionals to return
10251025
*
10261026
* @return array An array of Service conditionals
10271027
*/

DefinitionDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DefinitionDecorator extends Definition
2525
private $changes = array();
2626

2727
/**
28-
* @param string $parent The id of Definition instance to decorate.
28+
* @param string $parent The id of Definition instance to decorate
2929
*/
3030
public function __construct($parent)
3131
{

Dumper/PhpDumper.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -570,22 +570,22 @@ private function addService($id, $definition)
570570
if ($definition->isSynthetic()) {
571571
$return[] = '@throws RuntimeException always since this service is expected to be injected dynamically';
572572
} elseif ($class = $definition->getClass()) {
573-
$return[] = sprintf('@return %s A %s instance.', 0 === strpos($class, '%') ? 'object' : '\\'.ltrim($class, '\\'), ltrim($class, '\\'));
573+
$return[] = sprintf('@return %s A %s instance', 0 === strpos($class, '%') ? 'object' : '\\'.ltrim($class, '\\'), ltrim($class, '\\'));
574574
} elseif ($definition->getFactory()) {
575575
$factory = $definition->getFactory();
576576
if (is_string($factory)) {
577-
$return[] = sprintf('@return object An instance returned by %s().', $factory);
577+
$return[] = sprintf('@return object An instance returned by %s()', $factory);
578578
} elseif (is_array($factory) && (is_string($factory[0]) || $factory[0] instanceof Definition || $factory[0] instanceof Reference)) {
579579
if (is_string($factory[0]) || $factory[0] instanceof Reference) {
580-
$return[] = sprintf('@return object An instance returned by %s::%s().', (string) $factory[0], $factory[1]);
580+
$return[] = sprintf('@return object An instance returned by %s::%s()', (string) $factory[0], $factory[1]);
581581
} elseif ($factory[0] instanceof Definition) {
582-
$return[] = sprintf('@return object An instance returned by %s::%s().', $factory[0]->getClass(), $factory[1]);
582+
$return[] = sprintf('@return object An instance returned by %s::%s()', $factory[0]->getClass(), $factory[1]);
583583
}
584584
}
585585
} elseif ($definition->getFactoryClass(false)) {
586-
$return[] = sprintf('@return object An instance returned by %s::%s().', $definition->getFactoryClass(false), $definition->getFactoryMethod(false));
586+
$return[] = sprintf('@return object An instance returned by %s::%s()', $definition->getFactoryClass(false), $definition->getFactoryMethod(false));
587587
} elseif ($definition->getFactoryService(false)) {
588-
$return[] = sprintf('@return object An instance returned by %s::%s().', $definition->getFactoryService(false), $definition->getFactoryMethod(false));
588+
$return[] = sprintf('@return object An instance returned by %s::%s()', $definition->getFactoryService(false), $definition->getFactoryMethod(false));
589589
}
590590

591591
$scope = $definition->getScope();

Tests/Fixtures/php/services10.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function compile()
5252
* This service is shared.
5353
* This method always returns the same instance of the service.
5454
*
55-
* @return \stdClass A stdClass instance.
55+
* @return \stdClass A stdClass instance
5656
*/
5757
protected function getTestService()
5858
{

Tests/Fixtures/php/services12.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function compile()
5656
* This service is shared.
5757
* This method always returns the same instance of the service.
5858
*
59-
* @return \stdClass A stdClass instance.
59+
* @return \stdClass A stdClass instance
6060
*/
6161
protected function getTestService()
6262
{

Tests/Fixtures/php/services13.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function compile()
5050
* This service is shared.
5151
* This method always returns the same instance of the service.
5252
*
53-
* @return \stdClass A stdClass instance.
53+
* @return \stdClass A stdClass instance
5454
*/
5555
protected function getBarService()
5656
{

Tests/Fixtures/php/services19.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct()
3737
* This service is shared.
3838
* This method always returns the same instance of the service.
3939
*
40-
* @return \Bar\FooClass A Bar\FooClass instance.
40+
* @return \Bar\FooClass A Bar\FooClass instance
4141
*/
4242
protected function getServiceFromAnonymousFactoryService()
4343
{
@@ -50,7 +50,7 @@ protected function getServiceFromAnonymousFactoryService()
5050
* This service is shared.
5151
* This method always returns the same instance of the service.
5252
*
53-
* @return \Bar\FooClass A Bar\FooClass instance.
53+
* @return \Bar\FooClass A Bar\FooClass instance
5454
*/
5555
protected function getServiceWithMethodCallAndFactoryService()
5656
{

Tests/Fixtures/php/services20.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct()
3737
* This service is shared.
3838
* This method always returns the same instance of the service.
3939
*
40-
* @return \stdClass A stdClass instance.
40+
* @return \stdClass A stdClass instance
4141
*/
4242
protected function getDependsOnRequestService()
4343
{
@@ -54,7 +54,7 @@ protected function getDependsOnRequestService()
5454
* This service is shared.
5555
* This method always returns the same instance of the service.
5656
*
57-
* @return \Request A Request instance.
57+
* @return \Request A Request instance
5858
*/
5959
protected function getRequestService()
6060
{

Tests/Fixtures/php/services9.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct()
5757
* This service is shared.
5858
* This method always returns the same instance of the service.
5959
*
60-
* @return \Bar\FooClass A Bar\FooClass instance.
60+
* @return \Bar\FooClass A Bar\FooClass instance
6161
*/
6262
protected function getBarService()
6363
{
@@ -76,7 +76,7 @@ protected function getBarService()
7676
* This service is shared.
7777
* This method always returns the same instance of the service.
7878
*
79-
* @return \Baz A Baz instance.
79+
* @return \Baz A Baz instance
8080
*/
8181
protected function getBazService()
8282
{
@@ -93,7 +93,7 @@ protected function getBazService()
9393
* This service is shared.
9494
* This method always returns the same instance of the service.
9595
*
96-
* @return \stdClass A stdClass instance.
96+
* @return \stdClass A stdClass instance
9797
*/
9898
protected function getConfiguredServiceService()
9999
{
@@ -110,7 +110,7 @@ protected function getConfiguredServiceService()
110110
* This service is shared.
111111
* This method always returns the same instance of the service.
112112
*
113-
* @return \stdClass A stdClass instance.
113+
* @return \stdClass A stdClass instance
114114
*/
115115
protected function getDecoratedService()
116116
{
@@ -123,7 +123,7 @@ protected function getDecoratedService()
123123
* This service is shared.
124124
* This method always returns the same instance of the service.
125125
*
126-
* @return \stdClass A stdClass instance.
126+
* @return \stdClass A stdClass instance
127127
*/
128128
protected function getDecoratorServiceService()
129129
{
@@ -136,7 +136,7 @@ protected function getDecoratorServiceService()
136136
* This service is shared.
137137
* This method always returns the same instance of the service.
138138
*
139-
* @return \stdClass A stdClass instance.
139+
* @return \stdClass A stdClass instance
140140
*/
141141
protected function getDecoratorServiceWithNameService()
142142
{
@@ -149,7 +149,7 @@ protected function getDecoratorServiceWithNameService()
149149
* This service is shared.
150150
* This method always returns the same instance of the service.
151151
*
152-
* @return \Bar A Bar instance.
152+
* @return \Bar A Bar instance
153153
*/
154154
protected function getFactoryServiceService()
155155
{
@@ -162,7 +162,7 @@ protected function getFactoryServiceService()
162162
* This service is shared.
163163
* This method always returns the same instance of the service.
164164
*
165-
* @return \Bar\FooClass A Bar\FooClass instance.
165+
* @return \Bar\FooClass A Bar\FooClass instance
166166
*/
167167
protected function getFooService()
168168
{
@@ -186,7 +186,7 @@ protected function getFooService()
186186
* This service is shared.
187187
* This method always returns the same instance of the service.
188188
*
189-
* @return object A %baz_class% instance.
189+
* @return object A %baz_class% instance
190190
*/
191191
protected function getFoo_BazService()
192192
{
@@ -200,7 +200,7 @@ protected function getFoo_BazService()
200200
/**
201201
* Gets the 'foo_bar' service.
202202
*
203-
* @return object A %foo_class% instance.
203+
* @return object A %foo_class% instance
204204
*/
205205
protected function getFooBarService()
206206
{
@@ -215,7 +215,7 @@ protected function getFooBarService()
215215
* This service is shared.
216216
* This method always returns the same instance of the service.
217217
*
218-
* @return \Foo A Foo instance.
218+
* @return \Foo A Foo instance
219219
*/
220220
protected function getFooWithInlineService()
221221
{
@@ -232,7 +232,7 @@ protected function getFooWithInlineService()
232232
* This service is shared.
233233
* This method always returns the same instance of the service.
234234
*
235-
* @return \Bar\FooClass A Bar\FooClass instance.
235+
* @return \Bar\FooClass A Bar\FooClass instance
236236
*/
237237
protected function getMethodCall1Service()
238238
{
@@ -259,7 +259,7 @@ protected function getMethodCall1Service()
259259
* This service is shared.
260260
* This method always returns the same instance of the service.
261261
*
262-
* @return \FooBarBaz A FooBarBaz instance.
262+
* @return \FooBarBaz A FooBarBaz instance
263263
*/
264264
protected function getNewFactoryServiceService()
265265
{
@@ -289,7 +289,7 @@ protected function getRequestService()
289289
* This service is shared.
290290
* This method always returns the same instance of the service.
291291
*
292-
* @return \Bar\FooClass A Bar\FooClass instance.
292+
* @return \Bar\FooClass A Bar\FooClass instance
293293
*/
294294
protected function getServiceFromStaticMethodService()
295295
{
@@ -306,7 +306,7 @@ protected function getServiceFromStaticMethodService()
306306
* If you want to be able to request this service from the container directly,
307307
* make it public, otherwise you might end up with broken code.
308308
*
309-
* @return \ConfClass A ConfClass instance.
309+
* @return \ConfClass A ConfClass instance
310310
*/
311311
protected function getConfiguratorServiceService()
312312
{
@@ -327,7 +327,7 @@ protected function getConfiguratorServiceService()
327327
* If you want to be able to request this service from the container directly,
328328
* make it public, otherwise you might end up with broken code.
329329
*
330-
* @return \Bar A Bar instance.
330+
* @return \Bar A Bar instance
331331
*/
332332
protected function getInlinedService()
333333
{
@@ -349,7 +349,7 @@ protected function getInlinedService()
349349
* If you want to be able to request this service from the container directly,
350350
* make it public, otherwise you might end up with broken code.
351351
*
352-
* @return \FactoryClass A FactoryClass instance.
352+
* @return \FactoryClass A FactoryClass instance
353353
*/
354354
protected function getNewFactoryService()
355355
{

0 commit comments

Comments
 (0)