Skip to content

Commit

Permalink
[Stopwatch] fix some phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Jul 29, 2019
1 parent 2113e67 commit 66dc906
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\Stopwatch\StopwatchEvent;

/**
* TimeDataCollector.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class TimeDataCollector extends DataCollector implements LateDataCollectorInterface
Expand Down Expand Up @@ -77,7 +76,7 @@ public function lateCollect()
/**
* Sets the request events.
*
* @param array $events The request events
* @param StopwatchEvent[] $events The request events
*/
public function setEvents(array $events)
{
Expand All @@ -91,7 +90,7 @@ public function setEvents(array $events)
/**
* Gets the request events.
*
* @return array The request events
* @return StopwatchEvent[] The request events
*/
public function getEvents()
{
Expand Down
6 changes: 4 additions & 2 deletions src/Symfony/Component/Stopwatch/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public function get($id)
return $child;
}
}

return null;
}

/**
Expand Down Expand Up @@ -110,8 +112,8 @@ public function setId($id)
/**
* Starts an event.
*
* @param string $name The event name
* @param string $category The event category
* @param string $name The event name
* @param string|null $category The event category
*
* @return StopwatchEvent The event
*/
Expand Down

0 comments on commit 66dc906

Please sign in to comment.