@@ -304,7 +304,7 @@ |
||
304 | 304 | /** |
305 | 305 | * Returns the name of the class for given object. |
306 | 306 | * |
307 | - * @param $class |
|
307 | + * @param SearchableInterface $class |
|
308 | 308 | * |
309 | 309 | * @return string |
310 | 310 | */ |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function makeSearchableObject($className) |
35 | 35 | { |
36 | - if (! (new \ReflectionClass($className))->implementsInterface(SearchableInterface::class)) { |
|
36 | + if ( ! (new \ReflectionClass($className))->implementsInterface(SearchableInterface::class)) { |
|
37 | 37 | throw new \InvalidArgumentException("Cannot initiate a class ({$className}) which doesn't implement leinonen\\Yii2Algolia\\SearchableInterface"); |
38 | 38 | } |
39 | 39 |