Skip to content

Commit

Permalink
simplify health state notes
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Dec 19, 2021
1 parent 0f91c6f commit 793f0a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/DynamicSearchBundle/State/DataProviderHealthState.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public function getComment(): string
return 'No data provider available';
}

return sprintf('Available Providers: %s', implode(', ', array_map(static function (DataProviderInterface $provider) {
return get_class($provider);
}, $dataProviders)));
return implode(', ', array_map(static function (DataProviderInterface $provider) {
return (new \ReflectionClass($provider))->getShortName();
}, $dataProviders));
}

}
6 changes: 3 additions & 3 deletions src/DynamicSearchBundle/State/IndexProviderHealthState.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public function getComment(): string
return 'No index provider available';
}

return sprintf('Available Providers: %s', implode(', ', array_map(static function (IndexProviderInterface $provider) {
return get_class($provider);
}, $indexProviders)));
return implode(', ', array_map(static function (IndexProviderInterface $provider) {
return (new \ReflectionClass($provider))->getShortName();
}, $indexProviders));
}

}

0 comments on commit 793f0a9

Please sign in to comment.