Skip to content

Commit 11c0c08

Browse files
committed
[CS] Remove @inheritdoc PHPDoc
1 parent a0449a7 commit 11c0c08

3 files changed

+0
-72
lines changed

Debug/TraceableEventDispatcher.php

-24
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,16 @@ public function __construct(EventDispatcherInterface $dispatcher, Stopwatch $sto
5151
$this->requestStack = $requestStack;
5252
}
5353

54-
/**
55-
* {@inheritdoc}
56-
*/
5754
public function addListener(string $eventName, callable|array $listener, int $priority = 0)
5855
{
5956
$this->dispatcher->addListener($eventName, $listener, $priority);
6057
}
6158

62-
/**
63-
* {@inheritdoc}
64-
*/
6559
public function addSubscriber(EventSubscriberInterface $subscriber)
6660
{
6761
$this->dispatcher->addSubscriber($subscriber);
6862
}
6963

70-
/**
71-
* {@inheritdoc}
72-
*/
7364
public function removeListener(string $eventName, callable|array $listener)
7465
{
7566
if (isset($this->wrappedListeners[$eventName])) {
@@ -85,25 +76,16 @@ public function removeListener(string $eventName, callable|array $listener)
8576
return $this->dispatcher->removeListener($eventName, $listener);
8677
}
8778

88-
/**
89-
* {@inheritdoc}
90-
*/
9179
public function removeSubscriber(EventSubscriberInterface $subscriber)
9280
{
9381
return $this->dispatcher->removeSubscriber($subscriber);
9482
}
9583

96-
/**
97-
* {@inheritdoc}
98-
*/
9984
public function getListeners(string $eventName = null): array
10085
{
10186
return $this->dispatcher->getListeners($eventName);
10287
}
10388

104-
/**
105-
* {@inheritdoc}
106-
*/
10789
public function getListenerPriority(string $eventName, callable|array $listener): ?int
10890
{
10991
// we might have wrapped listeners for the event (if called while dispatching)
@@ -119,17 +101,11 @@ public function getListenerPriority(string $eventName, callable|array $listener)
119101
return $this->dispatcher->getListenerPriority($eventName, $listener);
120102
}
121103

122-
/**
123-
* {@inheritdoc}
124-
*/
125104
public function hasListeners(string $eventName = null): bool
126105
{
127106
return $this->dispatcher->hasListeners($eventName);
128107
}
129108

130-
/**
131-
* {@inheritdoc}
132-
*/
133109
public function dispatch(object $event, string $eventName = null): object
134110
{
135111
$eventName ??= \get_class($event);

EventDispatcher.php

-24
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function __construct()
4242
}
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function dispatch(object $event, string $eventName = null): object
4946
{
5047
$eventName ??= \get_class($event);
@@ -62,9 +59,6 @@ public function dispatch(object $event, string $eventName = null): object
6259
return $event;
6360
}
6461

65-
/**
66-
* {@inheritdoc}
67-
*/
6862
public function getListeners(string $eventName = null): array
6963
{
7064
if (null !== $eventName) {
@@ -88,9 +82,6 @@ public function getListeners(string $eventName = null): array
8882
return array_filter($this->sorted);
8983
}
9084

91-
/**
92-
* {@inheritdoc}
93-
*/
9485
public function getListenerPriority(string $eventName, callable|array $listener): ?int
9586
{
9687
if (empty($this->listeners[$eventName])) {
@@ -117,9 +108,6 @@ public function getListenerPriority(string $eventName, callable|array $listener)
117108
return null;
118109
}
119110

120-
/**
121-
* {@inheritdoc}
122-
*/
123111
public function hasListeners(string $eventName = null): bool
124112
{
125113
if (null !== $eventName) {
@@ -135,18 +123,12 @@ public function hasListeners(string $eventName = null): bool
135123
return false;
136124
}
137125

138-
/**
139-
* {@inheritdoc}
140-
*/
141126
public function addListener(string $eventName, callable|array $listener, int $priority = 0)
142127
{
143128
$this->listeners[$eventName][$priority][] = $listener;
144129
unset($this->sorted[$eventName], $this->optimized[$eventName]);
145130
}
146131

147-
/**
148-
* {@inheritdoc}
149-
*/
150132
public function removeListener(string $eventName, callable|array $listener)
151133
{
152134
if (empty($this->listeners[$eventName])) {
@@ -175,9 +157,6 @@ public function removeListener(string $eventName, callable|array $listener)
175157
}
176158
}
177159

178-
/**
179-
* {@inheritdoc}
180-
*/
181160
public function addSubscriber(EventSubscriberInterface $subscriber)
182161
{
183162
foreach ($subscriber->getSubscribedEvents() as $eventName => $params) {
@@ -193,9 +172,6 @@ public function addSubscriber(EventSubscriberInterface $subscriber)
193172
}
194173
}
195174

196-
/**
197-
* {@inheritdoc}
198-
*/
199175
public function removeSubscriber(EventSubscriberInterface $subscriber)
200176
{
201177
foreach ($subscriber->getSubscribedEvents() as $eventName => $params) {

ImmutableEventDispatcher.php

-24
Original file line numberDiff line numberDiff line change
@@ -25,65 +25,41 @@ public function __construct(EventDispatcherInterface $dispatcher)
2525
$this->dispatcher = $dispatcher;
2626
}
2727

28-
/**
29-
* {@inheritdoc}
30-
*/
3128
public function dispatch(object $event, string $eventName = null): object
3229
{
3330
return $this->dispatcher->dispatch($event, $eventName);
3431
}
3532

36-
/**
37-
* {@inheritdoc}
38-
*/
3933
public function addListener(string $eventName, callable|array $listener, int $priority = 0)
4034
{
4135
throw new \BadMethodCallException('Unmodifiable event dispatchers must not be modified.');
4236
}
4337

44-
/**
45-
* {@inheritdoc}
46-
*/
4738
public function addSubscriber(EventSubscriberInterface $subscriber)
4839
{
4940
throw new \BadMethodCallException('Unmodifiable event dispatchers must not be modified.');
5041
}
5142

52-
/**
53-
* {@inheritdoc}
54-
*/
5543
public function removeListener(string $eventName, callable|array $listener)
5644
{
5745
throw new \BadMethodCallException('Unmodifiable event dispatchers must not be modified.');
5846
}
5947

60-
/**
61-
* {@inheritdoc}
62-
*/
6348
public function removeSubscriber(EventSubscriberInterface $subscriber)
6449
{
6550
throw new \BadMethodCallException('Unmodifiable event dispatchers must not be modified.');
6651
}
6752

68-
/**
69-
* {@inheritdoc}
70-
*/
7153
public function getListeners(string $eventName = null): array
7254
{
7355
return $this->dispatcher->getListeners($eventName);
7456
}
7557

76-
/**
77-
* {@inheritdoc}
78-
*/
7958
public function getListenerPriority(string $eventName, callable|array $listener): ?int
8059
{
8160
return $this->dispatcher->getListenerPriority($eventName, $listener);
8261
}
8362

84-
/**
85-
* {@inheritdoc}
86-
*/
8763
public function hasListeners(string $eventName = null): bool
8864
{
8965
return $this->dispatcher->hasListeners($eventName);

0 commit comments

Comments
 (0)