@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | foreach ($indices as $index) { |
| 211 | - $temporaryIndexName = 'tmp_' . $index->indexName; |
|
| 211 | + $temporaryIndexName = 'tmp_'.$index->indexName; |
|
| 212 | 212 | |
| 213 | 213 | /** @var Index $temporaryIndex */ |
| 214 | 214 | $temporaryIndex = $this->initIndex($temporaryIndexName); |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | { |
| 273 | 273 | $reflectionClass = new \ReflectionClass($class); |
| 274 | 274 | |
| 275 | - if (! $reflectionClass->implementsInterface(SearchableInterface::class)) { |
|
| 275 | + if ( ! $reflectionClass->implementsInterface(SearchableInterface::class)) { |
|
| 276 | 276 | throw new \InvalidArgumentException("The class: {$reflectionClass->name} doesn't implement leinonen\\Yii2Algolia\\SearchableInterface"); |
| 277 | 277 | } |
| 278 | 278 | } |
@@ -291,8 +291,8 @@ discard block |
||
| 291 | 291 | $indices = []; |
| 292 | 292 | |
| 293 | 293 | foreach ($indexNames as $indexName) { |
| 294 | - if($this->env !== null){ |
|
| 295 | - $indexName = $this->env . '_' . $indexName; |
|
| 294 | + if ($this->env !== null) { |
|
| 295 | + $indexName = $this->env.'_'.$indexName; |
|
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | $indices[] = $this->initIndex($indexName); |