Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Jan 11, 2024
1 parent 89014c8 commit 46be96d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions module/VuFind/src/VuFindTest/Feature/SearchSortTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
namespace VuFindTest\Feature;

use Behat\Mink\Element\Element;
use Behat\Mink\Element\NodeElement;

/**
* Trait for working with sorting of search results.
Expand Down Expand Up @@ -107,8 +106,8 @@ protected function sortResults(Element $page, string $value): void
/**
* Assert the selected sort option.
*
* @param Element $page Current page
* @param string $active Selected sort option
* @param Element $page Current page
* @param string $active Selected sort option
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

use Behat\Mink\Element\Element;

use function count;

/**
* Test for sorting of search results.
*
Expand Down Expand Up @@ -172,8 +170,8 @@ protected function setUpSearch(string $sortParam, string $default): Element
/**
* Assert the contents and selected element of the sort control.
*
* @param Element $page Current page
* @param string $active Expected active option
* @param Element $page Current page
* @param string $active Expected active option
*
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions themes/bootstrap3/templates/_ui/components/menu-button.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
<?php
// We need an inner wrapper to keep the label out of the dropdown and from
// affecting dropdown position
$menuContents = '<label for="'. $this->escapeHtmlAttr($toggleAttrs['id']) . '">'
$menuContents = '<label for="' . $this->escapeHtmlAttr($toggleAttrs['id']) . '">'
. $this->escapeHtml($label)
. '</label>'
. $this->makeTag(
'div',
$menuContents,
'dropdown',
['escapeContent' => false]
);
);
$wrapperClass = trim(($this->wrapperClass ?? '') . ' dropdown-container');
?>
<?php else: ?>
Expand Down

0 comments on commit 46be96d

Please sign in to comment.