Commit 36bb4a24 authored by borisson_'s avatar borisson_

CS fixes

parent f346b9f9
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
namespace Drupal\Tests\facets_summary\Functional\Rest; namespace Drupal\Tests\facets_summary\Functional\Rest;
use Drupal\facets\Entity\FacetSource;
use Drupal\facets_summary\Entity\FacetsSummary; use Drupal\facets_summary\Entity\FacetsSummary;
use Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase; use Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase;
......
...@@ -65,7 +65,7 @@ class SearchApiString extends QueryTypePluginBase { ...@@ -65,7 +65,7 @@ class SearchApiString extends QueryTypePluginBase {
foreach ($this->results as $result) { foreach ($this->results as $result) {
if ($result['count'] || $query_operator == 'or') { if ($result['count'] || $query_operator == 'or') {
$result_filter = $result['filter']; $result_filter = $result['filter'];
if ($result_filter[0] === '"') { if ($result_filter[0] === '"') {
$result_filter = substr($result_filter, 1); $result_filter = substr($result_filter, 1);
} }
if ($result_filter[strlen($result_filter) - 1] === '"') { if ($result_filter[strlen($result_filter) - 1] === '"') {
......
...@@ -30,6 +30,8 @@ class FacetsUrlGenerator { ...@@ -30,6 +30,8 @@ class FacetsUrlGenerator {
* *
* @param \Drupal\facets\UrlProcessor\UrlProcessorPluginManager $urlProcessorPluginManager * @param \Drupal\facets\UrlProcessor\UrlProcessorPluginManager $urlProcessorPluginManager
* The url processor plugin manager. * The url processor plugin manager.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
* The entity type manager.
*/ */
public function __construct(UrlProcessorPluginManager $urlProcessorPluginManager, EntityTypeManagerInterface $entityTypeManager) { public function __construct(UrlProcessorPluginManager $urlProcessorPluginManager, EntityTypeManagerInterface $entityTypeManager) {
$this->urlProcessorPluginManager = $urlProcessorPluginManager; $this->urlProcessorPluginManager = $urlProcessorPluginManager;
......
...@@ -52,12 +52,12 @@ abstract class FacetSourceResourceTestBase extends EntityResourceTestBase { ...@@ -52,12 +52,12 @@ abstract class FacetSourceResourceTestBase extends EntityResourceTestBase {
return [ return [
'breadcrumb' => [], 'breadcrumb' => [],
'dependencies' => [], 'dependencies' => [],
'filter_key' => null, 'filter_key' => NULL,
'id' => 'red_panda', 'id' => 'red_panda',
'langcode' => 'en', 'langcode' => 'en',
'name' => 'Red panda', 'name' => 'Red panda',
'uuid' => 'red-panda-uuid', 'uuid' => 'red-panda-uuid',
'status' => true, 'status' => TRUE,
'url_processor' => 'query_string', 'url_processor' => 'query_string',
]; ];
} }
......
...@@ -171,7 +171,7 @@ class SearchApiStringTest extends UnitTestCase { ...@@ -171,7 +171,7 @@ class SearchApiStringTest extends UnitTestCase {
} }
/** /**
* Data provider for ::provideTrimValues * Data provider for ::provideTrimValues.
* *
* @return array * @return array
* An array of expected and input values. * An array of expected and input values.
......
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