Skip to content

Commit

Permalink
fixed number format in /profiler/method-used-apps.json
Browse files Browse the repository at this point in the history
  • Loading branch information
shagtv committed Jan 29, 2020
1 parent 240c7b0 commit 675429f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

There are next changes:

## 1.2.16

There are next changes:

- fixed /profiler/method-used-apps.json

## 1.2.15

There are next changes:
Expand Down
5 changes: 3 additions & 2 deletions src/Badoo/LiveProfilerUI/Pages/AjaxPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function getMethodUsedApps(string $method_name) : array
$method_name = ltrim($method_name, '\\');
try {
$methods = $this->Method->findByName($method_name, true);
if (!$methods) {
if (empty($methods)) {
return [];
}

Expand Down Expand Up @@ -207,13 +207,14 @@ public function getMethodUsedApps(string $method_name) : array
$result = [];
$result['app'] = $snapshots[$Row->getSnapshotId()]['app'];
$result['label'] = $snapshots[$Row->getSnapshotId()]['label'];
$result['date'] = $snapshots[$Row->getSnapshotId()]['date'];

$uniq_key = $result['app'] . '_' . $result['label'];
if (!empty($results[$uniq_key])) {
continue;
}

$values = $Row->getFormattedValues();
$values = $Row->getValues();
foreach ($fields as $field) {
$result['fields'][$field] = $values[$field];
}
Expand Down

0 comments on commit 675429f

Please sign in to comment.