Commit 6f8fc939 authored by anon's avatar anon

by anon: Fixed some code quality issues

parent d5e99ddb
......@@ -167,7 +167,7 @@ class EntityMatcher extends ConfigurableMatcherBase {
'@bundle_grouping' => $this->configuration['group_by_bundle'] ? $this->t('Yes') : $this->t('No'),
]);
if(!empty($configuration['limit'])){
if (!empty($this->configuration['limit'])) {
$summery[] = $this->t('Limit: @limit', [
'@limit' => $this->configuration['limit'],
]);
......@@ -385,7 +385,7 @@ class EntityMatcher extends ConfigurableMatcherBase {
$query->condition($bundle_key, $this->configuration['bundles'], 'IN');
}
if($this->configuration['limit']){
if ($this->configuration['limit']) {
$query->range(0, $this->configuration['limit']);
}
$this->addQueryTags($query);
......
......@@ -20,20 +20,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/
class Media extends PluginBase implements SubstitutionInterface, ContainerFactoryPluginInterface {
/**
* Constructs a Media object.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
* @param string $plugin_id
* The plugin_id for the plugin instance.
* @param mixed $plugin_definition
* The plugin implementation definition.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
/**
* {@inheritdoc}
*/
......
......@@ -155,7 +155,7 @@ class LinkitAutocompleteTest extends LinkitKernelTestBase {
/**
* Tests autocompletion with results limit.
*/
public function testAutocompletionWithLimit(){
public function testAutocompletionWithLimit() {
/** @var \Drupal\linkit\MatcherInterface $plugin */
$plugin = $this->matcherManager->createInstance('entity:entity_test');
$configuration = $plugin->getConfiguration();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment