Clean up debug views.

This commit is contained in:
James Cole
2018-11-02 21:17:07 +01:00
parent 2283f3e786
commit 66f309f5ed
3 changed files with 10 additions and 32 deletions

View File

@@ -33,32 +33,6 @@ use Log;
*/
trait GetConfigurationData
{
/**
* All packages that are installed.
*
* @return array
*/
protected function collectPackages(): array // get configuration
{
$packages = [];
$file = \dirname(__DIR__, 4) . '/vendor/composer/installed.json';
if (file_exists($file)) {
// file exists!
$content = file_get_contents($file);
$json = json_decode($content, true);
foreach ($json as $package) {
$packages[]
= [
'name' => $package['name'],
'version' => $package['version'],
];
}
}
return $packages;
}
/**
* Some common combinations.
*