Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 725bad3

Browse filesBrowse files
committed
[Stopwatch] Remove redundant information in docblocks
1 parent 2a62dbb commit 725bad3
Copy full SHA for 725bad3

File tree

2 files changed

+1
-31
lines changed
Filter options

2 files changed

+1
-31
lines changed

‎src/Symfony/Component/Stopwatch/Section.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Stopwatch/Section.php
-15Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public function __construct(float $origin = null, bool $morePrecision = false)
5656
/**
5757
* Returns the child section.
5858
*
59-
* @param string $id The child section identifier
60-
*
6159
* @return self|null The child section or null when none found
6260
*/
6361
public function get(?string $id)
@@ -96,8 +94,6 @@ public function getId()
9694
/**
9795
* Sets the session identifier.
9896
*
99-
* @param string $id The session identifier
100-
*
10197
* @return $this
10298
*/
10399
public function setId(string $id)
@@ -110,9 +106,6 @@ public function setId(string $id)
110106
/**
111107
* Starts an event.
112108
*
113-
* @param string $name The event name
114-
* @param string $category The event category
115-
*
116109
* @return StopwatchEvent The event
117110
*/
118111
public function startEvent(string $name, ?string $category)
@@ -127,8 +120,6 @@ public function startEvent(string $name, ?string $category)
127120
/**
128121
* Checks if the event was started.
129122
*
130-
* @param string $name The event name
131-
*
132123
* @return bool
133124
*/
134125
public function isEventStarted(string $name)
@@ -139,8 +130,6 @@ public function isEventStarted(string $name)
139130
/**
140131
* Stops an event.
141132
*
142-
* @param string $name The event name
143-
*
144133
* @return StopwatchEvent The event
145134
*
146135
* @throws \LogicException When the event has not been started
@@ -157,8 +146,6 @@ public function stopEvent(string $name)
157146
/**
158147
* Stops then restarts an event.
159148
*
160-
* @param string $name The event name
161-
*
162149
* @return StopwatchEvent The event
163150
*
164151
* @throws \LogicException When the event has not been started
@@ -171,8 +158,6 @@ public function lap(string $name)
171158
/**
172159
* Returns a specific event by name.
173160
*
174-
* @param string $name The event name
175-
*
176161
* @return StopwatchEvent The event
177162
*
178163
* @throws \LogicException When the event is not known

‎src/Symfony/Component/Stopwatch/Stopwatch.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Stopwatch/Stopwatch.php
+1-16Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ public function openSection(string $id = null)
7979
*
8080
* @see getSectionEvents()
8181
*
82-
* @param string $id The identifier of the section
83-
*
8482
* @throws \LogicException When there's no started section to be stopped
8583
*/
86-
public function stopSection(string $id)
84+
public function stopSection(?string $id)
8785
{
8886
$this->stop('__section__');
8987

@@ -98,9 +96,6 @@ public function stopSection(string $id)
9896
/**
9997
* Starts an event.
10098
*
101-
* @param string $name The event name
102-
* @param string|null $category The event category
103-
*
10499
* @return StopwatchEvent
105100
*/
106101
public function start(string $name, string $category = null)
@@ -111,8 +106,6 @@ public function start(string $name, string $category = null)
111106
/**
112107
* Checks if the event was started.
113108
*
114-
* @param string $name The event name
115-
*
116109
* @return bool
117110
*/
118111
public function isStarted(string $name)
@@ -123,8 +116,6 @@ public function isStarted(string $name)
123116
/**
124117
* Stops an event.
125118
*
126-
* @param string $name The event name
127-
*
128119
* @return StopwatchEvent
129120
*/
130121
public function stop(string $name)
@@ -135,8 +126,6 @@ public function stop(string $name)
135126
/**
136127
* Stops then restarts an event.
137128
*
138-
* @param string $name The event name
139-
*
140129
* @return StopwatchEvent
141130
*/
142131
public function lap(string $name)
@@ -147,8 +136,6 @@ public function lap(string $name)
147136
/**
148137
* Returns a specific event by name.
149138
*
150-
* @param string $name The event name
151-
*
152139
* @return StopwatchEvent
153140
*/
154141
public function getEvent(string $name)
@@ -159,8 +146,6 @@ public function getEvent(string $name)
159146
/**
160147
* Gets all events for a given section.
161148
*
162-
* @param string $id A section identifier
163-
*
164149
* @return StopwatchEvent[]
165150
*/
166151
public function getSectionEvents(string $id)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.