Completed
Push — master ( 61efdf...7a2c62 )
by Simonas
01:38
created
src/Aggregation/Metric/ExtendedStatsAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
                 'script' => $this->getScript(),
80 80
                 'sigma' => $this->getSigma(),
81 81
             ],
82
-            function ($val) {
82
+            function($val) {
83 83
                 return ($val || is_numeric($val));
84 84
             }
85 85
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/GeoDistanceAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
                 'from' => $from,
134 134
                 'to' => $to,
135 135
             ],
136
-            function ($v) {
136
+            function($v) {
137 137
                 return !is_null($v);
138 138
             }
139 139
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/AutoDateHistogramAggregation.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use ONGR\ElasticsearchDSL\Aggregation\AbstractAggregation;
15 15
 use ONGR\ElasticsearchDSL\Aggregation\Type\BucketingTrait;
16
-use ONGR\ElasticsearchDSL\BuilderInterface;
17 16
 
18 17
 /**
19 18
  * Class representing AutoDateHistogramAggregation.
Please login to merge, or discard this patch.
src/Aggregation/Pipeline/BucketSortAggregation.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace ONGR\ElasticsearchDSL\Aggregation\Pipeline;
13 13
 
14
-use ONGR\ElasticsearchDSL\BuilderInterface;
15 14
 use ONGR\ElasticsearchDSL\Sort\FieldSort;
16 15
 
17 16
 /**
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/RangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
                 'from' => $from,
134 134
                 'to' => $to,
135 135
             ],
136
-            function ($v) {
136
+            function($v) {
137 137
                 return !is_null($v);
138 138
             }
139 139
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/DateRangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
                 'to' => $to,
88 88
                 'key' => $key,
89 89
             ],
90
-            function ($v) {
90
+            function($v) {
91 91
                 return !is_null($v);
92 92
             }
93 93
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/CompositeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function addSource(BuilderInterface $agg)
55 55
     {
56 56
         $this->sources[] = [
57
-            $agg->getName() => [ $agg->getType() => $agg->getArray() ]
57
+            $agg->getName() => [$agg->getType() => $agg->getArray()]
58 58
         ];
59 59
 
60 60
         return $this;
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/Ipv4RangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
                 'from' => $from,
134 134
                 'to' => $to,
135 135
             ],
136
-            function ($v) {
136
+            function($v) {
137 137
                 return !is_null($v);
138 138
             }
139 139
         );
Please login to merge, or discard this patch.
src/Aggregation/AbstractAggregation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      * Returns sub aggregation.
109 109
      * @param string $name Aggregation name to return.
110 110
      *
111
-     * @return AbstractAggregation|NamedBuilderInterface|null
111
+     * @return \ONGR\ElasticsearchDSL\BuilderInterface|null
112 112
      */
113 113
     public function getAggregation($name)
114 114
     {
Please login to merge, or discard this patch.