Completed
Push — master ( c0d232...67b20e )
by Olivier
43:39 queued 05:10
created
lib/Helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
 	static public function filter_not_null(array $input)
8 8
 	{
9
-		return array_filter($input, function ($value) {
9
+		return array_filter($input, function($value) {
10 10
 			return !is_null($value);
11 11
 		});
12 12
 	}
Please login to merge, or discard this patch.
lib/Query/Text/MatchAllQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
 	 */
26 26
 	public function jsonSerialize()
27 27
 	{
28
-		return [ self::NAME => parent::jsonSerialize() ?: (object) [] ];
28
+		return [self::NAME => parent::jsonSerialize() ?: (object) []];
29 29
 	}
30 30
 }
Please login to merge, or discard this patch.
lib/Query/Text/MatchNoneQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 	 */
20 20
 	public function jsonSerialize()
21 21
 	{
22
-		return [ self::NAME => (object) [] ];
22
+		return [self::NAME => (object) []];
23 23
 	}
24 24
 }
Please login to merge, or discard this patch.
lib/Query/Text/MultiMatchQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,6 +61,6 @@
 block discarded – undo
61 61
 	 */
62 62
 	public function jsonSerialize()
63 63
 	{
64
-		return [ self::NAME => [ 'query' => $this->query, 'fields' => $this->fields ] + parent::jsonSerialize() ];
64
+		return [self::NAME => ['query' => $this->query, 'fields' => $this->fields] + parent::jsonSerialize()];
65 65
 	}
66 66
 }
Please login to merge, or discard this patch.
lib/Query/Term/ExistsQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
 	 */
34 34
 	public function jsonSerialize()
35 35
 	{
36
-		return [ self::NAME => [ 'field' => $this->field ] ];
36
+		return [self::NAME => ['field' => $this->field]];
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
lib/Query/Term/TypeQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
 	 */
34 34
 	public function jsonSerialize()
35 35
 	{
36
-		return [ self::NAME => [ 'value' => $this->type ] ];
36
+		return [self::NAME => ['value' => $this->type]];
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
lib/Query/Term/IdsQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
52 52
 	 */
53 53
 	public function jsonSerialize()
54 54
 	{
55
-		return [ self::NAME => [ 'values' => $this->values ] + parent::jsonSerialize() ];
55
+		return [self::NAME => ['values' => $this->values] + parent::jsonSerialize()];
56 56
 	}
57 57
 }
Please login to merge, or discard this patch.
lib/Query/Term/TermsQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,9 +112,9 @@
 block discarded – undo
112 112
 		$options = parent::jsonSerialize();
113 113
 
114 114
 		if ($options) {
115
-			return [ self::NAME => $options ];
115
+			return [self::NAME => $options];
116 116
 		}
117 117
 
118
-		return [ self::NAME => [ $this->field => $this->values ] ];
118
+		return [self::NAME => [$this->field => $this->values]];
119 119
 	}
120 120
 }
Please login to merge, or discard this patch.
lib/Query/Helpers/JsonSerializeAsSimpleOrExtended.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 		$options = parent::jsonSerialize();
10 10
 
11 11
 		if ($options) {
12
-			return [ static::NAME => [ $this->field => [ $property => $this->$property ] + $options ] ];
12
+			return [static::NAME => [$this->field => [$property => $this->$property] + $options]];
13 13
 		}
14 14
 
15
-		return [ static::NAME => [ $this->field => $this->$property ] ];
15
+		return [static::NAME => [$this->field => $this->$property]];
16 16
 	}
17 17
 }
Please login to merge, or discard this patch.