From 33a3ff146df97bac61b034feabc5945a29647a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4dlich?= Date: Fri, 5 Jul 2019 09:25:50 +0200 Subject: [PATCH] [Stopwatch] Remove redundant information in docblocks --- src/Symfony/Component/Stopwatch/Section.php | 15 --------------- src/Symfony/Component/Stopwatch/Stopwatch.php | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/src/Symfony/Component/Stopwatch/Section.php b/src/Symfony/Component/Stopwatch/Section.php index 4babb3e8a88db..f297a548fce60 100644 --- a/src/Symfony/Component/Stopwatch/Section.php +++ b/src/Symfony/Component/Stopwatch/Section.php @@ -56,8 +56,6 @@ public function __construct(float $origin = null, bool $morePrecision = false) /** * Returns the child section. * - * @param string $id The child section identifier - * * @return self|null The child section or null when none found */ public function get(?string $id) @@ -96,8 +94,6 @@ public function getId() /** * Sets the session identifier. * - * @param string $id The session identifier - * * @return $this */ public function setId(string $id) @@ -110,9 +106,6 @@ public function setId(string $id) /** * Starts an event. * - * @param string $name The event name - * @param string $category The event category - * * @return StopwatchEvent The event */ public function startEvent(string $name, ?string $category) @@ -127,8 +120,6 @@ public function startEvent(string $name, ?string $category) /** * Checks if the event was started. * - * @param string $name The event name - * * @return bool */ public function isEventStarted(string $name) @@ -139,8 +130,6 @@ public function isEventStarted(string $name) /** * Stops an event. * - * @param string $name The event name - * * @return StopwatchEvent The event * * @throws \LogicException When the event has not been started @@ -157,8 +146,6 @@ public function stopEvent(string $name) /** * Stops then restarts an event. * - * @param string $name The event name - * * @return StopwatchEvent The event * * @throws \LogicException When the event has not been started @@ -171,8 +158,6 @@ public function lap(string $name) /** * Returns a specific event by name. * - * @param string $name The event name - * * @return StopwatchEvent The event * * @throws \LogicException When the event is not known diff --git a/src/Symfony/Component/Stopwatch/Stopwatch.php b/src/Symfony/Component/Stopwatch/Stopwatch.php index 2b8d28b6b5524..9a3fe56d86e78 100644 --- a/src/Symfony/Component/Stopwatch/Stopwatch.php +++ b/src/Symfony/Component/Stopwatch/Stopwatch.php @@ -79,8 +79,6 @@ public function openSection(string $id = null) * * @see getSectionEvents() * - * @param string $id The identifier of the section - * * @throws \LogicException When there's no started section to be stopped */ public function stopSection(string $id) @@ -98,9 +96,6 @@ public function stopSection(string $id) /** * Starts an event. * - * @param string $name The event name - * @param string|null $category The event category - * * @return StopwatchEvent */ public function start(string $name, string $category = null) @@ -111,8 +106,6 @@ public function start(string $name, string $category = null) /** * Checks if the event was started. * - * @param string $name The event name - * * @return bool */ public function isStarted(string $name) @@ -123,8 +116,6 @@ public function isStarted(string $name) /** * Stops an event. * - * @param string $name The event name - * * @return StopwatchEvent */ public function stop(string $name) @@ -135,8 +126,6 @@ public function stop(string $name) /** * Stops then restarts an event. * - * @param string $name The event name - * * @return StopwatchEvent */ public function lap(string $name) @@ -147,8 +136,6 @@ public function lap(string $name) /** * Returns a specific event by name. * - * @param string $name The event name - * * @return StopwatchEvent */ public function getEvent(string $name) @@ -159,8 +146,6 @@ public function getEvent(string $name) /** * Gets all events for a given section. * - * @param string $id A section identifier - * * @return StopwatchEvent[] */ public function getSectionEvents(string $id)