Commit bc141ec6 authored by borisson_'s avatar borisson_

Code style fixes to comply with drupal's standards

parent e965b984
......@@ -207,7 +207,7 @@ class IntegrationTest extends WebTestBase {
*
* @param string $facet_id
* The id of the facet.
* @param bool|TRUE $show
* @param bool $show
* Boolean to determine if we want to show the amount of results.
*/
protected function setShowAmountOfResults($facet_id, $show = TRUE) {
......
......@@ -13,4 +13,3 @@ function core_search_facets_test_hooks_facets_core_allowed_field_types(array $al
return $allowed_field_types;
}
......@@ -9,6 +9,7 @@ use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\facets\Entity\FacetSource;
use Drupal\search_api\Query\QueryInterface;
use Drupal\views\Entity\View;
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_help().
......@@ -49,7 +50,7 @@ function facets_search_api_query_alter(QueryInterface &$query) {
* We implement this to make sure that a facet gets removed on view updates, so
* we don't get broken facet blocks.
*/
function facets_entity_presave(Drupal\Core\Entity\EntityInterface $entity) {
function facets_entity_presave(EntityInterface $entity) {
// Make sure that we only react on view entities with changed displays.
if ($entity instanceof View && !empty($entity->original)) {
if ($entity->original->get('display') != $entity->get('display')) {
......
......@@ -232,7 +232,7 @@ interface FacetInterface extends ConfigEntityInterface {
/**
* Loads the facet sources for this facet.
*
* @param bool|TRUE $only_enabled
* @param bool $only_enabled
* Only return enabled facet sources.
*
* @return \Drupal\facets\FacetSource\FacetSourcePluginInterface[]
......@@ -243,7 +243,7 @@ interface FacetInterface extends ConfigEntityInterface {
/**
* Returns an array of processors with their configuration.
*
* @param bool|TRUE $only_enabled
* @param bool $only_enabled
* Only return enabled processors.
*
* @return \Drupal\facets\Processor\ProcessorInterface[]
......@@ -323,7 +323,7 @@ interface FacetInterface extends ConfigEntityInterface {
/**
* Returns the defined no-results behavior or NULL if none defined.
*
* @return array|NULL
* @return array|null
* The behavior definition or NULL.
*/
public function getEmptyBehavior();
......
......@@ -2,7 +2,6 @@
namespace Drupal\facets\FacetManager;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\facets\Exception\InvalidProcessorException;
......@@ -184,7 +183,7 @@ class DefaultFacetManager {
* set when this method is called ensuring that facets are built only once
* regardless of how many times this method is called.
*
* @param string|NULL $facetsource_id
* @param string|null $facetsource_id
* The facetsource if of the currently processed facet.
*/
public function processFacets($facetsource_id = NULL) {
......@@ -359,7 +358,7 @@ class DefaultFacetManager {
* @param \Drupal\facets\FacetInterface $facet
* The facet to process.
*
* @return \Drupal\facets\FacetInterface|NULL
* @return \Drupal\facets\FacetInterface|null
* The updated facet if it exists, NULL otherwise.
*/
public function returnProcessedFacet(FacetInterface $facet) {
......
......@@ -169,7 +169,7 @@ class FacetsDateHandler {
* A string containing the start date as an ISO date string.
* @param int $end_time
* A string containing the end date as an ISO date string.
* @param string|NULL $min_gap
* @param string|null $min_gap
* (Optional) The minimum gap that should be returned.
*
* @return string
......@@ -225,7 +225,7 @@ class FacetsDateHandler {
* A string containing the start date as an ISO date string.
* @param string $end_date
* A string containing the end date as an ISO date string.
* @param string|NULL $min_gap
* @param string|null $min_gap
* (Optional) The minimum gap that should be returned.
*
* @return string
......
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