Skip to content

Commit fe30c87

Browse files
GrahamCampbellfabpot
authored andcommitted
[2.3] CS And DocBlock Fixes
1 parent 86d631b commit fe30c87

5 files changed

+15
-10
lines changed

ContainerAwareEventDispatcher.php

+9-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* Lazily loads listeners and subscribers from the dependency injection
18-
* container
18+
* container.
1919
*
2020
* @author Fabien Potencier <fabien@symfony.com>
2121
* @author Bernhard Schussek <bschussek@gmail.com>
@@ -24,19 +24,22 @@
2424
class ContainerAwareEventDispatcher extends EventDispatcher
2525
{
2626
/**
27-
* The container from where services are loaded
27+
* The container from where services are loaded.
28+
*
2829
* @var ContainerInterface
2930
*/
3031
private $container;
3132

3233
/**
33-
* The service IDs of the event listeners and subscribers
34+
* The service IDs of the event listeners and subscribers.
35+
*
3436
* @var array
3537
*/
3638
private $listenerIds = array();
3739

3840
/**
39-
* The services registered as listeners
41+
* The services registered as listeners.
42+
*
4043
* @var array
4144
*/
4245
private $listeners = array();
@@ -52,7 +55,7 @@ public function __construct(ContainerInterface $container)
5255
}
5356

5457
/**
55-
* Adds a service as event listener
58+
* Adds a service as event listener.
5659
*
5760
* @param string $eventName Event for which the listener is added
5861
* @param array $callback The service ID of the listener service & the method
@@ -132,7 +135,7 @@ public function getListeners($eventName = null)
132135
}
133136

134137
/**
135-
* Adds a service as event subscriber
138+
* Adds a service as event subscriber.
136139
*
137140
* @param string $serviceId The service ID of the subscriber service
138141
* @param string $class The service's class name (which must implement EventSubscriberInterface)

Event.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Event
4848
* Returns whether further event listeners should be triggered.
4949
*
5050
* @see Event::stopPropagation
51+
*
5152
* @return bool Whether propagation was already stopped for this event.
5253
*
5354
* @api
@@ -72,7 +73,7 @@ public function stopPropagation()
7273
}
7374

7475
/**
75-
* Stores the EventDispatcher that dispatches this Event
76+
* Stores the EventDispatcher that dispatches this Event.
7677
*
7778
* @param EventDispatcherInterface $dispatcher
7879
*
@@ -84,7 +85,7 @@ public function setDispatcher(EventDispatcherInterface $dispatcher)
8485
}
8586

8687
/**
87-
* Returns the EventDispatcher that dispatches this Event
88+
* Returns the EventDispatcher that dispatches this Event.
8889
*
8990
* @return EventDispatcherInterface
9091
*

GenericEvent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function offsetExists($key)
175175
}
176176

177177
/**
178-
* IteratorAggregate for iterating over the object like an array
178+
* IteratorAggregate for iterating over the object like an array.
179179
*
180180
* @return \ArrayIterator
181181
*/

ImmutableEventDispatcher.php

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class ImmutableEventDispatcher implements EventDispatcherInterface
2020
{
2121
/**
2222
* The proxied dispatcher.
23+
*
2324
* @var EventDispatcherInterface
2425
*/
2526
private $dispatcher;

Tests/GenericEventTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testConstruct()
5353
}
5454

5555
/**
56-
* Tests Event->getArgs()
56+
* Tests Event->getArgs().
5757
*/
5858
public function testGetArguments()
5959
{

0 commit comments

Comments
 (0)