We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465183b commit a83c3e8Copy full SHA for a83c3e8
app/Nova/Metrics/Issues.php
@@ -33,7 +33,9 @@ public function calculate(NovaRequest $request): ValueResult
33
$process = Process::fromShellCommandline("$composer outdated $devFlag -f json", base_path(), ['COMPOSER_HOME' => $home]);
34
$process->run();
35
$value = $process->getOutput();
36
- return $this->result($value);
+ $data = json_decode($value, true);
37
+ $count = count($data['installed'] ?? []);
38
+ return $this->result($count);
39
40
41
}
0 commit comments