|
@@ -183,7 +183,7 @@ discard block |
|
|
block discarded – undo |
|
183
|
183
|
} |
|
184
|
184
|
|
|
185
|
185
|
foreach ($indices as $indexName) { |
|
186
|
|
- $temporaryIndexName = 'tmp_' . $indexName; |
|
|
186
|
+ $temporaryIndexName = 'tmp_'.$indexName; |
|
187
|
187
|
|
|
188
|
188
|
/** @var Index $temporaryIndex */ |
|
189
|
189
|
$temporaryIndex = $this->initIndex($temporaryIndexName); |
|
@@ -247,7 +247,7 @@ discard block |
|
|
block discarded – undo |
|
247
|
247
|
{ |
|
248
|
248
|
$reflectionClass = new \ReflectionClass($class); |
|
249
|
249
|
|
|
250
|
|
- if (! $reflectionClass->implementsInterface(SearchableInterface::class)) { |
|
|
250
|
+ if ( ! $reflectionClass->implementsInterface(SearchableInterface::class)) { |
|
251
|
251
|
throw new \InvalidArgumentException("The class: {$reflectionClass->name} doesn't implement leinonen\\Yii2Algolia\\SearchableInterface"); |
|
252
|
252
|
} |
|
253
|
253
|
} |
Please login to merge, or discard this patch.