Completed
Pull Request — master (#201)
by Simonas
61:07
created
Search/FilterManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      *
94 94
      * @param SearchRequest   $request Search request.
95 95
      * @param FilterInterface $filter  Filter.
96
-     * @param array           $exclude Additional names of filters to exclude.
96
+     * @param integer[]           $exclude Additional names of filters to exclude.
97 97
      *
98 98
      * @return array
99 99
      */
Please login to merge, or discard this patch.
Filter/Widget/Choice/MultiTermChoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $value = $request->get($this->getRequestField());
42 42
 
43 43
         if (isset($value) && $value !== '' && !is_array($value)) {
44
-            $request->query->set($this->getRequestField(), [ $value ]);
44
+            $request->query->set($this->getRequestField(), [$value]);
45 45
         }
46 46
 
47 47
         return parent::getState($request);
Please login to merge, or discard this patch.
Search/SearchResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         foreach ($this->result as $document) {
87 87
             if (!$document instanceof SerializableInterface) {
88 88
                 throw new \LogicException(
89
-                    'In order to serialize search response documents MUST implement ' .
89
+                    'In order to serialize search response documents MUST implement '.
90 90
                         '"ONGR\FilterManagerBundle\SerializableInterface" interface.'
91 91
                 );
92 92
             }
Please login to merge, or discard this patch.
Filter/Widget/Range/DateRange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@
 block discarded – undo
62 62
     {
63 63
         /** @var $data RangeAwareViewData */
64 64
         $data->setMinBounds(
65
-            new \DateTime('@' . (int) ($result->getAggregation('date_range_agg')['min'] / 1000))
65
+            new \DateTime('@'.(int)($result->getAggregation('date_range_agg')['min'] / 1000))
66 66
         );
67 67
 
68 68
         $data->setMaxBounds(
69
-            new \DateTime('@' . (int) ($result->getAggregation('date_range_agg')['max'] / 1000))
69
+            new \DateTime('@'.(int)($result->getAggregation('date_range_agg')['max'] / 1000))
70 70
         );
71 71
 
72 72
         return $data;
Please login to merge, or discard this patch.
Filter/Widget/Search/MatchSearch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@
 block discarded – undo
63 63
             list ($field, $boost) = explode('^', $field);
64 64
         }
65 65
 
66
-        $query =  new MatchQuery($field, $state->getValue(), $this->parameters);
67
-        !isset($boost) ? : $query->addParameter('boost', $boost);
66
+        $query = new MatchQuery($field, $state->getValue(), $this->parameters);
67
+        !isset($boost) ?: $query->addParameter('boost', $boost);
68 68
 
69 69
         if (isset($path)) {
70 70
             $query = new NestedQuery($path, $query);
Please login to merge, or discard this patch.
Filter/Widget/Dynamic/DynamicAggregate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
             new TermsAggregation('name', $this->getNameField())
135 135
         );
136 136
         $aggregation->addAggregation($termsAggregation);
137
-        $filterAggregation = new FilterAggregation($name . '-filter');
137
+        $filterAggregation = new FilterAggregation($name.'-filter');
138 138
         $filterAggregation->setFilter($relatedSearch->getPostFilters());
139 139
 
140 140
         if ($state->isActive()) {
Please login to merge, or discard this patch.
Controller/ManagerController.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,6 @@
 block discarded – undo
59 59
      * Returns JSON response with search response data.
60 60
      *
61 61
      * @param Request $request Request.
62
-     * @param string  $name    Filter manager name.
63 62
      *
64 63
      * @return JsonResponse
65 64
      */
Please login to merge, or discard this patch.
Filter/FilterInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@
 block discarded – undo
35 35
      * so do not forget to call parent if you extend it.
36 36
      *
37 37
      * @param array $options
38
+     * @return void
38 39
      */
39 40
     public function setOptions(array $options);
40 41
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use ONGR\ElasticsearchBundle\Result\DocumentIterator;
16 16
 use ONGR\FilterManagerBundle\Filter\Helper\DocumentFieldAwareInterface;
17 17
 use ONGR\FilterManagerBundle\Filter\Helper\RequestFieldAwareInterface;
18
-use ONGR\FilterManagerBundle\Filter\Helper\ViewDataFactoryInterface;
19 18
 use ONGR\FilterManagerBundle\Filter\Relation\RelationAwareInterface;
20 19
 use ONGR\FilterManagerBundle\Search\SearchRequest;
21 20
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.
Filter/Widget/Sort/Sort.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use ONGR\FilterManagerBundle\Filter\ViewData\ChoicesAwareViewData;
20 20
 use ONGR\FilterManagerBundle\Filter\ViewData;
21 21
 use ONGR\FilterManagerBundle\Filter\Widget\AbstractFilter;
22
-use ONGR\FilterManagerBundle\Filter\Widget\AbstractSingleRequestValueFilter;
23 22
 use ONGR\FilterManagerBundle\Search\SearchRequest;
24 23
 
25 24
 /**
Please login to merge, or discard this patch.