|
|
@ -83,10 +83,11 @@ class ArrayRepository implements RepositoryInterface
|
|
|
|
|
|
|
|
|
|
|
|
$matches = array();
|
|
|
|
$matches = array();
|
|
|
|
foreach ($this->getPackages() as $package) {
|
|
|
|
foreach ($this->getPackages() as $package) {
|
|
|
|
|
|
|
|
$name = $package->getName();
|
|
|
|
// TODO implement SEARCH_FULLTEXT handling with keywords/description matching
|
|
|
|
// TODO implement SEARCH_FULLTEXT handling with keywords/description matching
|
|
|
|
if (preg_match($regex, $package->getName())) {
|
|
|
|
if (!isset($matches[$name]) && preg_match($regex, $name)) {
|
|
|
|
$matches[] = array(
|
|
|
|
$matches[$name] = array(
|
|
|
|
'name' => $package->getName(),
|
|
|
|
'name' => $package->getPrettyName(),
|
|
|
|
'description' => $package->getDescription(),
|
|
|
|
'description' => $package->getDescription(),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|