Skip to content

Commit 0dc7d01

Browse files
committed
Fix missing phpdocs in TimeDataCollector, rename new method name
1 parent e4414bf commit 0dc7d01

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/DebugBar/DataCollector/TimeDataCollector.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,25 @@
1818
*/
1919
class TimeDataCollector extends DataCollector implements Renderable
2020
{
21+
22+
/**
23+
* @var float
24+
*/
2125
protected $requestStartTime;
2226

27+
/**
28+
* @var float
29+
*/
2330
protected $requestEndTime;
2431

32+
/**
33+
* @var array
34+
*/
2535
protected $startedMeasures = array();
2636

37+
/**
38+
* @var array
39+
*/
2740
protected $measures = array();
2841

2942
/**
@@ -62,7 +75,7 @@ public function startMeasure($name, $label = null)
6275
* @param string $name
6376
* @return bool
6477
*/
65-
public function hasMeasure($name)
78+
public function hasStartedMeasure($name)
6679
{
6780
return isset($this->startedMeasures[$name]);
6881
}
@@ -75,7 +88,7 @@ public function hasMeasure($name)
7588
public function stopMeasure($name)
7689
{
7790
$end = microtime(true);
78-
if (!$this->hasMeasure($name)) {
91+
if (!$this->hasStartedMeasure($name)) {
7992
throw new DebugBarException("Failed stopping measure '$name' because it hasn't been started");
8093
}
8194
$this->addMeasure($this->startedMeasures[$name]['label'], $this->startedMeasures[$name]['start'], $end);

0 commit comments

Comments
 (0)