@@ -119,7 +119,7 @@ |
||
119 | 119 | $terms = [ |
120 | 120 | 'index' => 'index_name', |
121 | 121 | 'type' => 'type_name', |
122 | - 'id' => '1', |
|
122 | + 'id' => '1', |
|
123 | 123 | 'path' => 'terms', |
124 | 124 | ]; |
125 | 125 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $index->refresh(); |
100 | 100 | |
101 | 101 | $queryString1 = ['query_string' => [ |
102 | - 'query' => 'Bade*', |
|
102 | + 'query' => 'Bade*', |
|
103 | 103 | ], |
104 | 104 | ]; |
105 | 105 |
@@ -168,7 +168,7 @@ |
||
168 | 168 | 'persistent' => true, |
169 | 169 | ], |
170 | 170 | 'Http:Persistent', |
171 | - ]; |
|
171 | + ]; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | protected function getData(string $test): array |
@@ -142,14 +142,14 @@ |
||
142 | 142 | $query = Query::create($sug); |
143 | 143 | |
144 | 144 | $expectedSuggestions = [ |
145 | - 'suggestName1' => [ |
|
146 | - 0 => [ |
|
147 | - 'text' => 'Neavermint', |
|
148 | - 'offset' => 0, |
|
149 | - 'length' => 10, |
|
150 | - 'options' => [], |
|
151 | - ], |
|
152 | - ], |
|
145 | + 'suggestName1' => [ |
|
146 | + 0 => [ |
|
147 | + 'text' => 'Neavermint', |
|
148 | + 'offset' => 0, |
|
149 | + 'length' => 10, |
|
150 | + 'options' => [], |
|
151 | + ], |
|
152 | + ], |
|
153 | 153 | 'suggestName2' => [ |
154 | 154 | 0 => [ |
155 | 155 | 'text' => 'Neverdint', |
@@ -95,7 +95,7 @@ |
||
95 | 95 | 'integer', |
96 | 96 | \gettype($resultSet->getTotalTime()), |
97 | 97 | 'Total Time should be an integer' |
98 | - ); |
|
98 | + ); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -25,7 +25,7 @@ |
||
25 | 25 | 'number_of_replicas' => 0, |
26 | 26 | ], |
27 | 27 | ], |
28 | - ], true); |
|
28 | + ], true); |
|
29 | 29 | |
30 | 30 | $index->addDocument(new Document('', ['name' => 'ruflin'])); |
31 | 31 | $index->addDocument(new Document('', ['name' => 'bobrik'])); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | 'tags' => ['foo', 'bar'], |
45 | 45 | ]), |
46 | 46 | new Document(2, [ |
47 | - 'comments' => [ |
|
47 | + 'comments' => [ |
|
48 | 48 | [ |
49 | 49 | 'name' => 'bob', |
50 | 50 | 'body' => 'this is another comment from bob', |
@@ -124,7 +124,7 @@ |
||
124 | 124 | { |
125 | 125 | $topNames = new Terms('top-names'); |
126 | 126 | $topNames->setField('owner') |
127 | - ->setSize(10); |
|
127 | + ->setSize(10); |
|
128 | 128 | |
129 | 129 | $toQuestions = new ParentAggregation('to-questions'); |
130 | 130 | $toQuestions->setType('answer'); |
@@ -122,15 +122,15 @@ |
||
122 | 122 | |
123 | 123 | $expected = [ |
124 | 124 | 'properties' => [ |
125 | - 'firstname' => ['type' => 'text', 'store' => true], |
|
126 | - 'lastname' => ['type' => 'text'], |
|
127 | - 'my_join_field' => [ |
|
128 | - 'type' => 'join', |
|
129 | - 'relations' => [ |
|
130 | - 'question' => 'answer', |
|
131 | - ], |
|
132 | - ], |
|
133 | - ], |
|
125 | + 'firstname' => ['type' => 'text', 'store' => true], |
|
126 | + 'lastname' => ['type' => 'text'], |
|
127 | + 'my_join_field' => [ |
|
128 | + 'type' => 'join', |
|
129 | + 'relations' => [ |
|
130 | + 'question' => 'answer', |
|
131 | + ], |
|
132 | + ], |
|
133 | + ], |
|
134 | 134 | ]; |
135 | 135 | |
136 | 136 | $this->assertEquals($expected, $mapping->toArray()); |