Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
41 $startTime = $this->kernel->getStartTime(); | 41 $startTime = $this->kernel->getStartTime(); |
42 } else { | 42 } else { |
43 $startTime = $request->server->get('REQUEST_TIME_FLOAT'); | 43 $startTime = $request->server->get('REQUEST_TIME_FLOAT'); |
44 } | 44 } |
45 | 45 |
46 $this->data = array( | 46 $this->data = [ |
47 'token' => $response->headers->get('X-Debug-Token'), | 47 'token' => $response->headers->get('X-Debug-Token'), |
48 'start_time' => $startTime * 1000, | 48 'start_time' => $startTime * 1000, |
49 'events' => array(), | 49 'events' => [], |
50 ); | 50 ]; |
51 } | 51 } |
52 | 52 |
53 /** | 53 /** |
54 * {@inheritdoc} | 54 * {@inheritdoc} |
55 */ | 55 */ |
56 public function reset() | 56 public function reset() |
57 { | 57 { |
58 $this->data = array(); | 58 $this->data = []; |
59 | 59 |
60 if (null !== $this->stopwatch) { | 60 if (null !== $this->stopwatch) { |
61 $this->stopwatch->reset(); | 61 $this->stopwatch->reset(); |
62 } | 62 } |
63 } | 63 } |